Class BusyTimeAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.BusyTimeAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Flight Academy Instructor busy time entries.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether a new Instructor busy time entry can be created.boolean
Returns whether this Instructor busy time entry can be deleted.boolean
Returns whether a new Instructor busy time entry can be created for another Instructor.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
BusyTimeAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the security contextib
- the InstructionBusy bean
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether a new Instructor busy time entry can be created.- Returns:
- TRUE if a new entry can be created, otherwise FALSE
-
getCanProxyCreate
public boolean getCanProxyCreate()Returns whether a new Instructor busy time entry can be created for another Instructor.- Returns:
- TRUE if a new entry can be created for another instructor, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether this Instructor busy time entry can be deleted.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-