Class DispatchRouteAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.DispatchRouteAccessControl
- All Implemented Interfaces:
Serializable
An Access controller for dispatch data.
- Since:
- 2.1
- 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 new Dispatch routes can be created.boolean
Returns whether the dispatch data can be deleted.boolean
Returns whether the Dispatch route can be disabled.boolean
Returns whether the dispatch data can be viewed.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
DispatchRouteAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Security contextrt
- the Dispatch Route
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether new Dispatch routes can be created.- Returns:
- TRUE if new routes can be created, otherwise FALSE
-
getCanView
public boolean getCanView()Returns whether the dispatch data can be viewed.- Returns:
- TRUE if it can be viewed, otherwise FALSE
-
getCanDisable
public boolean getCanDisable()Returns whether the Dispatch route can be disabled.- Returns:
- TRUE if it can be disabled, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the dispatch data can be deleted.- Returns:
- TRUE if it can be deleted, otherwise FALSE
-