public abstract class RolePermissionXmlDTO extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RolePermissionXmlDTO.OutsideOfRole
This class represents a <rolePermission> element that is not a descendant of a <role> element.
|
static class |
RolePermissionXmlDTO.WithinRole
This class represents a <rolePermission> element that is a descendant of a <role> element.
|
Constructor and Description |
---|
RolePermissionXmlDTO()
Constructs an empty RolePermissionXmlDTO instance.
|
RolePermissionXmlDTO(org.kuali.rice.kim.api.permission.PermissionContract permission,
boolean populateIds)
Constructs a RolePermissionXmlDTO that gets populated from the given KIM permission.
|
Modifier and Type | Method and Description |
---|---|
String |
getPermissionId() |
String |
getPermissionName()
Retrieves the permission name from the permission-name-and-namespace combo.
|
NameAndNamespacePair |
getPermissionNameAndNamespace() |
String |
getPermissionNamespaceCode()
Retrieves the permission namespace code from the permission-name-and-namespace combo.
|
abstract String |
getRoleId()
Retrieves the ID of the role that the permission is assigned to.
|
void |
setPermissionId(String permissionId) |
void |
setPermissionNameAndNamespace(NameAndNamespacePair permissionNameAndNamespace) |
public RolePermissionXmlDTO()
public RolePermissionXmlDTO(org.kuali.rice.kim.api.permission.PermissionContract permission, boolean populateIds)
permission
- The permission that this DTO should obtain its data from.populateIds
- If true, the permission ID will get populated; otherwise, it will remain null.public String getPermissionId()
public void setPermissionId(String permissionId)
permissionId
- the permissionId to setpublic NameAndNamespacePair getPermissionNameAndNamespace()
public void setPermissionNameAndNamespace(NameAndNamespacePair permissionNameAndNamespace)
permissionNameAndNamespace
- the permissionNameAndNamespace to setpublic String getPermissionName()
public String getPermissionNamespaceCode()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.