de.deepamehta.plugins.accesscontrol.model
Class Permissions
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Boolean>
de.deepamehta.plugins.accesscontrol.model.Permissions
- All Implemented Interfaces:
- JSONEnabled, Serializable, Cloneable, Map<String,Boolean>
public class Permissions
- extends HashMap<String,Boolean>
- implements JSONEnabled
A mapping from operations to booleans.
Permissions objects are used to represent both:
- a part of a static ACL entry ### FIXDOC
- calculated permissions for the current user
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Permissions
public Permissions()
Permissions
public Permissions(JSONObject permissions)
add
public Permissions add(Operation operation,
boolean allowed)
toJSON
public JSONObject toJSON()
- Specified by:
toJSON
in interface JSONEnabled
Copyright © 2014. All Rights Reserved.