Class EntityEmployment.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.employment.EntityEmployment.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,EntityEmploymentContract
- Enclosing class:
EntityEmployment
public static final class EntityEmployment.Builder
extends Object
implements Serializable, ModelBuilder, EntityEmploymentContract
A builder which can be used to construct
EntityEmployment instances. Enforces the constraints of the EntityEmploymentContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static EntityEmployment.Buildercreate()static EntityEmployment.Buildercreate(EntityEmploymentContract contract) Gets thisEntityEmploymentContract's base salary amount.Gets thisEntityEmploymentContract's employee id.Gets thisEntityEmploymentContract's employee status.Gets thisEntityEmploymentContract's employee type.Gets thisEntityEmploymentContract's employment record id.Gets thisEntityEmploymentContract's identity affiliation.Gets this id of the parent identity object.getId()Gets thisEntityEmploymentContract's primary department code.booleanisActive()booleanThe primary value for this object.voidsetActive(boolean active) voidsetBaseSalaryAmount(KualiDecimal baseSalaryAmount) voidsetEmployeeId(String employeeId) voidsetEmployeeStatus(CodedAttribute.Builder employeeStatus) voidsetEmployeeType(CodedAttribute.Builder employeeType) voidsetEmploymentRecordId(String employmentRecordId) voidsetEntityAffiliation(EntityAffiliation.Builder entityAffiliation) voidsetEntityId(String entityId) voidvoidsetObjectId(String objectId) voidsetPrimary(boolean primary) voidsetPrimaryDepartmentCode(String primaryDepartmentCode) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getEntityId
Description copied from interface:EntityEmploymentContractGets this id of the parent identity object.- Specified by:
getEntityIdin interfaceEntityEmploymentContract- Returns:
- the identity id for this
EntityEmailContract
-
getEntityAffiliation
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's identity affiliation.- Specified by:
getEntityAffiliationin interfaceEntityEmploymentContract- Returns:
- the identity affiliation for this
EntityEmploymentContract, or null if none has been assigned.
-
getEmployeeStatus
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's employee status.- Specified by:
getEmployeeStatusin interfaceEntityEmploymentContract- Returns:
- the employee status for this
EntityEmploymentContract, or null if none has been assigned.
-
getEmployeeType
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's employee type.- Specified by:
getEmployeeTypein interfaceEntityEmploymentContract- Returns:
- the employee type for this
EntityEmploymentContract, or null if none has been assigned.
-
getPrimaryDepartmentCode
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's primary department code.- Specified by:
getPrimaryDepartmentCodein interfaceEntityEmploymentContract- Returns:
- the primary department code for this
EntityEmploymentContract, or null if none has been assigned.
-
getEmployeeId
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's employee id.- Specified by:
getEmployeeIdin interfaceEntityEmploymentContract- Returns:
- the employee id for this
EntityEmploymentContract, or null if none has been assigned.
-
getEmploymentRecordId
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's employment record id.- Specified by:
getEmploymentRecordIdin interfaceEntityEmploymentContract- Returns:
- the employment record id for this
EntityEmploymentContract, or null if none has been assigned.
-
getBaseSalaryAmount
Description copied from interface:EntityEmploymentContractGets thisEntityEmploymentContract's base salary amount.- Specified by:
getBaseSalaryAmountin interfaceEntityEmploymentContract- Returns:
- the base salary amount for this
EntityEmploymentContract, or null if none has been assigned.
-
isPrimary
public boolean isPrimary()Description copied from interface:EntityEmploymentContractThe primary value for this object.- Specified by:
isPrimaryin interfaceEntityEmploymentContract- Returns:
- returns true if the record is the primary Employment record for the parent entity
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
setEntityAffiliation
-
setEmployeeStatus
-
setEmployeeType
-
setEntityId
-
setPrimaryDepartmentCode
-
setEmployeeId
-
setEmploymentRecordId
-
setBaseSalaryAmount
-
setPrimary
public void setPrimary(boolean primary) -
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active) -
setId
-