www.element4solution.com

e4s.application
Class E4PermissionRegistry

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.application.E4PermissionRegistry

public final class E4PermissionRegistry
extends E4Object


Field Summary
static int PERMISSION_DELEGATED
          Value for group or company permission delegated status to the next level.
static int PERMISSION_DENIED
          Value for group or company permission for denied status.
static int PERMISSION_GRANTED
          Value for group or company permission for granted status.
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4PermissionRegistry()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static void addPermission(E4Permission perm)
           
static void addPermission(E4Permission perm, E4Label_Intf label)
           
static void addPermission(E4Permission perm, java.lang.String label)
           
static E4Permission[] collectPermissions()
          Merges E4S system permissions (E4Permission.CONSTANTS() together with the application permissions (getPermissions()).
static E4Permission[] collectPermissions(boolean sort)
          Merges E4S system permissions (E4Permission.CONSTANTS() together with the application permissions (getPermissions()).
static E4Label_Intf getLabel(E4Permission perm)
           
static E4Permission[] getPermissions()
           
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERMISSION_GRANTED

public static final int PERMISSION_GRANTED
Value for group or company permission for granted status.

See Also:
T_E4S_PERMISSION_GROUP_Sel.get_GRANTED(), T_E4S_PERMISSION_COMPANY_Sel.get_GRANTED(), PERMISSION_DENIED, PERMISSION_DELEGATED, Constant Field Values

PERMISSION_DELEGATED

public static final int PERMISSION_DELEGATED
Value for group or company permission delegated status to the next level.

See Also:
T_E4S_PERMISSION_GROUP_Sel.get_GRANTED(), T_E4S_PERMISSION_COMPANY_Sel.get_GRANTED(), PERMISSION_DENIED, PERMISSION_GRANTED, Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
Value for group or company permission for denied status.

See Also:
T_E4S_PERMISSION_GROUP_Sel.get_GRANTED(), T_E4S_PERMISSION_COMPANY_Sel.get_GRANTED(), PERMISSION_GRANTED, PERMISSION_DELEGATED, Constant Field Values
Constructor Detail

E4PermissionRegistry

public E4PermissionRegistry()
Method Detail

addPermission

public static void addPermission(E4Permission perm,
                                 E4Label_Intf label)

addPermission

public static void addPermission(E4Permission perm,
                                 java.lang.String label)

addPermission

public static void addPermission(E4Permission perm)

getLabel

public static E4Label_Intf getLabel(E4Permission perm)

getPermissions

public static E4Permission[] getPermissions()

collectPermissions

public static E4Permission[] collectPermissions()
Merges E4S system permissions (E4Permission.CONSTANTS() together with the application permissions (getPermissions()).

Returns:
the compete array (E4S + Application), no specified sort order
See Also:
E4Permission.CONSTANTS(), getPermissions()

collectPermissions

public static E4Permission[] collectPermissions(boolean sort)
Merges E4S system permissions (E4Permission.CONSTANTS() together with the application permissions (getPermissions()).

Parameters:
sort - perform a sort on result array
Returns:
the compete array (E4S + Application), no specified sort order
See Also:
E4Permission.CONSTANTS(), getPermissions()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com