public abstract class RoleMemberXmlDTO extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RoleMemberXmlDTO.OutsideOfRole
This class represents a <roleMember> element that is not a descendant of a <role> element.
|
static class |
RoleMemberXmlDTO.WithinRole
This class represents a <roleMember> element that is a descendant of a <role> element.
|
Constructor and Description |
---|
RoleMemberXmlDTO()
Constructs an empty RoleMemberXmlDTO instance.
|
RoleMemberXmlDTO(org.kuali.rice.kim.api.role.RoleMember roleMember,
boolean populateMemberId)
Constructs a RoleMemberXmlDTO instance that is populated with the info from the given role member.
|
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getActiveFromDate() |
org.joda.time.DateTime |
getActiveToDate() |
String |
getGroupId() |
NameAndNamespacePair |
getGroupName() |
String |
getMemberId()
Retrieves the role member's ID, based on the member type and any populated member principal/group/role IDs.
|
String |
getMemberName()
Retrieves the role member's name, based on the member type and any populated member principal/group/role names.
|
String |
getMemberNamespaceCode()
Retrieves the role member's namespace code, based on the member type and any populated member principal/group/role names.
|
org.kuali.rice.core.api.membership.MemberType |
getMemberType()
Retrieves the member type.
|
String |
getPrincipalId() |
String |
getPrincipalName() |
Map<String,String> |
getQualifications() |
abstract String |
getRoleId()
Retrieves the ID of the role that this member belongs to.
|
String |
getRoleIdAsMember() |
NameAndNamespacePair |
getRoleNameAsMember() |
void |
setActiveFromDate(org.joda.time.DateTime activeFromDate) |
void |
setActiveToDate(org.joda.time.DateTime activeToDate) |
void |
setGroupId(String groupId) |
void |
setGroupName(NameAndNamespacePair groupName) |
void |
setPrincipalId(String principalId) |
void |
setPrincipalName(String principalName) |
void |
setQualifications(Map<String,String> qualifications) |
void |
setRoleIdAsMember(String roleIdAsMember) |
void |
setRoleNameAsMember(NameAndNamespacePair roleNameAsMember) |
public RoleMemberXmlDTO()
public RoleMemberXmlDTO(org.kuali.rice.kim.api.role.RoleMember roleMember, boolean populateMemberId)
roleMember
- The role member that this DTO should populate its data from.populateMemberId
- If true, the member principal/group/role ID will get populated; otherwise, only
the member principal/group/role name and (if applicable) namespace will get populated.IllegalArgumentException
- if roleMember is null, has an invalid member type, or refers to a nonexistent principal/group/role.public String getPrincipalId()
public void setPrincipalId(String principalId)
principalId
- the principalId to setpublic String getPrincipalName()
public void setPrincipalName(String principalName)
principalName
- the principalName to setpublic String getGroupId()
public void setGroupId(String groupId)
groupId
- the groupId to setpublic NameAndNamespacePair getGroupName()
public void setGroupName(NameAndNamespacePair groupName)
groupName
- the groupName to setpublic String getRoleIdAsMember()
public void setRoleIdAsMember(String roleIdAsMember)
roleIdAsMember
- the roleIdAsMember to setpublic NameAndNamespacePair getRoleNameAsMember()
public void setRoleNameAsMember(NameAndNamespacePair roleNameAsMember)
roleNameAsMember
- the roleNameAsMember to setpublic org.joda.time.DateTime getActiveFromDate()
public void setActiveFromDate(org.joda.time.DateTime activeFromDate)
activeFromDate
- the activeFromDate to setpublic org.joda.time.DateTime getActiveToDate()
public void setActiveToDate(org.joda.time.DateTime activeToDate)
activeToDate
- the activeToDate to setpublic Map<String,String> getQualifications()
public void setQualifications(Map<String,String> qualifications)
qualifications
- the qualifications to setpublic org.kuali.rice.core.api.membership.MemberType getMemberType()
If the member type is null at the time that this method is invoked, an attempt will be made to set its value based on any populated member principal/group/role ID/name information.
IllegalStateException
- if the role member is populated simultaneously with multiple member ID/name informationpublic String getMemberId()
If the member type is null at the time that this method is invoked, an attempt will be made to set its value based on any populated member principal/group/role ID/name information.
public String getMemberName()
If the member type is null at the time that this method is invoked, an attempt will be made to set its value based on any populated member principal/group/role ID/name information.
public String getMemberNamespaceCode()
If the member type is null at the time that this method is invoked, an attempt will be made to set its value based on any populated member principal/group/role ID/name information.
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.