DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.access
Class Roles

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.access.Roles

public class Roles
extends Object

Assigns an integer "value" to a role to support "inheritance" of role-based permissions


Nested Class Summary
static class Roles.Role
           
 
Field Summary
static Roles.Role ADMIN_ROLE
           
static Roles.Role CATALOGER_ROLE
           
static Roles.Role MANAGER_ROLE
           
static Roles.Role NO_ROLE
           
static EnumSet roles
           
 
Constructor Summary
Roles()
           
 
Method Summary
static Roles getInstance()
           
static EnumSet getSatisfyingRoles(Roles.Role maxRole)
           
static void main(String[] args)
           
static Roles.Role toRole(String str)
           
static String toString(Roles.Role r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ROLE

public static final Roles.Role NO_ROLE

CATALOGER_ROLE

public static final Roles.Role CATALOGER_ROLE

MANAGER_ROLE

public static final Roles.Role MANAGER_ROLE

ADMIN_ROLE

public static final Roles.Role ADMIN_ROLE

roles

public static EnumSet roles
Constructor Detail

Roles

public Roles()
Method Detail

toRole

public static Roles.Role toRole(String str)

toString

public static String toString(Roles.Role r)

getInstance

public static Roles getInstance()

main

public static void main(String[] args)

getSatisfyingRoles

public static EnumSet getSatisfyingRoles(Roles.Role maxRole)

DLESE Tools
v1.6.0