Class SELCALAccessControl

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

public class SELCALAccessControl extends AccessControl
An Access Controller for SELCAL codes.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • SELCALAccessControl

      public SELCALAccessControl(SecurityContext ctx, SelectCall sc)
      Initializes the Access Controller.
      Parameters:
      ctx - the security context
      sc - the SELCAL bean
  • Method Details

    • validate

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

      public void markUnavailable()
      Marks all additional SELCAL codes as unavailable.
    • getCanReserve

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

      public boolean getCanRelease()
      Returns if the SELCAL code can be released.
      Returns:
      TRUE if the code can be released, otherwise FALSE