Class ApplicantAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ApplicantAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller to support Applicant profile operations.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the Applicant can be approved.booleanReturns if the user can delete the Applicant.booleanReturns if the Applicant profile can be edited.booleanReturns if the user can send a notification message to the Applicant.booleanReturns if the Applicant profile can be read.booleanReturns if the Applicant can be rejected.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
ApplicantAccessControl
Initializes the controller.- Parameters:
ctx- the Command contexta- the Applicant profile
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if the user cannot even read the profile
-
getCanRead
public boolean getCanRead()Returns if the Applicant profile can be read.- Returns:
- TRUE if the profile can be read, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the Applicant profile can be edited.- Returns:
- TRUE if the profile can be edited, otherwise FALSE
-
getCanApprove
public boolean getCanApprove()Returns if the Applicant can be approved.- Returns:
- TRUE if the Applicant can be approved, otherwise FALSE
-
getCanReject
public boolean getCanReject()Returns if the Applicant can be rejected.- Returns:
- TRUE if the Applicant can be rejected, otherwise FALSE
-
getCanNotify
public boolean getCanNotify()Returns if the user can send a notification message to the Applicant.- Returns:
- TRUE if the Applicant can be notified, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete the Applicant.- Returns:
- TRUE if the Applicant can be deleted, otherwise FALSE
-