public static final class RoleMembership.Builder extends Object implements ModelBuilder, RoleMembershipContract, ModelObjectComplete
Modifier and Type | Method and Description |
---|---|
RoleMembership |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static RoleMembership.Builder |
create(RoleMembershipContract contract) |
static RoleMembership.Builder |
create(String roleId,
String id,
String memberId,
MemberType memberType,
Map<String,String> qualifier) |
static RoleMembership.Builder |
create(String roleId,
String id,
String memberId,
MemberType memberType,
Map<String,String> qualifier,
org.joda.time.DateTime activeFromDate,
org.joda.time.DateTime activeToDate) |
boolean |
equals(Object obj)
All "Complete" model object's should adhere to the
ModelObjectComplete.equals(Object) contract. |
org.joda.time.DateTime |
getActiveFromDate() |
org.joda.time.DateTime |
getActiveToDate() |
List<DelegateType.Builder> |
getDelegates() |
String |
getEmbeddedRoleId() |
String |
getId()
The unique identifier for an object.
|
String |
getMemberId() |
Map<String,String> |
getQualifier() |
String |
getRoleId() |
String |
getRoleSortingCode() |
MemberType |
getType() |
int |
hashCode()
All "Complete" model object's should adhere to the
ModelObjectComplete.hashCode() contract. |
void |
setActiveFromDate(org.joda.time.DateTime activeFromDate) |
void |
setActiveToDate(org.joda.time.DateTime activeToDate) |
void |
setDelegates(List<DelegateType.Builder> delegates) |
void |
setEmbeddedRoleId(String embeddedRoleId) |
void |
setId(String id) |
void |
setMemberId(String memberId) |
void |
setQualifier(Map<String,String> qualifier) |
void |
setRoleId(String roleId) |
void |
setRoleSortingCode(String roleSortingCode) |
void |
setType(MemberType type) |
String |
toString()
This will return a proper string representation of the Model Object.
|
public static RoleMembership.Builder create(String roleId, String id, String memberId, MemberType memberType, Map<String,String> qualifier)
public static RoleMembership.Builder create(String roleId, String id, String memberId, MemberType memberType, Map<String,String> qualifier, org.joda.time.DateTime activeFromDate, org.joda.time.DateTime activeToDate)
public static RoleMembership.Builder create(RoleMembershipContract contract)
public RoleMembership build()
ModelBuilder
build
in interface ModelBuilder
public String getRoleId()
getRoleId
in interface RoleMembershipContract
public Map<String,String> getQualifier()
getQualifier
in interface RoleMembershipContract
public void setQualifier(Map<String,String> qualifier)
public List<DelegateType.Builder> getDelegates()
getDelegates
in interface RoleMembershipContract
public void setDelegates(List<DelegateType.Builder> delegates)
public org.joda.time.DateTime getActiveFromDate()
public void setActiveFromDate(org.joda.time.DateTime activeFromDate)
public org.joda.time.DateTime getActiveToDate()
public void setActiveToDate(org.joda.time.DateTime activeToDate)
public String getId()
Identifiable
getId
in interface Identifiable
public String getMemberId()
getMemberId
in interface RoleMembershipContract
public void setMemberId(String memberId)
public MemberType getType()
getType
in interface RoleMembershipContract
public void setType(MemberType type)
public String getEmbeddedRoleId()
getEmbeddedRoleId
in interface RoleMembershipContract
public void setEmbeddedRoleId(String embeddedRoleId)
public String getRoleSortingCode()
getRoleSortingCode
in interface RoleMembershipContract
public void setRoleSortingCode(String roleSortingCode)
public int hashCode()
ModelObjectComplete
ModelObjectComplete.hashCode()
contract.hashCode
in interface ModelObjectComplete
hashCode
in class Object
public boolean equals(Object obj)
ModelObjectComplete
ModelObjectComplete.equals(Object)
contract.equals
in interface ModelObjectComplete
equals
in class Object
obj
- to object to compare for equalitypublic String toString()
ModelObjectBasic
toString
in interface ModelObjectBasic
toString
in class Object
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.