Class EntityTypeContactInfo.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Versioned,ModelBuilder,EntityTypeContactInfoContract
- Enclosing class:
- EntityTypeContactInfo
public static final class EntityTypeContactInfo.Builder
extends Object
implements Serializable, ModelBuilder, EntityTypeContactInfoContract
A builder which can be used to construct
EntityTypeContactInfo instances. Enforces the constraints of the EntityTypeContactInfoContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()create(EntityTypeContactInfoContract contract) Gets thisEntityTypeContactInfoContract's List ofEntityAddressS.Returns the default address record for the identity.Returns the default email record for the identity.Returns the default phone record for the identity.Gets thisEntityTypeContactInfoContract's List ofEntityEmailContractS.Gets the id of the parent identity object.Gets this identity Type of theEntityTypeContactInfoContract's object.Gets this entityTypeCode of theEntityAddressContract's object.Gets thisEntityTypeContactInfoContract's List ofEntityPhoneS.booleanisActive()voidsetActive(boolean active) voidsetAddresses(List addresses) voidsetEmailAddresses(List emailAddresses) voidsetEntityId(String entityId) voidsetEntityType(CodedAttribute.Builder entityType) voidsetEntityTypeCode(String entityTypeCode) voidsetObjectId(String objectId) voidsetPhoneNumbers(List phoneNumbers) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getEntityId
Description copied from interface:EntityTypeContactInfoContractGets the id of the parent identity object.- Specified by:
getEntityIdin interfaceEntityTypeContactInfoContract- Returns:
- the identity id for this
EntityAddressContract
-
getEntityTypeCode
Description copied from interface:EntityTypeContactInfoContractGets this entityTypeCode of theEntityAddressContract's object.- Specified by:
getEntityTypeCodein interfaceEntityTypeContactInfoContract- Returns:
- the identity type code for this
EntityAddressContract
-
getEntityType
Description copied from interface:EntityTypeContactInfoContractGets this identity Type of theEntityTypeContactInfoContract's object.- Specified by:
getEntityTypein interfaceEntityTypeContactInfoContract- Returns:
- the identity type for this
EntityTypeContactInfoContract
-
getAddresses
Description copied from interface:EntityTypeContactInfoContractGets thisEntityTypeContactInfoContract's List ofEntityAddressS.- Specified by:
getAddressesin interfaceEntityTypeContactInfoContract- Returns:
- the List of
EntityAddressContractS for thisEntityTypeContactInfoContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getEmailAddresses
Description copied from interface:EntityTypeContactInfoContractGets thisEntityTypeContactInfoContract's List ofEntityEmailContractS.- Specified by:
getEmailAddressesin interfaceEntityTypeContactInfoContract- Returns:
- the List of
EntityEmailContractS for thisEntityTypeContactInfoContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getPhoneNumbers
Description copied from interface:EntityTypeContactInfoContractGets thisEntityTypeContactInfoContract's List ofEntityPhoneS.- Specified by:
getPhoneNumbersin interfaceEntityTypeContactInfoContract- Returns:
- the List of
EntityPhoneContractS for thisEntityTypeContactInfoContract. The returned List will never be null, an empty List will be assigned and returned if needed.
-
getDefaultAddress
Description copied from interface:EntityTypeContactInfoContractReturns the default address record for the identity. If no default is defined, then it returns the first one found. If none are defined, it returns null.- Specified by:
getDefaultAddressin interfaceEntityTypeContactInfoContract
-
getDefaultEmailAddress
Description copied from interface:EntityTypeContactInfoContractReturns the default email record for the identity. If no default is defined, then it returns the first one found. If none are defined, it returns null.- Specified by:
getDefaultEmailAddressin interfaceEntityTypeContactInfoContract
-
getDefaultPhoneNumber
Description copied from interface:EntityTypeContactInfoContractReturns the default phone record for the identity. If no default is defined, then it returns the first one found. If none are defined, it returns null.- Specified by:
getDefaultPhoneNumberin interfaceEntityTypeContactInfoContract
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setEntityId
-
setEntityTypeCode
-
setEntityType
-
setAddresses
-
setEmailAddresses
-
setPhoneNumbers
-
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active)
-