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

Public Member Functions

String getId ()
 
void setId (String id)
 
String getName ()
 
void setName (String name)
 
boolean isInherits ()
 
void setInherits (boolean inherits)
 
SecurityGroupType getType ()
 
void setType (SecurityGroupType type)
 
Set< String > getSyndicate ()
 
Set< AllowedGroupgetAllowed ()
 
Set< String > getRoles ()
 
Set< String > getTags ()
 
int compareTo (SecurityGroup o)
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static SecurityGroup loadFrom (File file)
 
static void saveTo (File file, SecurityGroup socialGroup)
 

Static Public Attributes

static final String ACCOUNT_AUXILIAR ="account_auxiliar"
 

Detailed Description

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

Definition at line 40 of file SecurityGroup.java.

Member Function Documentation

◆ compareTo()

int org.turro.security.SecurityGroup.compareTo ( SecurityGroup  o)

Definition at line 173 of file SecurityGroup.java.

173  {
174  return Comparison.ascendant().compare(id, o.id).get();
175  }

◆ equals()

boolean org.turro.security.SecurityGroup.equals ( Object  obj)

Definition at line 187 of file SecurityGroup.java.

187  {
188  if (this == obj) {
189  return true;
190  }
191  if (obj == null) {
192  return false;
193  }
194  if (getClass() != obj.getClass()) {
195  return false;
196  }
197  final SecurityGroup other = (SecurityGroup) obj;
198  return Objects.equals(this.id, other.id);
199  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAllowed()

Set<AllowedGroup> org.turro.security.SecurityGroup.getAllowed ( )

Definition at line 86 of file SecurityGroup.java.

86  {
87  return allowed;
88  }

◆ getId()

String org.turro.security.SecurityGroup.getId ( )

Definition at line 50 of file SecurityGroup.java.

50  {
51  return id;
52  }
Here is the caller graph for this function:

◆ getName()

String org.turro.security.SecurityGroup.getName ( )

Definition at line 58 of file SecurityGroup.java.

58  {
59  return name;
60  }
Here is the caller graph for this function:

◆ getRoles()

Set<String> org.turro.security.SecurityGroup.getRoles ( )

Definition at line 90 of file SecurityGroup.java.

90  {
91  return roles;
92  }
Here is the caller graph for this function:

◆ getSyndicate()

Set<String> org.turro.security.SecurityGroup.getSyndicate ( )

Definition at line 82 of file SecurityGroup.java.

82  {
83  return syndicate;
84  }
Here is the caller graph for this function:

◆ getTags()

Set<String> org.turro.security.SecurityGroup.getTags ( )

Definition at line 94 of file SecurityGroup.java.

94  {
95  return tags;
96  }

◆ getType()

SecurityGroupType org.turro.security.SecurityGroup.getType ( )

Definition at line 74 of file SecurityGroup.java.

74  {
75  return type == null ? SecurityGroupType.SG_EXTERNAL : type;
76  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.security.SecurityGroup.hashCode ( )

Definition at line 180 of file SecurityGroup.java.

180  {
181  int hash = 5;
182  hash = 37 * hash + Objects.hashCode(this.id);
183  return hash;
184  }

◆ isInherits()

boolean org.turro.security.SecurityGroup.isInherits ( )

Definition at line 66 of file SecurityGroup.java.

66  {
67  return inherits;
68  }

◆ loadFrom()

static SecurityGroup org.turro.security.SecurityGroup.loadFrom ( File  file)
static

Definition at line 105 of file SecurityGroup.java.

105  {
106  try(Reader reader = new FileReader(file)) {
107  return JsonConfiguration.read(reader, SecurityGroup.class);
108  } catch (IOException ex) {
109  Logger.getLogger(SecurityGroup.class.getName()).log(Level.SEVERE, null, ex);
110  return null;
111  }
112  }
Here is the call graph for this function:

◆ saveTo()

static void org.turro.security.SecurityGroup.saveTo ( File  file,
SecurityGroup  socialGroup 
)
static

Definition at line 114 of file SecurityGroup.java.

114  {
115  try(Writer writer = new FileWriter(file)) {
116  socialGroup.prepareSaving();
117  JsonConfiguration.write(writer, socialGroup);
118  } catch (IOException ex) {
119  Logger.getLogger(SecurityGroup.class.getName()).log(Level.SEVERE, null, ex);
120  }
121  }
Here is the call graph for this function:

◆ setId()

void org.turro.security.SecurityGroup.setId ( String  id)

Definition at line 54 of file SecurityGroup.java.

54  {
55  this.id = id;
56  }

◆ setInherits()

void org.turro.security.SecurityGroup.setInherits ( boolean  inherits)

Definition at line 70 of file SecurityGroup.java.

70  {
71  this.inherits = inherits;
72  }

◆ setName()

void org.turro.security.SecurityGroup.setName ( String  name)

Definition at line 62 of file SecurityGroup.java.

62  {
63  this.name = name;
64  }

◆ setType()

void org.turro.security.SecurityGroup.setType ( SecurityGroupType  type)

Definition at line 78 of file SecurityGroup.java.

78  {
79  this.type = type;
80  }

Member Data Documentation

◆ ACCOUNT_AUXILIAR

final String org.turro.security.SecurityGroup.ACCOUNT_AUXILIAR ="account_auxiliar"
static

Definition at line 126 of file SecurityGroup.java.


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