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 TypeMethodDescriptionlongGet the Admin NamebooleangetPermission(String action) gets get the boolean permission value for a given actionvoidsetAdminName(String adminName) Sets Admin NamevoidsetPermission(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-
-