BrightSide Workbench Full Report + Source Code
org.turro.security.RoleMap Class Reference

Public Member Functions

void setName (String name)
 
String getName ()
 
TreeMap< String, TreeSet< String > > getRolePermissions ()
 

Static Public Member Functions

static RoleMap loadFrom (File file)
 
static void saveTo (File file, RoleMap roleMap)
 

Detailed Description

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

Definition at line 38 of file RoleMap.java.

Member Function Documentation

◆ getName()

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

Definition at line 47 of file RoleMap.java.

47  {
48  return name;
49  }
Here is the caller graph for this function:

◆ getRolePermissions()

TreeMap<String, TreeSet<String> > org.turro.security.RoleMap.getRolePermissions ( )

Definition at line 51 of file RoleMap.java.

51  {
52  return rolePermissions;
53  }

◆ loadFrom()

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

Definition at line 61 of file RoleMap.java.

61  {
62  try(Reader reader = new FileReader(file)) {
63  return JsonConfiguration.read(reader, RoleMap.class);
64  } catch (IOException ex) {
65  Logger.getLogger(RoleMap.class.getName()).log(Level.SEVERE, null, ex);
66  return null;
67  }
68  }
Here is the call graph for this function:

◆ saveTo()

static void org.turro.security.RoleMap.saveTo ( File  file,
RoleMap  roleMap 
)
static

Definition at line 70 of file RoleMap.java.

70  {
71  try(Writer writer = new FileWriter(file)) {
72  roleMap.prepareSaving();
73  JsonConfiguration.write(writer, roleMap);
74  } catch (IOException ex) {
75  Logger.getLogger(RoleMap.class.getName()).log(Level.SEVERE, null, ex);
76  }
77  }
Here is the call graph for this function:

◆ setName()

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

Definition at line 43 of file RoleMap.java.

43  {
44  this.name = name;
45  }

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