コード例 #1
0
  public static Object translateOutputWSRPProducer(BaseModel<?> oldModel) {
    WSRPProducerClp newModel = new WSRPProducerClp();

    newModel.setModelAttributes(oldModel.getModelAttributes());

    newModel.setWSRPProducerRemoteModel(oldModel);

    return newModel;
  }
コード例 #2
0
  public static Object translateInputWSRPProducer(BaseModel<?> oldModel) {
    WSRPProducerClp oldClpModel = (WSRPProducerClp) oldModel;

    BaseModel<?> newModel = oldClpModel.getWSRPProducerRemoteModel();

    newModel.setModelAttributes(oldClpModel.getModelAttributes());

    return newModel;
  }