Class EntityEmail.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.email.EntityEmail.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Defaultable,GloballyUnique,Identifiable,Versioned,ModelBuilder,EntityEmailContract
- Enclosing class:
- EntityEmail
public static final class EntityEmail.Builder
extends Object
implements Serializable, ModelBuilder, EntityEmailContract
A builder which can be used to construct
EntityEmail instances. Enforces the constraints of the EntityEmailContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static EntityEmail.Buildercreate()static EntityEmail.Buildercreate(EntityEmailContract contract) Gets thisEntityEmail's email address.Gets thisEntityEmail's unmasked email address.Gets thisEntityEmail's type code.Gets this id of the parent identity object.Gets this entityTypeCode of theEntityEmailContract's object.getId()booleanisActive()booleanbooleanReturns a boolean value that determines if email fields should be suppressed.voidsetActive(boolean active) voidsetDefaultValue(boolean defaultValue) voidsetEmailAddress(String emailAddress) voidsetEmailType(CodedAttribute.Builder emailType) voidsetEntityId(String entityId) voidsetEntityTypeCode(String entityTypeCode) voidvoidsetObjectId(String objectId) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getEntityTypeCode
Description copied from interface:EntityEmailContractGets this entityTypeCode of theEntityEmailContract's object.- Specified by:
getEntityTypeCodein interfaceEntityEmailContract- Returns:
- the identity type code for this
EntityEmailContract
-
getEntityId
Description copied from interface:EntityEmailContractGets this id of the parent identity object.- Specified by:
getEntityIdin interfaceEntityEmailContract- Returns:
- the identity id for this
EntityEmailContract
-
getEmailType
Description copied from interface:EntityEmailContractGets thisEntityEmail's type code.- Specified by:
getEmailTypein interfaceEntityEmailContract- Returns:
- the type code for this
EntityEmail, or null if none has been assigned.
-
getEmailAddress
Description copied from interface:EntityEmailContractGets thisEntityEmail's email address.- Specified by:
getEmailAddressin interfaceEntityEmailContract- Returns:
- the email address for this
EntityEmail, or null if none has been assigned.
-
getEmailAddressUnmasked
Description copied from interface:EntityEmailContractGets thisEntityEmail's unmasked email address.- Specified by:
getEmailAddressUnmaskedin interfaceEntityEmailContract- Returns:
- the unmasked email address for this
EntityEmail, or null if none has been assigned.
-
isSuppressEmail
public boolean isSuppressEmail()Description copied from interface:EntityEmailContractReturns a boolean value that determines if email fields should be suppressed.- Specified by:
isSuppressEmailin interfaceEntityEmailContract- Returns:
- boolean value that determines if email 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
-
setEmailType
-
setEmailAddress
-
setDefaultValue
public void setDefaultValue(boolean defaultValue) -
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active)
-