Class InstructionAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.InstructionAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Fleet Academy Instruction sessions.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the user can cancel the Instruction Session.booleanReturns if the user can create a new Instruction Flight Report.booleanReturns if the user can delete the Instruction Session.booleanReturns if the user can edit the Instruction Session.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
InstructionAccessControl
Initializes the Access Controller.- Parameters:
ctx- the security contexti- the Instruction bean
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if the user can create a new Instruction Flight Report.- Returns:
- TRUE if the user can create a new flight report, otherwise FALSE
-
getCanCancel
public boolean getCanCancel()Returns if the user can cancel the Instruction Session.- Returns:
- TRUE if the user can cancel the session, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit the Instruction Session.- Returns:
- TRUE if the user can edit the session, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete the Instruction Session.- Returns:
- TRUE if the user can delete the session, otherwise FALSE
-