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 org.deltava.security.command.PilotAccessControl
_p
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the pilot can be activated.boolean
Returns if a check ride can be assigned to this Pilot.boolean
Returns if the pilot's IMAP mailbox profile can be edited.boolean
Returns if the pilot's access roles can be edited.boolean
Returns if the pilot's Water Cooler signature image can be edited.boolean
Returns if the pilot's staff profile can be edited.boolean
Returns if the pilot's status can be edited.boolean
Returns if the pilot profile can be edited.boolean
Returns if the pilot can be promoted.boolean
Returns if the Pilot can be pleaced On Leave.boolean
Returns if the Pilot can be transferred to another airline.boolean
Returns if we can view the Pilot's profile.boolean
Returns if the e-mail address can be viewed.boolean
Returns if the Pilot's examination history can be viewed.boolean
Returns if we are currently accessing our own profile.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.PilotAccessControl
getCanInactivate, getCanViewPush
Methods inherited from class org.deltava.security.command.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:
getCanView
in classPilotAccessControl
- Returns:
- TRUE if not forgotten, otherwise FALSE
-
getIsOurs
public boolean getIsOurs()Returns if we are currently accessing our own profile.- Overrides:
getIsOurs
in classPilotAccessControl
- Returns:
- FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the pilot profile can be edited.- Overrides:
getCanEdit
in classPilotAccessControl
- Returns:
- FALSE
-
getCanTakeLeave
public boolean getCanTakeLeave()Returns if the Pilot can be pleaced On Leave.- Overrides:
getCanTakeLeave
in classPilotAccessControl
- Returns:
- FALSE
-
getCanViewEmail
public boolean getCanViewEmail()Returns if the e-mail address can be viewed.- Overrides:
getCanViewEmail
in 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:
getCanViewExams
in classPilotAccessControl
- Returns:
- FALSE
-
getCanChangeStatus
public boolean getCanChangeStatus()Returns if the pilot's status can be edited.- Overrides:
getCanChangeStatus
in classPilotAccessControl
- Returns:
- FALSE
-
getCanAssignRide
public boolean getCanAssignRide()Returns if a check ride can be assigned to this Pilot.- Overrides:
getCanAssignRide
in classPilotAccessControl
- Returns:
- FALSE
-
getCanPromote
public boolean getCanPromote()Returns if the pilot can be promoted.- Overrides:
getCanPromote
in classPilotAccessControl
- Returns:
- FALSE;
-
getCanChangeRoles
public boolean getCanChangeRoles()Returns if the pilot's access roles can be edited.- Overrides:
getCanChangeRoles
in classPilotAccessControl
- Returns:
- FALSE
-
getCanChangeStaffProfile
public boolean getCanChangeStaffProfile()Returns if the pilot's staff profile can be edited.- Overrides:
getCanChangeStaffProfile
in classPilotAccessControl
- Returns:
- FALSE
-
getCanChangeMailProfile
public boolean getCanChangeMailProfile()Returns if the pilot's IMAP mailbox profile can be edited.- Overrides:
getCanChangeMailProfile
in classPilotAccessControl
- Returns:
- FALSE
-
getCanChangeSignature
public boolean getCanChangeSignature()Returns if the pilot's Water Cooler signature image can be edited.- Overrides:
getCanChangeSignature
in classPilotAccessControl
- Returns:
- FALSE
-
getCanTransfer
public boolean getCanTransfer()Returns if the Pilot can be transferred to another airline.- Overrides:
getCanTransfer
in classPilotAccessControl
- Returns:
- FALSE
-
getCanActivate
public boolean getCanActivate()Returns if the pilot can be activated.- Overrides:
getCanActivate
in classPilotAccessControl
- Returns:
- FALSE
- See Also:
-