Class ResourceAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ResourceAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Web Resources.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a new Web Resource can be created.booleanReturns whether the Web Resource can be deleted.booleanReturns whether the Web Resource can be edited.voidvalidate()Calculates Access roles.Methods inherited from class AccessControl
validateContext
-
Constructor Details
-
ResourceAccessControl
Initializes the Access Controller.- Parameters:
ctx- the Security contextr- the Web Resource
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether a new Web Resource can be created.- Returns:
- TRUE if a Resource can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns whether the Web Resource can be edited.- Returns:
- TRUE if the Resource can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the Web Resource can be deleted.- Returns:
- TRUE if the Resource can be deleted, otherwise FALSE
-