Class QuestionnaireAccessControl

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

public class QuestionnaireAccessControl extends AccessControl
An Access Controller for Applicant Questionnaires.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • QuestionnaireAccessControl

      public QuestionnaireAccessControl(SecurityContext ctx, Examination ex)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command Context
      ex - the Questionnaire
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanRead

      public boolean getCanRead()
      Returns if the Questionnaire can be read.
      Returns:
      TRUE if the Questionnaire can be read, otherwise FALSE
    • getCanSubmit

      public boolean getCanSubmit()
      Returns if the Questionnaire can be submitted.
      Returns:
      TRUE if the Questionnaire can be submitted, otherwise FALSE
    • getCanScore

      public boolean getCanScore()
      Returns if the Questionnaire can be scored.
      Returns:
      TRUE if the Questionnaire can be scored, otherwise FALSE