de.deepamehta.plugins.accesscontrol.model
Class Permissions

Show UML class diagram
java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Boolean>
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Permissions()
           
Permissions(JSONObject permissions)
           
 
Method Summary
 Permissions add(Operation operation, boolean allowed)
           
 JSONObject toJSON()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, 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 java.util.Map
equals, hashCode
 

Constructor Detail

Permissions

public Permissions()

Permissions

public Permissions(JSONObject permissions)
Method Detail

add

public Permissions add(Operation operation,
                       boolean allowed)

toJSON

public JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled


Copyright © 2014. All Rights Reserved.