/**
   * Constructs a KRMS Repository AgendaItemDefinition object from the given builder. This
   * constructor is private and should only ever be invoked from the builder.
   *
   * @param builder the Builder from which to construct the AgendaItemDefinition
   */
  private AgendaItemDefinition(Builder builder) {
    this.id = builder.getId();
    this.agendaId = builder.getAgendaId();
    this.ruleId = builder.getRuleId();
    this.subAgendaId = builder.getSubAgendaId();
    this.whenTrueId = builder.getWhenTrueId();
    this.whenFalseId = builder.getWhenFalseId();
    this.alwaysId = builder.getAlwaysId();
    this.versionNumber = builder.getVersionNumber();

    if (builder.getRule() != null) {
      this.rule = builder.getRule().build();
    }
    if (builder.getSubAgenda() != null) {
      this.subAgenda = builder.getSubAgenda().build();
    }
    if (builder.getWhenTrue() != null) {
      this.whenTrue = builder.getWhenTrue().build();
    }
    if (builder.getWhenFalse() != null) {
      this.whenFalse = builder.getWhenFalse().build();
    }
    if (builder.getAlways() != null) {
      this.always = builder.getAlways().build();
    }
  }
Beispiel #2
0
 private MissedPunch(Builder builder) {
   this.task = builder.getTask();
   this.actionFullDateTime = builder.getActionFullDateTime();
   this.actionLocalDate = builder.getActionLocalDate();
   this.actionTime = builder.getActionTime();
   this.clockAction = builder.getClockAction();
   this.tkClockLogId = builder.getTkClockLogId();
   this.principalName = builder.getPrincipalName();
   this.groupKeyCode = builder.getGroupKeyCode();
   this.groupKey = builder.getGroupKey() == null ? null : builder.getGroupKey().build();
   this.personName = builder.getPersonName();
   this.assignmentReadOnly = builder.isAssignmentReadOnly();
   this.tkMissedPunchId = builder.getTkMissedPunchId();
   this.jobNumber = builder.getJobNumber();
   this.workArea = builder.getWorkArea();
   this.timesheetDocumentId = builder.getTimesheetDocumentId();
   this.principalId = builder.getPrincipalId();
   this.assignmentKey = builder.getAssignmentKey();
   this.assignmentValue = builder.getAssignmentValue();
   this.versionNumber = builder.getVersionNumber();
   this.objectId = builder.getObjectId();
   this.createTime = builder.getCreateTime();
   this.missedPunchDocId = builder.getMissedPunchDocId();
   this.missedPunchDocStatus = builder.getMissedPunchDocStatus();
 }
 private TermParameterDefinition(Builder builder) {
   id = builder.getId();
   termId = builder.getTermId();
   name = builder.getName();
   value = builder.getValue();
   versionNumber = builder.getVersionNumber();
 }
Beispiel #4
0
 /**
  * Constructs a ParameterType from the given builder. This constructor is private and should only
  * ever be invoked from the builder.
  *
  * @param builder the Builder from which to construct the parameter type
  */
 private ParameterType(Builder builder) {
   code = builder.getCode();
   name = builder.getName();
   active = builder.isActive();
   versionNumber = builder.getVersionNumber();
   this.objectId = builder.getObjectId();
 }
Beispiel #5
0
 private County(Builder builder) {
   code = builder.getCode();
   name = builder.getName();
   countryCode = builder.getCountryCode();
   stateCode = builder.getStateCode();
   active = builder.isActive();
   versionNumber = builder.getVersionNumber();
 }
Beispiel #6
0
 private Country(Builder builder) {
   this.code = builder.getCode();
   this.alternateCode = builder.getAlternateCode();
   this.name = builder.getName();
   this.restricted = builder.isRestricted();
   this.active = builder.isActive();
   this.versionNumber = builder.getVersionNumber();
 }
 private NotificationRecipient(Builder builder) {
   this.notificationId = builder.getNotificationId();
   this.recipientType = builder.getRecipientType();
   this.recipientId = builder.getRecipientId();
   this.id = builder.getId();
   this.versionNumber = builder.getVersionNumber();
   this.objectId = builder.getObjectId();
 }
  private KimTypeAttribute(Builder builder) {
    this.id = builder.getId();
    this.sortCode = builder.getSortCode();

    this.kimAttribute =
        builder.getKimAttribute() != null ? builder.getKimAttribute().build() : null;
    this.kimTypeId = builder.getKimTypeId();
    this.active = builder.isActive();
    this.versionNumber = builder.getVersionNumber();
    this.objectId = builder.getObjectId();
  }
 private ExtensionDefinition(Builder builder) {
   this.id = builder.getId();
   this.name = builder.getName();
   this.applicationId = builder.getApplicationId();
   this.label = builder.getLabel();
   this.description = builder.getDescription();
   this.type = builder.getType();
   this.resourceDescriptor = builder.getResourceDescriptor();
   if (builder.getConfiguration() == null) {
     this.configuration = Collections.emptyMap();
   } else {
     this.configuration =
         Collections.unmodifiableMap(new HashMap<String, String>(builder.getConfiguration()));
   }
   this.versionNumber = builder.getVersionNumber();
 }
 private OleDeliverRequestDefinition(Builder builder) {
   this.title = builder.getTitle();
   this.author = builder.getAuthor();
   this.callNumber = builder.getCallNumber();
   this.copyNumber = builder.getCopyNumber();
   this.itemType = builder.getItemType();
   this.itemStatus = builder.getItemStatus();
   this.shelvingLocation = builder.getShelvingLocation();
   this.volumeNumber = builder.getVolumeNumber();
   this.patronName = builder.getPatronName();
   this.itemId = builder.getItemId();
   this.requestId = builder.getRequestId();
   this.borrowerQueuePosition = builder.getBorrowerQueuePosition();
   this.createDate = builder.getCreateDate();
   this.oleDeliverRequestType = builder.getOleDeliverRequestType().build();
   this.versionNumber = builder.getVersionNumber();
   // this.objectId = builder.getObjectId();
 }