Class JobPostingAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.JobPostingAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Job Postings.
- Since:
- 3.4
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the current user can apply for this Job.booleanReturns whether the current user can comment on this Job Posting.booleanReturns whether the current user can complete this Job Posting.booleanReturns whether the current user can delete this Job Posting.booleanReturns whether the current user can edit this Job Posting.booleanReturns whether the current user can reset the shortlist process.booleanReturns whether the current user can select a short-listed applicant for approval.booleanReturns whether the current user can shortlist applicants for this Job.booleanReturns whether the current user can view applications for this Job.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContext
-
Constructor Details
-
JobPostingAccessControl
Initializes the Access Controller.- Parameters:
ctx- the SecurityContextjp- the JobPosting bean
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if the user cannot view the data
-
getCanApply
public boolean getCanApply()Returns whether the current user can apply for this Job.- Returns:
- TRUE if the user can apply, otherwise FALSE
-
getCanComment
public boolean getCanComment()Returns whether the current user can comment on this Job Posting.- Returns:
- TRUE if the user can create a comment, otherwise FALSE
-
getCanViewApplicants
public boolean getCanViewApplicants()Returns whether the current user can view applications for this Job.- Returns:
- TRUE if the user can view applications, otherwise FALSE
-
getCanShortlist
public boolean getCanShortlist()Returns whether the current user can shortlist applicants for this Job.- Returns:
- TRUE if the user can shortlist applicants, otherwise FALSE
-
getCanReset
public boolean getCanReset()Returns whether the current user can reset the shortlist process.- Returns:
- TRUE if the shortlist can be reset, otherwise FALSE
-
getCanSelect
public boolean getCanSelect()Returns whether the current user can select a short-listed applicant for approval.- Returns:
- TRUE if the user can select an applicant, otherwise RALSE
-
getCanEdit
public boolean getCanEdit()Returns whether the current user can edit this Job Posting.- Returns:
- TRUE if the user can edit the Job Posting, otherwise FALSE
-
getCanComplete
public boolean getCanComplete()Returns whether the current user can complete this Job Posting.- Returns:
- TRUE if the user can complete the posting, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the current user can delete this Job Posting.- Returns:
- TRUE if the user can delete the Job Posting, otherwise FALSE
-