public static final class Entity.Builder extends Object implements Serializable, ModelBuilder, EntityContract
Entity
instances. Enforces the constraints of the EntityContract
.public static Entity.Builder create()
public static Entity.Builder create(EntityContract contract)
public Entity build()
ModelBuilder
build
in interface ModelBuilder
public List<Principal.Builder> getPrincipals()
EntityContract
EntityContract
's principalsgetPrincipals
in interface EntityContract
PrincipalContract
s for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityTypeContactInfo.Builder> getEntityTypeContactInfos()
EntityContract
EntityContract
's identity typesgetEntityTypeContactInfos
in interface EntityContract
EntityTypeContactInfoContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityExternalIdentifier.Builder> getExternalIdentifiers()
EntityContract
EntityContract
's external identifiersgetExternalIdentifiers
in interface EntityContract
EntityExternalIdentifierContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityAffiliation.Builder> getAffiliations()
EntityContract
EntityContract
's affiliationsgetAffiliations
in interface EntityContract
EntityAffiliationContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityName.Builder> getNames()
EntityContract
EntityContract
's namesgetNames
in interface EntityContract
EntityNameContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityEmployment.Builder> getEmploymentInformation()
EntityContract
EntityContract
's employment information ListgetEmploymentInformation
in interface EntityContract
EntityEmploymentContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public EntityPrivacyPreferences.Builder getPrivacyPreferences()
EntityContract
EntityContract
's privacy preferencesgetPrivacyPreferences
in interface EntityContract
EntityPrivacyPreferences
for this EntityContract
,
or null if none has been assigned.public EntityBioDemographics.Builder getBioDemographics()
EntityContract
EntityContract
's demographic informationgetBioDemographics
in interface EntityContract
EntityBioDemographicsContract
for this EntityContract
,
or null if none has been assigned.public List<EntityCitizenship.Builder> getCitizenships()
EntityContract
EntityContract
's citizenship informationgetCitizenships
in interface EntityContract
EntityCitizenshipContract
s for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public EntityTypeContactInfo.Builder getEntityTypeContactInfoByTypeCode(String entityTypeCode)
EntityContract
EntityContract
's identity type for the given type codegetEntityTypeContactInfoByTypeCode
in interface EntityContract
entityTypeCode
- the type codepublic EntityEmployment.Builder getPrimaryEmployment()
EntityContract
EntityContract
's employment informationgetPrimaryEmployment
in interface EntityContract
EntityEmploymentContract
for this EntityContract
,
or null if none has been assigned.public EntityAffiliation.Builder getDefaultAffiliation()
EntityContract
EntityContract
's default affiliationgetDefaultAffiliation
in interface EntityContract
EntityAffiliationContract
for the identity. If no default is defined, then
it returns the first one found. If none are defined, it returns null.public EntityExternalIdentifier.Builder getEntityExternalIdentifier(String externalIdentifierTypeCode)
EntityContract
EntityContract
's external identifier for the given type codegetEntityExternalIdentifier
in interface EntityContract
externalIdentifierTypeCode
- the type codeEntityExternalIdentifierContract
for this EntityContract
, or null if none has been assigned.public EntityName.Builder getDefaultName()
EntityContract
EntityContract
's default namegetDefaultName
in interface EntityContract
EntityNameContract
record for the identity. If no default is defined, then
it returns the first one found. If none are defined, it returns null.public List<EntityEthnicity.Builder> getEthnicities()
EntityContract
EntityContract
's ethnicitiesgetEthnicities
in interface EntityContract
EntityEthnicityContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityResidency.Builder> getResidencies()
EntityContract
EntityContract
's residenciesgetResidencies
in interface EntityContract
EntityResidencyContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public List<EntityVisa.Builder> getVisas()
EntityContract
EntityContract
's visasgetVisas
in interface EntityContract
EntityVisaContract
S for this EntityContract
.
The returned List will never be null, an empty List will be assigned and returned if needed.public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public String getId()
Identifiable
getId
in interface Identifiable
public void setPrincipals(List<Principal.Builder> principals)
public void setEntityTypes(List<EntityTypeContactInfo.Builder> entityTypeContactInfos)
public void setExternalIdentifiers(List<EntityExternalIdentifier.Builder> externalIdentifiers)
public void setAffiliations(List<EntityAffiliation.Builder> affiliations)
public void setNames(List<EntityName.Builder> names)
public void setEmploymentInformation(List<EntityEmployment.Builder> employmentInformation)
public void setPrivacyPreferences(EntityPrivacyPreferences.Builder privacyPreferences)
public void setBioDemographics(EntityBioDemographics.Builder bioDemographics)
public void setCitizenships(List<EntityCitizenship.Builder> citizenships)
public void setEthnicities(List<EntityEthnicity.Builder> ethnicities)
public void setResidencies(List<EntityResidency.Builder> residencies)
public void setVisas(List<EntityVisa.Builder> visas)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public void setActive(boolean active)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.