Class Entity.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.entity.Entity.Builder
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelBuilder,EntityContract
- Enclosing class:
Entity
public static final class Entity.Builder
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, EntityContract
A builder which can be used to construct
Entity instances. Enforces the constraints of the EntityContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Entity.Buildercreate()static Entity.Buildercreate(EntityContract contract) Gets thisEntityContract's affiliationsGets thisEntityContract's demographic informationGets thisEntityContract's citizenship informationGets thisEntityContract's default affiliationGets thisEntityContract's default nameGets thisEntityContract's employment information ListgetEntityExternalIdentifier(String externalIdentifierTypeCode) Gets thisEntityContract's external identifier for the given type codegetEntityTypeContactInfoByTypeCode(String entityTypeCode) Gets thisEntityContract's identity type for the given type codeGets thisEntityContract's identity typesGets thisEntityContract's ethnicitiesGets thisEntityContract's external identifiersgetId()getNames()Gets thisEntityContract's namesGets thisEntityContract's employment informationGets thisEntityContract's principalsGets thisEntityContract's privacy preferencesGets thisEntityContract's residenciesgetVisas()Gets thisEntityContract's visasbooleanisActive()voidsetActive(boolean active) voidsetAffiliations(List<EntityAffiliation.Builder> affiliations) voidsetBioDemographics(EntityBioDemographics.Builder bioDemographics) voidsetCitizenships(List<EntityCitizenship.Builder> citizenships) voidsetEmploymentInformation(List<EntityEmployment.Builder> employmentInformation) voidsetEntityTypes(List<EntityTypeContactInfo.Builder> entityTypeContactInfos) voidsetEthnicities(List<EntityEthnicity.Builder> ethnicities) voidsetExternalIdentifiers(List<EntityExternalIdentifier.Builder> externalIdentifiers) voidvoidsetNames(List<EntityName.Builder> names) voidsetObjectId(String objectId) voidsetPrincipals(List<Principal.Builder> principals) voidsetPrivacyPreferences(EntityPrivacyPreferences.Builder privacyPreferences) voidsetResidencies(List<EntityResidency.Builder> residencies) voidsetVersionNumber(Long versionNumber) voidsetVisas(List<EntityVisa.Builder> visas)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder
-
getPrincipals
Description copied from interface:EntityContractGets thisEntityContract's principals- Specified by:
getPrincipalsin interfaceEntityContract- Returns:
- the List of
PrincipalContracts for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getEntityTypeContactInfos
Description copied from interface:EntityContractGets thisEntityContract's identity types- Specified by:
getEntityTypeContactInfosin interfaceEntityContract- Returns:
- the List of
EntityTypeContactInfoContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getExternalIdentifiers
Description copied from interface:EntityContractGets thisEntityContract's external identifiers- Specified by:
getExternalIdentifiersin interfaceEntityContract- Returns:
- the List of
EntityExternalIdentifierContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getAffiliations
Description copied from interface:EntityContractGets thisEntityContract's affiliations- Specified by:
getAffiliationsin interfaceEntityContract- Returns:
- the List of
EntityAffiliationContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getNames
Description copied from interface:EntityContractGets thisEntityContract's names- Specified by:
getNamesin interfaceEntityContract- Returns:
- the List of
EntityNameContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getEmploymentInformation
Description copied from interface:EntityContractGets thisEntityContract's employment information List- Specified by:
getEmploymentInformationin interfaceEntityContract- Returns:
- the List of
EntityEmploymentContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getPrivacyPreferences
Description copied from interface:EntityContractGets thisEntityContract's privacy preferences- Specified by:
getPrivacyPreferencesin interfaceEntityContract- Returns:
- the
EntityPrivacyPreferencesfor thisEntityContract, or null if none has been assigned.
-
getBioDemographics
Description copied from interface:EntityContractGets thisEntityContract's demographic information- Specified by:
getBioDemographicsin interfaceEntityContract- Returns:
- the
EntityBioDemographicsContractfor thisEntityContract, or null if none has been assigned.
-
getCitizenships
Description copied from interface:EntityContractGets thisEntityContract's citizenship information- Specified by:
getCitizenshipsin interfaceEntityContract- Returns:
- the List of
EntityCitizenshipContracts for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getEntityTypeContactInfoByTypeCode
Description copied from interface:EntityContractGets thisEntityContract's identity type for the given type code- Specified by:
getEntityTypeContactInfoByTypeCodein interfaceEntityContract- Parameters:
entityTypeCode- the type code- Returns:
- the EntityEntityType object corresponding to the given code or null if this identity does not have data for that type.
-
getPrimaryEmployment
Description copied from interface:EntityContractGets thisEntityContract's employment information- Specified by:
getPrimaryEmploymentin interfaceEntityContract- Returns:
- the primary
EntityEmploymentContractfor thisEntityContract, or null if none has been assigned.
-
getDefaultAffiliation
Description copied from interface:EntityContractGets thisEntityContract's default affiliation- Specified by:
getDefaultAffiliationin interfaceEntityContract- Returns:
- the default
EntityAffiliationContractfor the identity. If no default is defined, then it returns the first one found. If none are defined, it returns null.
-
getEntityExternalIdentifier
public EntityExternalIdentifier.Builder getEntityExternalIdentifier(String externalIdentifierTypeCode) Description copied from interface:EntityContractGets thisEntityContract's external identifier for the given type code- Specified by:
getEntityExternalIdentifierin interfaceEntityContract- Parameters:
externalIdentifierTypeCode- the type code- Returns:
- the
EntityExternalIdentifierContractfor thisEntityContract, or null if none has been assigned.
-
getDefaultName
Description copied from interface:EntityContractGets thisEntityContract's default name- Specified by:
getDefaultNamein interfaceEntityContract- Returns:
- the default
EntityNameContractrecord for the identity. If no default is defined, then it returns the first one found. If none are defined, it returns null.
-
getEthnicities
Description copied from interface:EntityContractGets thisEntityContract's ethnicities- Specified by:
getEthnicitiesin interfaceEntityContract- Returns:
- the List of
EntityEthnicityContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getResidencies
Description copied from interface:EntityContractGets thisEntityContract's residencies- Specified by:
getResidenciesin interfaceEntityContract- Returns:
- the List of
EntityResidencyContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getVisas
Description copied from interface:EntityContractGets thisEntityContract's visas- Specified by:
getVisasin interfaceEntityContract- Returns:
- the List of
EntityVisaContractS for thisEntityContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
getObjectId
- Specified by:
getObjectIdin interfaceorg.kuali.rice.core.api.mo.common.GloballyUnique
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
setPrincipals
-
setEntityTypes
-
setExternalIdentifiers
-
setAffiliations
-
setNames
-
setEmploymentInformation
-
setPrivacyPreferences
-
setBioDemographics
-
setCitizenships
-
setEthnicities
-
setResidencies
-
setVisas
-
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active) -
setId
-