public class Permissions extends HashMap<String,Boolean> implements JSONEnabled
A mapping from operations to booleans.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Permissions() |
Modifier and Type | Method and Description |
---|---|
Permissions |
add(Operation operation,
boolean allowed) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public Permissions()
public Permissions add(Operation operation, boolean allowed)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Copyright © 2018. All Rights Reserved.