egovframework.rfc3.iam.acl
Class ExtBasePermission

java.lang.Object
  extended by org.springframework.security.acls.domain.AbstractPermission
      extended by org.springframework.security.acls.domain.BasePermission
          extended by egovframework.rfc3.iam.acl.ExtBasePermission
All Implemented Interfaces:
java.io.Serializable, org.springframework.security.acls.model.Permission

public class ExtBasePermission
extends org.springframework.security.acls.domain.BasePermission

An object that extends BasePermission in Spring Security and contains definition of additional permission. To refer permission information easily, this class contains permission name and code of authority mask(Integer).

Author:
Byunghun Woo
See Also:
Serialized Form

Field Summary
static org.springframework.security.acls.model.Permission DOWNLOAD
           
static org.springframework.security.acls.model.Permission FNC0
           
static org.springframework.security.acls.model.Permission FNC1
           
static org.springframework.security.acls.model.Permission FNC2
           
static org.springframework.security.acls.model.Permission FNC3
           
static org.springframework.security.acls.model.Permission FNC4
           
static org.springframework.security.acls.model.Permission FNC5
           
static org.springframework.security.acls.model.Permission FNC6
           
static org.springframework.security.acls.model.Permission FNC7
           
static org.springframework.security.acls.model.Permission FNC8
           
static org.springframework.security.acls.model.Permission FNC9
           
static org.springframework.security.acls.model.Permission HELP
           
static org.springframework.security.acls.model.Permission LIST
           
static org.springframework.security.acls.model.Permission MEMO
           
static org.springframework.security.acls.model.Permission MODIFY
           
static org.springframework.security.acls.model.Permission REPLY
           
static org.springframework.security.acls.model.Permission UPLOAD
           
 
Fields inherited from class org.springframework.security.acls.domain.BasePermission
ADMINISTRATION, CREATE, DELETE, READ, WRITE
 
Fields inherited from interface org.springframework.security.acls.model.Permission
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF
 
Method Summary
static org.springframework.security.acls.model.Permission buildFromMask(int mask)
           
static org.springframework.security.acls.model.Permission buildFromName(java.lang.String name)
           
static int getPermissionMask(java.lang.String permissionNames)
          Get value of mask from permission name that split with comma
static int getPermissionMask(java.lang.String[] permissionNames)
          Get value of mask from array of permission name
static int getPermissionMask(java.lang.String permissionNames, java.lang.String separator)
          Get value of mask from permission name that split with given separator
static java.lang.String getPermissionNames(org.springframework.security.acls.model.Permission permission)
          Get permission name that contains a code from pattern of permission and return String that split with comma
static java.lang.String getPermissionNames(org.springframework.security.acls.model.Permission permission, java.lang.String separator)
          Get permission name that contains a code from pattern of permission and return String that split with given separator
static java.lang.String[] getPermissionNamesArray(org.springframework.security.acls.model.Permission permission)
          Get permission name that contains a code from pattern of permission and return array of String
static java.util.List getPermissionNamesList(org.springframework.security.acls.model.Permission permission)
          Get permission name that contains a code from pattern of permission and return list.
static java.util.Map getRegisteredPermissionNames()
          Return registerdPermissionNames that contains permission name and code of mask(Integer)
 
Methods inherited from class org.springframework.security.acls.domain.AbstractPermission
equals, getMask, getPattern, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LIST

public static final org.springframework.security.acls.model.Permission LIST

MODIFY

public static final org.springframework.security.acls.model.Permission MODIFY

REPLY

public static final org.springframework.security.acls.model.Permission REPLY

MEMO

public static final org.springframework.security.acls.model.Permission MEMO

DOWNLOAD

public static final org.springframework.security.acls.model.Permission DOWNLOAD

UPLOAD

public static final org.springframework.security.acls.model.Permission UPLOAD

HELP

public static final org.springframework.security.acls.model.Permission HELP

FNC0

public static final org.springframework.security.acls.model.Permission FNC0

FNC1

public static final org.springframework.security.acls.model.Permission FNC1

FNC2

public static final org.springframework.security.acls.model.Permission FNC2

FNC3

public static final org.springframework.security.acls.model.Permission FNC3

FNC4

public static final org.springframework.security.acls.model.Permission FNC4

FNC5

public static final org.springframework.security.acls.model.Permission FNC5

FNC6

public static final org.springframework.security.acls.model.Permission FNC6

FNC7

public static final org.springframework.security.acls.model.Permission FNC7

FNC8

public static final org.springframework.security.acls.model.Permission FNC8

FNC9

public static final org.springframework.security.acls.model.Permission FNC9
Method Detail

getRegisteredPermissionNames

public static java.util.Map getRegisteredPermissionNames()
Return registerdPermissionNames that contains permission name and code of mask(Integer)

Returns:
Map

getPermissionNamesList

public static java.util.List getPermissionNamesList(org.springframework.security.acls.model.Permission permission)
Get permission name that contains a code from pattern of permission and return list.

Parameters:
permission - Permission object
Returns:
List list of permissionName

getPermissionNamesArray

public static java.lang.String[] getPermissionNamesArray(org.springframework.security.acls.model.Permission permission)
Get permission name that contains a code from pattern of permission and return array of String

Parameters:
permission - Permission object
Returns:
String[] array of permissionName

getPermissionNames

public static java.lang.String getPermissionNames(org.springframework.security.acls.model.Permission permission)
Get permission name that contains a code from pattern of permission and return String that split with comma

Parameters:
permission - Permission class
Returns:
String permissionNames that split with comma

getPermissionNames

public static java.lang.String getPermissionNames(org.springframework.security.acls.model.Permission permission,
                                                  java.lang.String separator)
Get permission name that contains a code from pattern of permission and return String that split with given separator

Parameters:
permission - Permission class
String - separator
Returns:
String permissionNames that split with comma

getPermissionMask

public static int getPermissionMask(java.lang.String permissionNames)
Get value of mask from permission name that split with comma

Parameters:
permissionNames - permission names that split with comma. ex) "READ,WRITE"
Returns:
value of mask(int) value of mask(int) that is sum of permission names

getPermissionMask

public static int getPermissionMask(java.lang.String permissionNames,
                                    java.lang.String separator)
Get value of mask from permission name that split with given separator

Parameters:
permissionNames - permission names that split with given separator. ex) "READ,WRITE,PRINT"
String - separator
Returns:
value of mask(int) value of mask(int) that is sum of permission names

getPermissionMask

public static int getPermissionMask(java.lang.String[] permissionNames)
Get value of mask from array of permission name

Parameters:
permissionNames - String array of permission names
Returns:
value of mask(int) value of mask(int) that is sum of permission names

buildFromName

public static final org.springframework.security.acls.model.Permission buildFromName(java.lang.String name)

buildFromMask

public static final org.springframework.security.acls.model.Permission buildFromMask(int mask)