|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.api.identity.entity.Entity.Builder
public static final class Entity.Builder
A builder which can be used to construct Entity instances. Enforces the constraints of the EntityContract.
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Entity.Builder create()
public static Entity.Builder create(EntityContract contract)
public Entity build()
ModelBuilder
build in interface ModelBuilderpublic List<Principal.Builder> getPrincipals()
EntityContractEntityContract's principals
getPrincipals 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 types
getEntityTypeContactInfos 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 identifiers
getExternalIdentifiers 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 affiliations
getAffiliations 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 names
getNames 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 List
getEmploymentInformation 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 preferences
getPrivacyPreferences in interface EntityContractEntityPrivacyPreferences for this EntityContract,
or null if none has been assigned.public EntityBioDemographics.Builder getBioDemographics()
EntityContractEntityContract's demographic information
getBioDemographics in interface EntityContractEntityBioDemographicsContract for this EntityContract,
or null if none has been assigned.public List<EntityCitizenship.Builder> getCitizenships()
EntityContractEntityContract's citizenship information
getCitizenships 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 code
getEntityTypeContactInfoByTypeCode in interface EntityContractentityTypeCode - the type code
public EntityEmployment.Builder getPrimaryEmployment()
EntityContractEntityContract's employment information
getPrimaryEmployment in interface EntityContractEntityEmploymentContract for this EntityContract,
or null if none has been assigned.public EntityAffiliation.Builder getDefaultAffiliation()
EntityContractEntityContract's default affiliation
getDefaultAffiliation 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 code
getEntityExternalIdentifier in interface EntityContractexternalIdentifierTypeCode - the type code
EntityExternalIdentifierContract for this EntityContract, or null if none has been assigned.public EntityName.Builder getDefaultName()
EntityContractEntityContract's default name
getDefaultName 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 ethnicities
getEthnicities 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 residencies
getResidencies 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 visas
getVisas 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()
Versioned
getVersionNumber in interface Versionedpublic String getObjectId()
GloballyUnique
getObjectId in interface GloballyUniquepublic boolean isActive()
Inactivatable
isActive in interface Inactivatablepublic String getId()
Identifiable
getId 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)
public void setId(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||