Class AssignmentAccessControl

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

public class AssignmentAccessControl extends AccessControl
An Access Controller for Flight Assignments.
Since:
1.0
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • AssignmentAccessControl

      public AssignmentAccessControl(SecurityContext ctx, AssignmentInfo ai)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command context
      ai - the Assignment Info object
  • Method Details

    • validate

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

      public boolean getCanCreateAvailable()
      Returns if the user can create available Flight Assignments (assignments for other people).
      Returns:
      TRUE if the user can create avilable Assignments, otherwise FALSE
    • getCanReserve

      public boolean getCanReserve()
      Returns if the Assignment can be reserved.
      Returns:
      TRUE if the Assignment can be reserved, otherwise FALSE
    • getCanRelease

      public boolean getCanRelease()
      Returns if the Assignment can be released.
      Returns:
      TRUE if the Assignment can be released, otherwise FALSE
    • getCanDelete

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