de.deepamehta.core.service.accesscontrol
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.core.service.accesscontrol.Permissions
All Implemented Interfaces:
JSONEnabled, Serializable, Cloneable, Map<String,Boolean>

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,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Permissions()
           
 
Method Summary
 Permissions add(Operation operation, boolean allowed)
           
 org.codehaus.jettison.json.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()
Method Detail

add

public Permissions add(Operation operation,
                       boolean allowed)

toJSON

public org.codehaus.jettison.json.JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled


Copyright © 2015. All Rights Reserved.