public final class Entity extends AbstractDataTransferObject implements EntityContract
Modifier and Type | Class and Description |
---|---|
static class |
Entity.Builder
A builder which can be used to construct
Entity instances. |
static class |
Entity.Cache |
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
public List<Principal> 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> 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> 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> 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> 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> 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 getPrivacyPreferences()
EntityContract
EntityContract
's privacy preferencesgetPrivacyPreferences
in interface EntityContract
EntityPrivacyPreferences
for this EntityContract
,
or null if none has been assigned.public EntityBioDemographics getBioDemographics()
EntityContract
EntityContract
's demographic informationgetBioDemographics
in interface EntityContract
EntityBioDemographicsContract
for this EntityContract
,
or null if none has been assigned.public List<EntityCitizenship> 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 EntityEmployment getPrimaryEmployment()
EntityContract
EntityContract
's employment informationgetPrimaryEmployment
in interface EntityContract
EntityEmploymentContract
for this EntityContract
,
or null if none has been assigned.public EntityAffiliation 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 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 EntityNameContract 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> 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> 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> 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 EntityTypeContactInfo getEntityTypeContactInfoByTypeCode(String entityTypeCode)
EntityContract
EntityContract
's identity type for the given type codegetEntityTypeContactInfoByTypeCode
in interface EntityContract
entityTypeCode
- the type codeCopyright © 2005–2016 The Kuali Foundation. All rights reserved.