Class ChartAccessControl

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

public class ChartAccessControl extends AccessControl
An Access Controller for Approach Charts.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • ChartAccessControl

      public ChartAccessControl(SecurityContext ctx)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command context
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      Throws:
      AccessControlException - if the user is unauthenticated
    • getCanCreate

      public boolean getCanCreate()
      Returns if a new Approach Chart can be created.
      Returns:
      TRUE if a new Chart can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if an Approach Chart can be edited.
      Returns:
      TRUE if the Chart can be edited, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if an Approach Chart can be deleted.
      Returns:
      TRUE if the Chart can be deleted, otherwise FALSE