Class InstructionAccessControl

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

public class InstructionAccessControl extends AccessControl
An Access Controller for Fleet Academy Instruction sessions.
Since:
1.0
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • InstructionAccessControl

      public InstructionAccessControl(SecurityContext ctx, Instruction i)
      Initializes the Access Controller.
      Parameters:
      ctx - the security context
      i - the Instruction bean
  • Method Details

    • validate

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

      public boolean getCanCreate()
      Returns if the user can create a new Instruction Flight Report.
      Returns:
      TRUE if the user can create a new flight report, otherwise FALSE
    • getCanCancel

      public boolean getCanCancel()
      Returns if the user can cancel the Instruction Session.
      Returns:
      TRUE if the user can cancel the session, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the user can edit the Instruction Session.
      Returns:
      TRUE if the user can edit the session, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if the user can delete the Instruction Session.
      Returns:
      TRUE if the user can delete the session, otherwise FALSE