Class AdminPermissions

java.lang.Object
com.thortech.xl.vo.AdminPermissions
All Implemented Interfaces:
Serializable

public class AdminPermissions extends Object implements 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 Details

    • AdminPermissions

      public AdminPermissions(long adminKey, String adminType)
      Constructor for the type. Sets the Admin Key and the Admin Type
  • Method Details

    • getAdminKey

      public long getAdminKey()
      Returns:
      Returns the adminKey.
    • getAdminType

      public String getAdminType()
      Returns:
      Returns the adminType.
    • getPermissions

      public Map getPermissions()
      Returns:
      Returns the permissions.
    • getPermission

      public boolean getPermission(String action)
      gets get the boolean permission value for a given action
      Parameters:
      action - The action key
      Returns:
      The boolean permission value
    • setPermission

      public void setPermission(String action, boolean permissionValue)
      Sets the boolean permission value for a given action
      Parameters:
      action - The action key
      permissionValue - The boolean permission value
    • getAdminName

      public String getAdminName()
      Get the Admin Name
      Returns:
      The admin Name
    • setAdminName

      public void setAdminName(String adminName)
      Sets Admin Name
      Parameters:
      adminName -