Class StaffAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.StaffAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Staff Profile operations.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionStaffAccessControl(SecurityContext ctx, Staff s) Initializes the controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if a new profile can be created.booleanReturns if the profile can be deleted.booleanReturns if the profile can be edited.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
StaffAccessControl
Initializes the controller.- Parameters:
ctx- the Command Contexts- the Staff Profile to be operated on
-
-
Method Details
-
validate
-
getCanEdit
public boolean getCanEdit()Returns if the profile can be edited.- Returns:
- TRUE if it can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the profile can be deleted.- Returns:
- TRUE if it can be deleted, otherwise FALSE
-
getCanCreate
public boolean getCanCreate()Returns if a new profile can be created.- Returns:
- TRUE if a profile can be created, otherwise FAL
-