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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether a new Web Resource can be created.boolean
Returns whether the Web Resource can be deleted.boolean
Returns whether the Web Resource can be edited.void
validate()
Calculates Access roles.Methods inherited from class org.deltava.security.command.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
-