public class RoleIdToDocumentPermissionSetTypeMappings
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleIdToDocumentPermissionSetTypeMappings.Mapping
Map entry (2-tuple): roleId -> PermissionSetType
|
| Constructor and Description |
|---|
RoleIdToDocumentPermissionSetTypeMappings() |
| Modifier and Type | Method and Description |
|---|---|
RoleIdToDocumentPermissionSetTypeMappings |
clone() |
RoleIdToDocumentPermissionSetTypeMappings.Mapping[] |
getMappings() |
Meta.Permission |
getPermissionSetTypeForRole(java.lang.Integer roleId) |
void |
setPermissionSetTypeForRole(java.lang.Integer roleId,
Meta.Permission documentPermissionSetType)
Adds or removes entry to/from this mapping.
|
public RoleIdToDocumentPermissionSetTypeMappings()
public RoleIdToDocumentPermissionSetTypeMappings clone()
clone in class java.lang.Objectpublic void setPermissionSetTypeForRole(java.lang.Integer roleId,
Meta.Permission documentPermissionSetType)
roleId - a mapping key.documentPermissionSetType - mapping value. If null then entry is removed from this mapping.public Meta.Permission getPermissionSetTypeForRole(java.lang.Integer roleId)
roleId - mapping key.public RoleIdToDocumentPermissionSetTypeMappings.Mapping[] getMappings()