BrightSide Workbench Full Report + Source Code
org.turro.security.ConceptPermissionMap Class Reference
Inheritance diagram for org.turro.security.ConceptPermissionMap:
Collaboration diagram for org.turro.security.ConceptPermissionMap:

Public Member Functions

ConceptPermission put (String key, ConceptPermission value)
 
ConceptPermission put (ConceptPermission value)
 
ConceptPermission get (Object key)
 
ConceptPermission get (String name, IElephantEntity iee)
 
Collection< String > concepts ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file ConceptPermissionMap.java.

Member Function Documentation

◆ concepts()

Collection<String> org.turro.security.ConceptPermissionMap.concepts ( )

Definition at line 58 of file ConceptPermissionMap.java.

58  {
59  TreeMap<Integer, String> names = new TreeMap<>();
60  forEach((k, v) -> names.put(v.getOrder(), k));
61  return names.values();
62  }
Here is the caller graph for this function:

◆ get() [1/2]

ConceptPermission org.turro.security.ConceptPermissionMap.get ( Object  key)

Definition at line 48 of file ConceptPermissionMap.java.

48  {
49  throw new UnsupportedOperationException("Use get(name, iee)");
50  }
Here is the caller graph for this function:

◆ get() [2/2]

ConceptPermission org.turro.security.ConceptPermissionMap.get ( String  name,
IElephantEntity  iee 
)

Definition at line 52 of file ConceptPermissionMap.java.

52  {
53  ConceptPermission cp = super.get(name);
54  if(cp != null) cp.init(iee, contact);
55  return cp;
56  }
Here is the call graph for this function:

◆ put() [1/2]

ConceptPermission org.turro.security.ConceptPermissionMap.put ( ConceptPermission  value)

Definition at line 43 of file ConceptPermissionMap.java.

43  {
44  return this.put(value.getName(), value);
45  }
ConceptPermission put(String key, ConceptPermission value)
Here is the call graph for this function:

◆ put() [2/2]

ConceptPermission org.turro.security.ConceptPermissionMap.put ( String  key,
ConceptPermission  value 
)

Definition at line 38 of file ConceptPermissionMap.java.

38  {
39  if(value.getOrder() == -1) value.order(size());
40  return super.put(key, value);
41  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: