Class Permissions
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Boolean>
-
- systems.dmx.core.service.accesscontrol.Permissions
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Boolean>
,JSONEnabled
public class Permissions extends HashMap<String,Boolean> implements JSONEnabled
Calculated permissions for the current user.A mapping from operations to booleans.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Permissions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Permissions
add(Operation operation, boolean allowed)
org.codehaus.jettison.json.JSONObject
toJSON()
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface systems.dmx.core.JSONEnabled
dump
-
-
-
-
Method Detail
-
add
public Permissions add(Operation operation, boolean allowed)
-
toJSON
public org.codehaus.jettison.json.JSONObject toJSON()
- Specified by:
toJSON
in interfaceJSONEnabled
-
-