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

Public Member Functions

SecurityGroup getSocialGroup (String id)
 

Static Public Member Functions

static SecurityGroup get (String id)
 
static Collection< SecurityGroupgetAll ()
 
static SecurityGroups instance ()
 
static void reset ()
 

Protected Member Functions

void recurseSocialGroups (Set< String > flatSocials, SecurityGroup sg)
 
boolean possibleTag (String tag)
 
 SecurityGroups ()
 

Protected Attributes

final Map< String, SecurityGroupsocialGroups
 

Detailed Description

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

Definition at line 34 of file SecurityGroups.java.

Constructor & Destructor Documentation

◆ SecurityGroups()

org.turro.security.SecurityGroups.SecurityGroups ( )
protected

Definition at line 77 of file SecurityGroups.java.

77  {
78  socialGroups = new HashMap<>();
79  loadMap();
80  }
final Map< String, SecurityGroup > socialGroups
Here is the caller graph for this function:

Member Function Documentation

◆ get()

static SecurityGroup org.turro.security.SecurityGroups.get ( String  id)
static

Definition at line 38 of file SecurityGroups.java.

38  {
39  return instance().getSocialGroup(id);
40  }
static SecurityGroups instance()
SecurityGroup getSocialGroup(String id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAll()

static Collection<SecurityGroup> org.turro.security.SecurityGroups.getAll ( )
static

Definition at line 42 of file SecurityGroups.java.

42  {
43  return instance().socialGroups.values();
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSocialGroup()

SecurityGroup org.turro.security.SecurityGroups.getSocialGroup ( String  id)

Definition at line 48 of file SecurityGroups.java.

48  {
49  return socialGroups.get(id);
50  }
Here is the caller graph for this function:

◆ instance()

static SecurityGroups org.turro.security.SecurityGroups.instance ( )
static

Reimplemented in org.turro.security.SocialGroups.

Definition at line 69 of file SecurityGroups.java.

69  {
70  return INIT.instance(() -> new SecurityGroups());
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ possibleTag()

boolean org.turro.security.SecurityGroups.possibleTag ( String  tag)
protected

Definition at line 61 of file SecurityGroups.java.

61  {
62  return socialGroups.values().stream().anyMatch(social -> social.getTags().contains(tag));
63  }
Here is the caller graph for this function:

◆ recurseSocialGroups()

void org.turro.security.SecurityGroups.recurseSocialGroups ( Set< String >  flatSocials,
SecurityGroup  sg 
)
protected

Definition at line 52 of file SecurityGroups.java.

52  {
53  if(sg != null) {
54  flatSocials.add(sg.getId());
55  sg.getSyndicate().forEach(social -> {
56  recurseSocialGroups(flatSocials, socialGroups.get(social));
57  });
58  }
59  }
void recurseSocialGroups(Set< String > flatSocials, SecurityGroup sg)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

static void org.turro.security.SecurityGroups.reset ( )
static

Definition at line 73 of file SecurityGroups.java.

73  {
74  INIT.reset();
75  }
Here is the caller graph for this function:

Member Data Documentation

◆ socialGroups

final Map<String, SecurityGroup> org.turro.security.SecurityGroups.socialGroups
protected

Definition at line 36 of file SecurityGroups.java.


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