public class ModelPermissions
extends Object
implements Cloneable, Serializable
Modifier | Constructor and Description |
---|---|
|
ModelPermissions() |
protected |
ModelPermissions(Map<String,Set<String>> roleNamesMap,
Map<String,Set<String>> actionIdsMap) |
Modifier and Type | Method and Description |
---|---|
void |
addRolePermissions(String roleName,
String actionId) |
void |
addRolePermissions(String roleName,
String[] actionIds) |
Object |
clone() |
String[] |
getActionIds(String roleName) |
List<String> |
getActionIdsList(String roleName) |
Collection<String> |
getRoleNames() |
Collection<String> |
getRoleNames(String actionId) |
boolean |
isEmpty() |
public ModelPermissions()
protected ModelPermissions(Map<String,Set<String>> roleNamesMap, Map<String,Set<String>> actionIdsMap)
public void addRolePermissions(String roleName, String actionId)
public void addRolePermissions(String roleName, String[] actionIds)
public Object clone()
clone
in class Object
public String[] getActionIds(String roleName)
public List<String> getActionIdsList(String roleName)
public Collection<String> getRoleNames()
public Collection<String> getRoleNames(String actionId)
public boolean isEmpty()