19 package org.turro.security;
21 import java.util.Collection;
34 this.flatPermissions = contactPermissions;
39 return flatPermissions.size();
44 return flatPermissions.isEmpty();
49 return flatPermissions.containsKey(key);
54 throw new UnsupportedOperationException(
"Not supported yet.");
58 public Boolean
get(Object key) {
59 return flatPermissions.
isInRole((String) key);
63 public Boolean
put(String key, Boolean value) {
64 throw new UnsupportedOperationException(
"Not supported yet.");
68 public Boolean
remove(Object key) {
69 throw new UnsupportedOperationException(
"Not supported yet.");
73 public void putAll(Map<? extends String, ? extends Boolean> m) {
74 throw new UnsupportedOperationException(
"Not supported yet.");
79 throw new UnsupportedOperationException(
"Not supported yet.");
84 return flatPermissions.keySet();
88 public Collection<Boolean>
values() {
89 throw new UnsupportedOperationException(
"Not supported yet.");
93 public Set<Map.Entry<String, Boolean>>
entrySet() {
94 throw new UnsupportedOperationException(
"Not supported yet.");
boolean isInRole(String role)
Set< Map.Entry< String, Boolean > > entrySet()
boolean containsValue(Object value)
boolean containsKey(Object key)
PermissionMap(FlatPermissions contactPermissions)
Collection< Boolean > values()
void putAll(Map<? extends String, ? extends Boolean > m)
Boolean put(String key, Boolean value)