Class CrossAppPilotAccessControl

All Implemented Interfaces:
Serializable

public final class CrossAppPilotAccessControl extends PilotAccessControl
An access controller for Pilot profile operations performed by users in another airline. This is designed to allow HR staffs in one airline to review the status of a Pilot before a Transfer.
Since:
1.0
Version:
8.3
Author:
Luke
See Also:
  • Constructor Details

    • CrossAppPilotAccessControl

      public CrossAppPilotAccessControl(SecurityContext ctx, Pilot p)
      Initializes the Access controller.
      Parameters:
      ctx - the command context
      p - the Pilot profile
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Overrides:
      validate in class PilotAccessControl
    • getCanView

      public boolean getCanView()
      Returns if we can view the Pilot's profile.
      Overrides:
      getCanView in class PilotAccessControl
      Returns:
      TRUE if not forgotten, otherwise FALSE
    • getIsOurs

      public boolean getIsOurs()
      Returns if we are currently accessing our own profile.
      Overrides:
      getIsOurs in class PilotAccessControl
      Returns:
      FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the pilot profile can be edited.
      Overrides:
      getCanEdit in class PilotAccessControl
      Returns:
      FALSE
    • getCanTakeLeave

      public boolean getCanTakeLeave()
      Returns if the Pilot can be pleaced On Leave.
      Overrides:
      getCanTakeLeave in class PilotAccessControl
      Returns:
      FALSE
    • getCanViewEmail

      public boolean getCanViewEmail()
      Returns if the e-mail address can be viewed.
      Overrides:
      getCanViewEmail in class PilotAccessControl
      Returns:
      TRUE if the address can be viewed, otherwise FALSE
    • getCanViewExams

      public boolean getCanViewExams()
      Returns if the Pilot's examination history can be viewed.
      Overrides:
      getCanViewExams in class PilotAccessControl
      Returns:
      FALSE
    • getCanChangeStatus

      public boolean getCanChangeStatus()
      Returns if the pilot's status can be edited.
      Overrides:
      getCanChangeStatus in class PilotAccessControl
      Returns:
      FALSE
    • getCanAssignRide

      public boolean getCanAssignRide()
      Returns if a check ride can be assigned to this Pilot.
      Overrides:
      getCanAssignRide in class PilotAccessControl
      Returns:
      FALSE
    • getCanPromote

      public boolean getCanPromote()
      Returns if the pilot can be promoted.
      Overrides:
      getCanPromote in class PilotAccessControl
      Returns:
      FALSE;
    • getCanChangeRoles

      public boolean getCanChangeRoles()
      Returns if the pilot's access roles can be edited.
      Overrides:
      getCanChangeRoles in class PilotAccessControl
      Returns:
      FALSE
    • getCanChangeStaffProfile

      public boolean getCanChangeStaffProfile()
      Returns if the pilot's staff profile can be edited.
      Overrides:
      getCanChangeStaffProfile in class PilotAccessControl
      Returns:
      FALSE
    • getCanChangeMailProfile

      public boolean getCanChangeMailProfile()
      Returns if the pilot's IMAP mailbox profile can be edited.
      Overrides:
      getCanChangeMailProfile in class PilotAccessControl
      Returns:
      FALSE
    • getCanChangeSignature

      public boolean getCanChangeSignature()
      Returns if the pilot's Water Cooler signature image can be edited.
      Overrides:
      getCanChangeSignature in class PilotAccessControl
      Returns:
      FALSE
    • getCanTransfer

      public boolean getCanTransfer()
      Returns if the Pilot can be transferred to another airline.
      Overrides:
      getCanTransfer in class PilotAccessControl
      Returns:
      FALSE
    • getCanActivate

      public boolean getCanActivate()
      Returns if the pilot can be activated.
      Overrides:
      getCanActivate in class PilotAccessControl
      Returns:
      FALSE
      See Also: