Class EntityPhone.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.phone.EntityPhone.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Defaultable,GloballyUnique,Identifiable,Versioned,ModelBuilder,EntityPhoneContract
- Enclosing class:
- EntityPhone
public static final class EntityPhone.Builder
extends Object
implements Serializable, ModelBuilder, EntityPhoneContract
A builder which can be used to construct
EntityPhone instances. Enforces the constraints of the EntityPhoneContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static EntityPhone.Buildercreate()static EntityPhone.Buildercreate(EntityPhoneContract contract) Gets thisEntityPhone's country code.Gets thisEntityPhone's unmasked country code.Gets this id of the parent identity object.Gets this entityTypeCode of theEntityPhoneContract's object.Gets thisEntityPhone's extension number.Gets thisEntityPhone's unmasked extension number.Gets thisEntityPhone's formatted phone number.Gets thisEntityPhone's unmasked formatted phone number.getId()Gets thisEntityPhone's phone number.Gets thisEntityPhone's unmasked phone number.Gets thisEntityPhone's type code.booleanisActive()booleanbooleanReturns a boolean value that determines if phone fields should be suppressed.voidsetActive(boolean active) voidsetCountryCode(String countryCode) voidsetDefaultValue(boolean defaultValue) voidsetEntityId(String entityId) voidsetEntityTypeCode(String entityTypeCode) voidsetExtensionNumber(String extensionNumber) voidvoidsetObjectId(String objectId) voidsetPhoneNumber(String phoneNumber) voidsetPhoneType(CodedAttribute.Builder phoneType) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getEntityTypeCode
Description copied from interface:EntityPhoneContractGets this entityTypeCode of theEntityPhoneContract's object.- Specified by:
getEntityTypeCodein interfaceEntityPhoneContract- Returns:
- the identity type code for this
EntityPhoneContract
-
getEntityId
Description copied from interface:EntityPhoneContractGets this id of the parent identity object.- Specified by:
getEntityIdin interfaceEntityPhoneContract- Returns:
- the identity id for this
EntityPhoneContract
-
getPhoneType
Description copied from interface:EntityPhoneContractGets thisEntityPhone's type code.- Specified by:
getPhoneTypein interfaceEntityPhoneContract- Returns:
- the type code for this
EntityPhone, or null if none has been assigned.
-
getPhoneNumber
Description copied from interface:EntityPhoneContractGets thisEntityPhone's phone number.- Specified by:
getPhoneNumberin interfaceEntityPhoneContract- Returns:
- the phone number for this
EntityPhone, or null if none has been assigned.
-
getExtensionNumber
Description copied from interface:EntityPhoneContractGets thisEntityPhone's extension number.- Specified by:
getExtensionNumberin interfaceEntityPhoneContract- Returns:
- the extension number for this
EntityPhone, or null if none has been assigned.
-
getCountryCode
Description copied from interface:EntityPhoneContractGets thisEntityPhone's country code.- Specified by:
getCountryCodein interfaceEntityPhoneContract- Returns:
- the country code for this
EntityPhone, or null if none has been assigned.
-
getPhoneNumberUnmasked
Description copied from interface:EntityPhoneContractGets thisEntityPhone's unmasked phone number.- Specified by:
getPhoneNumberUnmaskedin interfaceEntityPhoneContract- Returns:
- the unmasked phone number for this
EntityPhone, or null if none has been assigned.
-
getExtensionNumberUnmasked
Description copied from interface:EntityPhoneContractGets thisEntityPhone's unmasked extension number.- Specified by:
getExtensionNumberUnmaskedin interfaceEntityPhoneContract- Returns:
- the unmasked extension number for this
EntityPhone, or null if none has been assigned.
-
getCountryCodeUnmasked
Description copied from interface:EntityPhoneContractGets thisEntityPhone's unmasked country code.- Specified by:
getCountryCodeUnmaskedin interfaceEntityPhoneContract- Returns:
- the unmasked country code for this
EntityPhone, or null if none has been assigned.
-
getFormattedPhoneNumber
Description copied from interface:EntityPhoneContractGets thisEntityPhone's formatted phone number.- Specified by:
getFormattedPhoneNumberin interfaceEntityPhoneContract- Returns:
- the formatted phone number for this
EntityPhone, or null if none has been assigned.
-
getFormattedPhoneNumberUnmasked
Description copied from interface:EntityPhoneContractGets thisEntityPhone's unmasked formatted phone number.- Specified by:
getFormattedPhoneNumberUnmaskedin interfaceEntityPhoneContract- Returns:
- the unmasked formatted phone number for this
EntityPhone, or null if none has been assigned.
-
isSuppressPhone
public boolean isSuppressPhone()Description copied from interface:EntityPhoneContractReturns a boolean value that determines if phone fields should be suppressed.- Specified by:
isSuppressPhonein interfaceEntityPhoneContract- Returns:
- boolean value that determines if phone should be suppressed.
-
isDefaultValue
public boolean isDefaultValue()- Specified by:
isDefaultValuein interfaceDefaultable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setId
-
setEntityTypeCode
-
setEntityId
-
setPhoneType
-
setPhoneNumber
-
setExtensionNumber
-
setCountryCode
-
setDefaultValue
public void setDefaultValue(boolean defaultValue) -
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active)
-