Class DispatchScheduleAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.DispatchScheduleAccessControl
- All Implemented Interfaces:
Serializable
An access controller for ACARS Dispatcher service entries.
- Since:
- 2.2
- 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 TypeMethodDescriptionbooleanReturns whether a new schedule entry can be created.booleanReturns whether the current schedule entry can be deleted.booleanReturns whether the current schedule entry can be edited.voidvalidate()Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
DispatchScheduleAccessControl
Initializes the access controller.- Parameters:
ctx- the security contextdse- the DispatchScheduleEntry bean, or null
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether a new schedule entry can be created.- Returns:
- TRUE if a schedule entry can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns whether the current schedule entry can be edited.- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the current schedule entry can be deleted.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-