Class QuestionnaireAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.QuestionnaireAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Applicant Questionnaires.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the Questionnaire can be read.boolean
Returns if the Questionnaire can be scored.boolean
Returns if the Questionnaire can be submitted.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
QuestionnaireAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Command Contextex
- the Questionnaire
-
-
Method Details
-
validate
-
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
-