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 AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the Questionnaire can be read.booleanReturns if the Questionnaire can be scored.booleanReturns if the Questionnaire can be submitted.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
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
-