Class AccomplishmentAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.AccomplishmentAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Accomplishment profiles.
- Since:
- 3.2
- Version:
- 3.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the user can create a new Accomplishment profile.boolean
Returns whether the user can delete thtis Accomplishment profile.boolean
Returns whether the user can edit thtis Accomplishment profile.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
AccomplishmentAccessControl
Initializes the Controller.- Parameters:
ctx
- the Security Contexta
- the Accomplishment
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether the user can create a new Accomplishment profile.- Returns:
- TRUE if a new profile can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns whether the user can edit thtis Accomplishment profile.- Returns:
- TRUE if the profile can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the user can delete thtis Accomplishment profile.- Returns:
- TRUE if the profile can be deleted, otherwise FALSE
-