Class StaffAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.StaffAccessControl
All Implemented Interfaces:
Serializable

public final class StaffAccessControl extends AccessControl
An access controller for Staff Profile operations.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • StaffAccessControl

      public StaffAccessControl(SecurityContext ctx, Staff s)
      Initializes the controller.
      Parameters:
      ctx - the Command Context
      s - the Staff Profile to be operated on
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanEdit

      public boolean getCanEdit()
      Returns if the profile can be edited.
      Returns:
      TRUE if it can be edited, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if the profile can be deleted.
      Returns:
      TRUE if it can be deleted, otherwise FALSE
    • getCanCreate

      public boolean getCanCreate()
      Returns if a new profile can be created.
      Returns:
      TRUE if a profile can be created, otherwise FAL