19 package org.turro.security;
21 import java.util.Collection;
22 import java.util.HashMap;
23 import java.util.TreeMap;
24 import org.turro.elephant.context.Application;
25 import org.turro.entities.IElephantEntity;
26 import org.turro.plugin.contacts.IContact;
27 import org.turro.util.Cached;
39 if(value.
getOrder() == -1) value.order(size());
40 return super.put(key, value);
49 throw new UnsupportedOperationException(
"Use get(name, iee)");
54 if(cp !=
null) cp.
init(iee, contact);
59 TreeMap<Integer, String> names =
new TreeMap<>();
60 forEach((k, v) -> names.put(v.getOrder(), k));
61 return names.values();
static IContact getUser()
ConceptPermission put(ConceptPermission value)
Collection< String > concepts()
ConceptPermission put(String key, ConceptPermission value)
void init(IElephantEntity iee, Cached< IContact > contact)