org.kuali.rice.kim.api.identity.name
Class EntityName.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.identity.name.EntityName.Builder
All Implemented Interfaces:
Serializable, Inactivatable, Defaultable, GloballyUnique, Identifiable, Versioned, ModelBuilder, EntityNameContract
Enclosing class:
EntityName

public static final class EntityName.Builder
extends Object
implements Serializable, ModelBuilder, EntityNameContract

A builder which can be used to construct EntityName instances. Enforces the constraints of the EntityNameContract.

See Also:
Serialized Form

Method Summary
 EntityName build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static EntityName.Builder create()
           
static EntityName.Builder create(EntityNameContract contract)
           
 String getEntityId()
          Gets this Entity's id.
 String getFirstName()
          Gets this EntityNameContract's first name.
 String getFirstNameUnmasked()
          Gets this EntityNameContract's unmasked first name.
 String getFormattedName()
          Return the entire name as the person or system wants it displayed.
 String getFormattedNameUnmasked()
          Gets this EntityNameContract's unmasked formatted name.
 String getId()
          The unique identifier for an object.
 String getLastName()
          Gets this EntityNameContract's last name.
 String getLastNameUnmasked()
          Gets this EntityNameContract's unmasked last name.
 String getMiddleName()
          Gets this EntityNameContract's middle name.
 String getMiddleNameUnmasked()
          Gets this EntityNameContract's unmasked middle name.
 Type.Builder getNameType()
          Gets this EntityNameContract's TypeContract.
 String getObjectId()
          Return the globally unique object id of this object.
 String getSuffix()
          Gets this EntityNameContract's suffix.
 String getSuffixUnmasked()
          Gets this EntityNameContract's unmasked suffix.
 String getTitle()
          Gets this EntityNameContract's title.
 String getTitleUnmasked()
          Gets this EntityNameContract's unmasked title.
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 boolean isDefaultValue()
          The default value for this object.
 boolean isSuppressName()
          Returns a boolean value that determines if email fields should be suppressed.
 void setActive(boolean active)
           
 void setDefaultValue(boolean defaultValue)
           
 void setEntityId(String entityId)
           
 void setFirstName(String firstName)
           
 void setId(String id)
           
 void setLastName(String lastName)
           
 void setMiddleName(String middleName)
           
 void setNameType(Type.Builder nameType)
           
 void setObjectId(String objectId)
           
 void setSuffix(String suffix)
           
 void setTitle(String title)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static EntityName.Builder create()

create

public static EntityName.Builder create(EntityNameContract contract)

build

public EntityName build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getSuffix

public String getSuffix()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's suffix.

Specified by:
getSuffix in interface EntityNameContract
Returns:
the suffix for this EntityNameContract, or null if none has been assigned.

getEntityId

public String getEntityId()
Description copied from interface: EntityNameContract
Gets this Entity's id.

Specified by:
getEntityId in interface EntityNameContract
Returns:
the id for this EntityNameContract, or null if none has been assigned.

getNameType

public Type.Builder getNameType()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's TypeContract.

Specified by:
getNameType in interface EntityNameContract
Returns:
the type for this EntityNameContract, or null if none has been assigned.

getFirstName

public String getFirstName()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's first name.

Specified by:
getFirstName in interface EntityNameContract
Returns:
the first name for this EntityNameContract, or null if none has been assigned.

getFirstNameUnmasked

public String getFirstNameUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked first name.

Specified by:
getFirstNameUnmasked in interface EntityNameContract
Returns:
the unmasked first name for this EntityNameContract, or null if none has been assigned.

getMiddleName

public String getMiddleName()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's middle name.

Specified by:
getMiddleName in interface EntityNameContract
Returns:
the middle name for this EntityNameContract, or null if none has been assigned.

getMiddleNameUnmasked

public String getMiddleNameUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked middle name.

Specified by:
getMiddleNameUnmasked in interface EntityNameContract
Returns:
the unmasked middle name for this EntityNameContract, or null if none has been assigned.

getLastName

public String getLastName()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's last name.

Specified by:
getLastName in interface EntityNameContract
Returns:
the last name for this EntityNameContract, or null if none has been assigned.

getLastNameUnmasked

public String getLastNameUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked last name.

Specified by:
getLastNameUnmasked in interface EntityNameContract
Returns:
the unmasked last name for this EntityNameContract, or null if none has been assigned.

getTitle

public String getTitle()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's title.

Specified by:
getTitle in interface EntityNameContract
Returns:
the title for this EntityNameContract, or null if none has been assigned.

getTitleUnmasked

public String getTitleUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked title.

Specified by:
getTitleUnmasked in interface EntityNameContract
Returns:
the unmasked title for this EntityNameContract, or null if none has been assigned.

getSuffixUnmasked

public String getSuffixUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked suffix.

Specified by:
getSuffixUnmasked in interface EntityNameContract
Returns:
the unmasked suffix for this EntityNameContract, or null if none has been assigned.

getFormattedName

public String getFormattedName()
Description copied from interface: EntityNameContract
Return the entire name as the person or system wants it displayed.

Specified by:
getFormattedName in interface EntityNameContract
Returns:
the complete name in the format of "lastName, firstName middleName"

getFormattedNameUnmasked

public String getFormattedNameUnmasked()
Description copied from interface: EntityNameContract
Gets this EntityNameContract's unmasked formatted name.

Specified by:
getFormattedNameUnmasked in interface EntityNameContract
Returns:
the complete name in the format of "lastName, firstName middleName"

isSuppressName

public boolean isSuppressName()
Description copied from interface: EntityNameContract
Returns a boolean value that determines if email fields should be suppressed.

Specified by:
isSuppressName in interface EntityNameContract
Returns:
boolean value that determines if email should be suppressed.

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet

isDefaultValue

public boolean isDefaultValue()
Description copied from interface: Defaultable
The default value for this object.

Specified by:
isDefaultValue in interface Defaultable
Returns:
the default value for this object

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setSuffix

public void setSuffix(String suffix)

setEntityId

public void setEntityId(String entityId)

setNameType

public void setNameType(Type.Builder nameType)

setFirstName

public void setFirstName(String firstName)

setMiddleName

public void setMiddleName(String middleName)

setLastName

public void setLastName(String lastName)

setTitle

public void setTitle(String title)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)

setDefaultValue

public void setDefaultValue(boolean defaultValue)

setActive

public void setActive(boolean active)

setId

public void setId(String id)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.