Package com.thortech.xl.vo
Class AdminPermissions
java.lang.Object
com.thortech.xl.vo.AdminPermissions
- All Implemented Interfaces:
Serializable
- Author:
- Jatan Rajvanshi This class holds an admin key, the admin type and the permissions to be set for that entity
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the Admin Nameboolean
getPermission
(String action) gets get the boolean permission value for a given actionvoid
setAdminName
(String adminName) Sets Admin Namevoid
setPermission
(String action, boolean permissionValue) Sets the boolean permission value for a given action
-
Constructor Details
-
AdminPermissions
Constructor for the type. Sets the Admin Key and the Admin Type
-
-
Method Details
-
getAdminKey
public long getAdminKey()- Returns:
- Returns the adminKey.
-
getAdminType
- Returns:
- Returns the adminType.
-
getPermissions
- Returns:
- Returns the permissions.
-
getPermission
gets get the boolean permission value for a given action- Parameters:
action
- The action key- Returns:
- The boolean permission value
-
setPermission
Sets the boolean permission value for a given action- Parameters:
action
- The action keypermissionValue
- The boolean permission value
-
getAdminName
Get the Admin Name- Returns:
- The admin Name
-
setAdminName
Sets Admin Name- Parameters:
adminName
-
-