public class PermissionSet extends SecuritySet<Permission>
idMap, nameMap
Constructor and Description |
---|
PermissionSet()
Constructs an empty PermissionSet
|
PermissionSet(Collection<? extends Permission> permissions)
Constructs a new PermissionSet with specified contents.
|
Modifier and Type | Method and Description |
---|---|
Permission |
getPermissionById(Object permissionId)
Deprecated.
Use getById()
|
Permission |
getPermissionByName(String permissionName)
Deprecated.
use getByName()
|
String |
toString()
Print out a PermissionSet as a String
|
add, add, addAll, clear, contains, containsAll, containsId, containsName, getById, getByName, getIds, getNames, getSet, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
public PermissionSet()
public PermissionSet(Collection<? extends Permission> permissions)
permissions
- A collection of permissions to be contained in the set.@Deprecated public Permission getPermissionByName(String permissionName)
permissionName
- Name of Permission.@Deprecated public Permission getPermissionById(Object permissionId)
permissionId
- Id of the Permission.public String toString()
toString
in class SecuritySet<Permission>
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.