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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionStaffAccessControl
(SecurityContext ctx, Staff s) Initializes the controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new profile can be created.boolean
Returns if the profile can be deleted.boolean
Returns if the profile can be edited.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
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
-