|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ModelBuilder
public List<Principal.Builder> getPrincipals()
EntityContract
EntityContract
's principals
getPrincipals
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 types
getEntityTypeContactInfos
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 identifiers
getExternalIdentifiers
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 affiliations
getAffiliations
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 names
getNames
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 List
getEmploymentInformation
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 preferences
getPrivacyPreferences
in interface EntityContract
EntityPrivacyPreferences
for this EntityContract
,
or null if none has been assigned.public EntityBioDemographics.Builder getBioDemographics()
EntityContract
EntityContract
's demographic information
getBioDemographics
in interface EntityContract
EntityBioDemographicsContract
for this EntityContract
,
or null if none has been assigned.public List<EntityCitizenship.Builder> getCitizenships()
EntityContract
EntityContract
's citizenship information
getCitizenships
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 code
getEntityTypeContactInfoByTypeCode
in interface EntityContract
entityTypeCode
- the type code
public EntityEmployment.Builder getPrimaryEmployment()
EntityContract
EntityContract
's employment information
getPrimaryEmployment
in interface EntityContract
EntityEmploymentContract
for this EntityContract
,
or null if none has been assigned.public EntityAffiliation.Builder getDefaultAffiliation()
EntityContract
EntityContract
's default affiliation
getDefaultAffiliation
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 code
getEntityExternalIdentifier
in interface EntityContract
externalIdentifierTypeCode
- the type code
EntityExternalIdentifierContract
for this EntityContract
, or null if none has been assigned.public EntityName.Builder getDefaultName()
EntityContract
EntityContract
's default name
getDefaultName
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 ethnicities
getEthnicities
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 residencies
getResidencies
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 visas
getVisas
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)
public void setId(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |