Class BusyTimeAccessControl

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

public class BusyTimeAccessControl extends AccessControl
An access controller for Flight Academy Instructor busy time entries.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • BusyTimeAccessControl

      public BusyTimeAccessControl(SecurityContext ctx, InstructionBusy ib)
      Initializes the Access Controller.
      Parameters:
      ctx - the security context
      ib - the InstructionBusy bean
  • Method Details

    • validate

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

      public boolean getCanCreate()
      Returns whether a new Instructor busy time entry can be created.
      Returns:
      TRUE if a new entry can be created, otherwise FALSE
    • getCanProxyCreate

      public boolean getCanProxyCreate()
      Returns whether a new Instructor busy time entry can be created for another Instructor.
      Returns:
      TRUE if a new entry can be created for another instructor, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether this Instructor busy time entry can be deleted.
      Returns:
      TRUE if the entry can be deleted, otherwise FALSE