org.kuali.rice.kim.api.common.delegate
Class DelegateMember.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.common.delegate.DelegateMember.Builder
All Implemented Interfaces:
Serializable, Inactivatable, InactivatableFromTo, Versioned, ModelBuilder, DelegateMemberContract
Enclosing class:
DelegateMember

public static final class DelegateMember.Builder
extends Object
implements Serializable, ModelBuilder, DelegateMemberContract

A builder which can be used to construct DelegateMember instances. Enforces the constraints of the DelegateMemberContract.

See Also:
Serialized Form

Method Summary
 DelegateMember build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static DelegateMember.Builder create()
           
static DelegateMember.Builder create(DelegateMemberContract contract)
           
 org.joda.time.DateTime getActiveFromDate()
          Gets the date for which the record become active.
 org.joda.time.DateTime getActiveToDate()
          Gets the date for which the record become inactive.
 Map<String,String> getAttributes()
           
 String getDelegationId()
           
 String getDelegationMemberId()
           
 String getMemberId()
           
 String getRoleMemberId()
           
 MemberType getType()
           
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 boolean isActive(org.joda.time.DateTime activeAsOfDate)
          Returns if the record is active for a given Time.
 void setActiveFromDate(org.joda.time.DateTime activeFromDate)
           
 void setActiveToDate(org.joda.time.DateTime activeToDate)
           
 void setAttributes(Map<String,String> attributes)
           
 void setDelegationId(String delegationId)
           
 void setDelegationMemberId(String delegationMemberId)
           
 void setMemberId(String memberId)
           
 void setRoleMemberId(String roleMemberId)
           
 void setType(MemberType type)
           
 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 DelegateMember.Builder create()

create

public static DelegateMember.Builder create(DelegateMemberContract contract)

build

public DelegateMember 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

getDelegationMemberId

public String getDelegationMemberId()
Specified by:
getDelegationMemberId in interface DelegateMemberContract

setDelegationMemberId

public void setDelegationMemberId(String delegationMemberId)

getDelegationId

public String getDelegationId()
Specified by:
getDelegationId in interface DelegateMemberContract

setDelegationId

public void setDelegationId(String delegationId)

getMemberId

public String getMemberId()
Specified by:
getMemberId in interface DelegateMemberContract

setMemberId

public void setMemberId(String memberId)

getRoleMemberId

public String getRoleMemberId()
Specified by:
getRoleMemberId in interface DelegateMemberContract

setRoleMemberId

public void setRoleMemberId(String roleMemberId)

getType

public MemberType getType()
Specified by:
getType in interface DelegateMemberContract

setType

public void setType(MemberType type)

getAttributes

public Map<String,String> getAttributes()
Specified by:
getAttributes in interface DelegateMemberContract

setAttributes

public void setAttributes(Map<String,String> attributes)

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

setVersionNumber

public void setVersionNumber(Long versionNumber)

getActiveFromDate

public org.joda.time.DateTime getActiveFromDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become active. Can be null.

Specified by:
getActiveFromDate in interface InactivatableFromTo
Returns:
Timestamp of active from date

setActiveFromDate

public void setActiveFromDate(org.joda.time.DateTime activeFromDate)

getActiveToDate

public org.joda.time.DateTime getActiveToDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become inactive. Can be null.

Specified by:
getActiveToDate in interface InactivatableFromTo
Returns:
Timestamp of active to date

setActiveToDate

public void setActiveToDate(org.joda.time.DateTime activeToDate)

isActive

public boolean isActive(org.joda.time.DateTime activeAsOfDate)
Description copied from interface: InactivatableFromTo
Returns if the record is active for a given Time. If the activeAsOfDate is null will return null.

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

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.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.