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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the Applicant can be approved.boolean
Returns if the user can delete the Applicant.boolean
Returns if the Applicant profile can be edited.boolean
Returns if the user can send a notification message to the Applicant.boolean
Returns if the Applicant profile can be read.boolean
Returns if the Applicant can be rejected.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
ApplicantAccessControl
Initializes the controller.- Parameters:
ctx
- the Command contexta
- the Applicant profile
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validate
in 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
-