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()
ModelBuilderbuild in interface ModelBuilderpublic List<Principal.Builder> getPrincipals()
EntityContractEntityContract's principalsgetPrincipals in interface EntityContractPrincipalContracts 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()
EntityContractEntityContract's identity typesgetEntityTypeContactInfos in interface EntityContractEntityTypeContactInfoContractS 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()
EntityContractEntityContract's external identifiersgetExternalIdentifiers in interface EntityContractEntityExternalIdentifierContractS 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()
EntityContractEntityContract's affiliationsgetAffiliations in interface EntityContractEntityAffiliationContractS 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()
EntityContractEntityContract's namesgetNames in interface EntityContractEntityNameContractS 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()
EntityContractEntityContract's employment information ListgetEmploymentInformation in interface EntityContractEntityEmploymentContractS for this EntityContract.
The returned List will never be null, an empty List will be assigned and returned if needed.public EntityPrivacyPreferences.Builder getPrivacyPreferences()
EntityContractEntityContract's privacy preferencesgetPrivacyPreferences in interface EntityContractEntityPrivacyPreferences for this EntityContract,
or null if none has been assigned.public EntityBioDemographics.Builder getBioDemographics()
EntityContractEntityContract's demographic informationgetBioDemographics in interface EntityContractEntityBioDemographicsContract for this EntityContract,
or null if none has been assigned.public List<EntityCitizenship.Builder> getCitizenships()
EntityContractEntityContract's citizenship informationgetCitizenships in interface EntityContractEntityCitizenshipContracts 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)
EntityContractEntityContract's identity type for the given type codegetEntityTypeContactInfoByTypeCode in interface EntityContractentityTypeCode - the type codepublic EntityEmployment.Builder getPrimaryEmployment()
EntityContractEntityContract's employment informationgetPrimaryEmployment in interface EntityContractEntityEmploymentContract for this EntityContract,
or null if none has been assigned.public EntityAffiliation.Builder getDefaultAffiliation()
EntityContractEntityContract's default affiliationgetDefaultAffiliation in interface EntityContractEntityAffiliationContract 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)
EntityContractEntityContract's external identifier for the given type codegetEntityExternalIdentifier in interface EntityContractexternalIdentifierTypeCode - the type codeEntityExternalIdentifierContract for this EntityContract, or null if none has been assigned.public EntityName.Builder getDefaultName()
EntityContractEntityContract's default namegetDefaultName in interface EntityContractEntityNameContract 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()
EntityContractEntityContract's ethnicitiesgetEthnicities in interface EntityContractEntityEthnicityContractS 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()
EntityContractEntityContract's residenciesgetResidencies in interface EntityContractEntityResidencyContractS 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()
EntityContractEntityContract's visasgetVisas in interface EntityContractEntityVisaContractS for this EntityContract.
The returned List will never be null, an empty List will be assigned and returned if needed.public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic String getId()
IdentifiablegetId in interface Identifiablepublic 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-2015 The Kuali Foundation. All Rights Reserved.