Class ApplicantAccessControl

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

public final class ApplicantAccessControl extends AccessControl
An Access Controller to support Applicant profile operations.
Since:
1.0
Version:
9.0
Author:
Luke
See Also:
  • Constructor Details

    • ApplicantAccessControl

      public ApplicantAccessControl(SecurityContext ctx, Applicant a)
      Initializes the controller.
      Parameters:
      ctx - the Command context
      a - the Applicant profile
  • Method Details

    • validate

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