Class EntityEmail.Builder

java.lang.Object
org.kuali.rice.kim.api.identity.email.EntityEmail.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.Defaultable, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, EntityEmailContract
Enclosing class:
EntityEmail

public static final class EntityEmail.Builder extends Object implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, EntityEmailContract
A builder which can be used to construct EntityEmail instances. Enforces the constraints of the EntityEmailContract.
See Also:
  • Method Details

    • create

      public static EntityEmail.Builder create()
    • create

      public static EntityEmail.Builder create(EntityEmailContract contract)
    • build

      public EntityEmail build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder
    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • getEntityTypeCode

      public String getEntityTypeCode()
      Description copied from interface: EntityEmailContract
      Gets this entityTypeCode of the EntityEmailContract's object.
      Specified by:
      getEntityTypeCode in interface EntityEmailContract
      Returns:
      the identity type code for this EntityEmailContract
    • getEntityId

      public String getEntityId()
      Description copied from interface: EntityEmailContract
      Gets this id of the parent identity object.
      Specified by:
      getEntityId in interface EntityEmailContract
      Returns:
      the identity id for this EntityEmailContract
    • getEmailType

      public CodedAttribute.Builder getEmailType()
      Description copied from interface: EntityEmailContract
      Gets this EntityEmail's type code.
      Specified by:
      getEmailType in interface EntityEmailContract
      Returns:
      the type code for this EntityEmail, or null if none has been assigned.
    • getEmailAddress

      public String getEmailAddress()
      Description copied from interface: EntityEmailContract
      Gets this EntityEmail's email address.
      Specified by:
      getEmailAddress in interface EntityEmailContract
      Returns:
      the email address for this EntityEmail, or null if none has been assigned.
    • getEmailAddressUnmasked

      public String getEmailAddressUnmasked()
      Description copied from interface: EntityEmailContract
      Gets this EntityEmail's unmasked email address.
      Specified by:
      getEmailAddressUnmasked in interface EntityEmailContract
      Returns:
      the unmasked email address for this EntityEmail, or null if none has been assigned.
    • isSuppressEmail

      public boolean isSuppressEmail()
      Description copied from interface: EntityEmailContract
      Returns a boolean value that determines if email fields should be suppressed.
      Specified by:
      isSuppressEmail in interface EntityEmailContract
      Returns:
      boolean value that determines if email should be suppressed.
    • isDefaultValue

      public boolean isDefaultValue()
      Specified by:
      isDefaultValue in interface org.kuali.rice.core.api.mo.common.Defaultable
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • getObjectId

      public String getObjectId()
      Specified by:
      getObjectId in interface org.kuali.rice.core.api.mo.common.GloballyUnique
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setId

      public void setId(String id)
    • setEntityTypeCode

      public void setEntityTypeCode(String entityTypeCode)
    • setEntityId

      public void setEntityId(String entityId)
    • setEmailType

      public void setEmailType(CodedAttribute.Builder emailType)
    • setEmailAddress

      public void setEmailAddress(String emailAddress)
    • setDefaultValue

      public void setDefaultValue(boolean defaultValue)
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • setObjectId

      public void setObjectId(String objectId)
    • setActive

      public void setActive(boolean active)