org.kuali.rice.kim.api.role
Class RoleMember.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.role.RoleMember.Builder
All Implemented Interfaces:
Serializable, InactivatableFromTo, ModelBuilder, ModelObjectBasic, ModelObjectComplete, RoleMemberContract
Enclosing class:
RoleMember

public static final class RoleMember.Builder
extends Object
implements ModelBuilder, RoleMemberContract, ModelObjectComplete

See Also:
Serialized Form

Constructor Summary
RoleMember.Builder()
           
 
Method Summary
 RoleMember build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RoleMember.Builder create(RoleMemberContract contract)
           
static RoleMember.Builder create(String roleId, String roleMemberId, String memberId, MemberType memberType, org.joda.time.DateTime activeFromDate, org.joda.time.DateTime activeToDate, Map<String,String> attributes)
           
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) 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 getMemberId()
           
 MemberType getMemberType()
           
 String getRoleId()
           
 String getRoleMemberId()
           
 List<RoleResponsibilityAction.Builder> getRoleRspActions()
           
 int hashCode()
          All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.
 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 setMemberId(String memberId)
           
 void setMemberType(MemberType memberType)
           
 void setRoleId(String roleId)
           
 void setRoleMemberId(String roleMemberId)
           
 void setRoleRspActions(List<RoleResponsibilityAction.Builder> roleRspActions)
           
 String toString()
          This will return a proper string representation of the Model Object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleMember.Builder

public RoleMember.Builder()
Method Detail

create

public static RoleMember.Builder create(String roleId,
                                        String roleMemberId,
                                        String memberId,
                                        MemberType memberType,
                                        org.joda.time.DateTime activeFromDate,
                                        org.joda.time.DateTime activeToDate,
                                        Map<String,String> attributes)

create

public static RoleMember.Builder create(RoleMemberContract contract)

build

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

getRoleMemberId

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

setRoleMemberId

public void setRoleMemberId(String roleMemberId)

getRoleId

public String getRoleId()
Specified by:
getRoleId in interface RoleMemberContract

setRoleId

public void setRoleId(String roleId)

getAttributes

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

setAttributes

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

getRoleRspActions

public List<RoleResponsibilityAction.Builder> getRoleRspActions()
Specified by:
getRoleRspActions in interface RoleMemberContract

setRoleRspActions

public void setRoleRspActions(List<RoleResponsibilityAction.Builder> roleRspActions)

getMemberId

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

setMemberId

public void setMemberId(String memberId)

getMemberType

public MemberType getMemberType()
Specified by:
getMemberType in interface RoleMemberContract

setMemberType

public void setMemberType(MemberType memberType)

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

hashCode

public int hashCode()
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.

Specified by:
hashCode in interface ModelObjectComplete
Overrides:
hashCode in class Object
Returns:
the hashCode value

equals

public boolean equals(Object obj)
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.

Specified by:
equals in interface ModelObjectComplete
Overrides:
equals in class Object
Parameters:
obj - to object to compare for equality
Returns:
if equal

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Overrides:
toString in class Object
Returns:
the string representation


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