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

Field Summary
private  Timestamp activeFromDate
           
private  Timestamp activeToDate
           
private  Map<String,String> attributes
           
private  String memberId
           
private  String memberTypeCode
           
private  String roleId
           
private  String roleMemberId
           
private  List<RoleResponsibilityAction.Builder> roleRspActions
           
 
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, String memberTypeCode, Timestamp activeFromDate, Timestamp activeToDate, Map<String,String> attributes)
           
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.
 Timestamp getActiveFromDate()
          Gets the date for which the record become active.
 Timestamp getActiveToDate()
          Gets the date for which the record become inactive.
 Map<String,String> getAttributes()
           
 String getMemberId()
           
 String getMemberTypeCode()
           
 String getRoleId()
           
 String getRoleMemberId()
           
 List<RoleResponsibilityAction.Builder> getRoleRspActions()
           
 int hashCode()
          All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.
 boolean isActive(Timestamp activeAsOfDate)
          Returns if the record is active for a given Time.
 void setActiveFromDate(Timestamp activeFromDate)
           
 void setActiveToDate(Timestamp activeToDate)
           
 void setAttributes(Map<String,String> attributes)
           
 void setMemberId(String memberId)
           
 void setMemberTypeCode(String memberTypeCode)
           
 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
 

Field Detail

roleMemberId

private String roleMemberId

roleId

private String roleId

attributes

private Map<String,String> attributes

roleRspActions

private List<RoleResponsibilityAction.Builder> roleRspActions

memberId

private String memberId

memberTypeCode

private String memberTypeCode

activeFromDate

private Timestamp activeFromDate

activeToDate

private Timestamp activeToDate
Constructor Detail

RoleMember.Builder

public RoleMember.Builder()
Method Detail

create

public static RoleMember.Builder create(String roleId,
                                        String roleMemberId,
                                        String memberId,
                                        String memberTypeCode,
                                        Timestamp activeFromDate,
                                        Timestamp 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)

getMemberTypeCode

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

setMemberTypeCode

public void setMemberTypeCode(String memberTypeCode)

getActiveFromDate

public Timestamp 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(Timestamp activeFromDate)

getActiveToDate

public Timestamp 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(Timestamp activeToDate)

isActive

public boolean isActive(Timestamp 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 © 2004-2011 The Kuali Foundation. All Rights Reserved.