Class EntityEthnicity.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.personal.EntityEthnicity.Builder
- All Implemented Interfaces:
Serializable,GloballyUnique,Identifiable,Versioned,ModelBuilder,EntityEthnicityContract
- Enclosing class:
EntityEthnicity
public static final class EntityEthnicity.Builder
extends Object
implements Serializable, ModelBuilder, EntityEthnicityContract
A builder which can be used to construct
EntityEthnicity instances. Enforces the constraints of the EntityEthnicityContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static EntityEthnicity.Buildercreate()static EntityEthnicity.Buildercreate(EntityEthnicityContract contract) Gets thisEntityEthnicityContract's identity id.Gets thisEntityEthnicityContract's ethnicity code.Gets thisEntityEthnicityContract's unmasked ethnicity code.getId()Gets thisEntityEthnicityContract's sub-ethnicity code.Gets thisEntityEthnicityContract's unmasked sub-ethnicity code.booleanReturns a boolean value that determines if personal fields should be suppressed.voidsetEntityId(String entityId) voidsetEthnicityCode(String ethnicityCode) voidvoidsetObjectId(String objectId) voidsetSubEthnicityCode(String subEthnicityCode) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getEntityId
Description copied from interface:EntityEthnicityContractGets thisEntityEthnicityContract's identity id.- Specified by:
getEntityIdin interfaceEntityEthnicityContract- Returns:
- the identity id for this
EntityEthnicityContract, or null if none has been assigned.
-
getEthnicityCode
Description copied from interface:EntityEthnicityContractGets thisEntityEthnicityContract's ethnicity code.- Specified by:
getEthnicityCodein interfaceEntityEthnicityContract- Returns:
- the ethnicity code for this
EntityEthnicityContract, or null if none has been assigned.
-
getEthnicityCodeUnmasked
Description copied from interface:EntityEthnicityContractGets thisEntityEthnicityContract's unmasked ethnicity code.- Specified by:
getEthnicityCodeUnmaskedin interfaceEntityEthnicityContract- Returns:
- the unmasked ethnicity code for this
EntityEthnicityContract, or null if none has been assigned.
-
getSubEthnicityCode
Description copied from interface:EntityEthnicityContractGets thisEntityEthnicityContract's sub-ethnicity code.- Specified by:
getSubEthnicityCodein interfaceEntityEthnicityContract- Returns:
- the sub-ethnicity code for this
EntityEthnicityContract, or null if none has been assigned.
-
getSubEthnicityCodeUnmasked
Description copied from interface:EntityEthnicityContractGets thisEntityEthnicityContract's unmasked sub-ethnicity code.- Specified by:
getSubEthnicityCodeUnmaskedin interfaceEntityEthnicityContract- Returns:
- the unmasked sub-ethnicity code for this
EntityEthnicityContract, or null if none has been assigned.
-
isSuppressPersonal
public boolean isSuppressPersonal()Description copied from interface:EntityEthnicityContractReturns a boolean value that determines if personal fields should be suppressed.- Specified by:
isSuppressPersonalin interfaceEntityEthnicityContract- Returns:
- boolean value that determines if personal fields should be suppressed.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
setEntityId
-
setEthnicityCode
-
setSubEthnicityCode
-
setVersionNumber
-
setObjectId
-
setId
-