Class CrossAppPilotAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.PilotAccessControl
org.deltava.security.command.CrossAppPilotAccessControl
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class PilotAccessControl
_pFields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the pilot can be activated.booleanReturns if a check ride can be assigned to this Pilot.booleanReturns if the pilot's IMAP mailbox profile can be edited.booleanReturns if the pilot's access roles can be edited.booleanReturns if the pilot's Water Cooler signature image can be edited.booleanReturns if the pilot's staff profile can be edited.booleanReturns if the pilot's status can be edited.booleanReturns if the pilot profile can be edited.booleanReturns if the pilot can be promoted.booleanReturns if the Pilot can be pleaced On Leave.booleanReturns if the Pilot can be transferred to another airline.booleanReturns if we can view the Pilot's profile.booleanReturns if the e-mail address can be viewed.booleanReturns if the Pilot's examination history can be viewed.booleanReturns if we are currently accessing our own profile.voidvalidate()Calculates access rights.Methods inherited from class PilotAccessControl
getCanInactivate, getCanViewPushMethods inherited from class AccessControl
validateContext
-
Constructor Details
-
CrossAppPilotAccessControl
Initializes the Access controller.- Parameters:
ctx- the command contextp- the Pilot profile
-
-
Method Details
-
validate
-
getCanView
public boolean getCanView()Returns if we can view the Pilot's profile.- Overrides:
getCanViewin classPilotAccessControl- Returns:
- TRUE if not forgotten, otherwise FALSE
-
getIsOurs
public boolean getIsOurs()Returns if we are currently accessing our own profile.- Overrides:
getIsOursin classPilotAccessControl- Returns:
- FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the pilot profile can be edited.- Overrides:
getCanEditin classPilotAccessControl- Returns:
- FALSE
-
getCanTakeLeave
public boolean getCanTakeLeave()Returns if the Pilot can be pleaced On Leave.- Overrides:
getCanTakeLeavein classPilotAccessControl- Returns:
- FALSE
-
getCanViewEmail
public boolean getCanViewEmail()Returns if the e-mail address can be viewed.- Overrides:
getCanViewEmailin classPilotAccessControl- 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:
getCanViewExamsin classPilotAccessControl- Returns:
- FALSE
-
getCanChangeStatus
public boolean getCanChangeStatus()Returns if the pilot's status can be edited.- Overrides:
getCanChangeStatusin classPilotAccessControl- Returns:
- FALSE
-
getCanAssignRide
public boolean getCanAssignRide()Returns if a check ride can be assigned to this Pilot.- Overrides:
getCanAssignRidein classPilotAccessControl- Returns:
- FALSE
-
getCanPromote
public boolean getCanPromote()Returns if the pilot can be promoted.- Overrides:
getCanPromotein classPilotAccessControl- Returns:
- FALSE;
-
getCanChangeRoles
public boolean getCanChangeRoles()Returns if the pilot's access roles can be edited.- Overrides:
getCanChangeRolesin classPilotAccessControl- Returns:
- FALSE
-
getCanChangeStaffProfile
public boolean getCanChangeStaffProfile()Returns if the pilot's staff profile can be edited.- Overrides:
getCanChangeStaffProfilein classPilotAccessControl- Returns:
- FALSE
-
getCanChangeMailProfile
public boolean getCanChangeMailProfile()Returns if the pilot's IMAP mailbox profile can be edited.- Overrides:
getCanChangeMailProfilein classPilotAccessControl- Returns:
- FALSE
-
getCanChangeSignature
public boolean getCanChangeSignature()Returns if the pilot's Water Cooler signature image can be edited.- Overrides:
getCanChangeSignaturein classPilotAccessControl- Returns:
- FALSE
-
getCanTransfer
public boolean getCanTransfer()Returns if the Pilot can be transferred to another airline.- Overrides:
getCanTransferin classPilotAccessControl- Returns:
- FALSE
-
getCanActivate
public boolean getCanActivate()Returns if the pilot can be activated.- Overrides:
getCanActivatein classPilotAccessControl- Returns:
- FALSE
- See Also:
-