コード例 #1
0
  @Override
  public int compareTo(KaleoDraftDefinition kaleoDraftDefinition) {
    int value = 0;

    if (getDraftVersion() < kaleoDraftDefinition.getDraftVersion()) {
      value = -1;
    } else if (getDraftVersion() > kaleoDraftDefinition.getDraftVersion()) {
      value = 1;
    } else {
      value = 0;
    }

    value = value * -1;

    if (value != 0) {
      return value;
    }

    return 0;
  }
コード例 #2
0
  public static KaleoDraftDefinitionSoap toSoapModel(KaleoDraftDefinition model) {
    KaleoDraftDefinitionSoap soapModel = new KaleoDraftDefinitionSoap();

    soapModel.setKaleoDraftDefinitionId(model.getKaleoDraftDefinitionId());
    soapModel.setGroupId(model.getGroupId());
    soapModel.setCompanyId(model.getCompanyId());
    soapModel.setUserId(model.getUserId());
    soapModel.setUserName(model.getUserName());
    soapModel.setCreateDate(model.getCreateDate());
    soapModel.setModifiedDate(model.getModifiedDate());
    soapModel.setName(model.getName());
    soapModel.setTitle(model.getTitle());
    soapModel.setContent(model.getContent());
    soapModel.setVersion(model.getVersion());
    soapModel.setDraftVersion(model.getDraftVersion());

    return soapModel;
  }