Class AircraftAccessControl

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

public class AircraftAccessControl extends AccessControl
A Security Controller for Aircraft profiles.
Since:
5.0
Version:
5.0
Author:
Luke
See Also:
  • Constructor Details

    • AircraftAccessControl

      public AircraftAccessControl(SecurityContext ctx, Aircraft a)
      Initializes the controller.
      Parameters:
      ctx - the SecurityContext
      a - the Aircraft profile
  • Method Details

    • validate

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

      public boolean getCanCreate()
      Returns whether the user can create a new Aircraft profile.
      Returns:
      TRUE if a new profile can be created, otherwise FALSE
    • getCanRead

      public boolean getCanRead()
      Returns whether the user can read this Aircraft profile.
      Returns:
      TRUE if this profile can be read, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns whether the user can edit this Aircraft profile.
      Returns:
      TRUE if this profile can be edited, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether the user can delete this Aircraft profile.
      Returns:
      TRUE if this profile can be deleted, otherwise FALSE