Class JobPostingAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.JobPostingAccessControl
All Implemented Interfaces:
Serializable

public class JobPostingAccessControl extends AccessControl
An access controller for Job Postings.
Since:
3.4
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • JobPostingAccessControl

      public JobPostingAccessControl(SecurityContext ctx, JobPosting jp)
      Initializes the Access Controller.
      Parameters:
      ctx - the SecurityContext
      jp - the JobPosting bean
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      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