Interface ConfidentialAwareQuestionType
- All Known Implementing Classes:
AbstractFormQuestionType
,CheckBoxQuestionType
,ChoicesListQuestionType
,ComputedQuestionType
,DateTimeQuestionType
,FileQuestionType
,MatrixQuestionType
,NumberQuestionType
,SimpleTextQuestionType
,TextAreaQuestionType
public interface ConfidentialAwareQuestionType
Provide the necessary method make a form question type aware of confidentiality.
Every implementation should make sure that the result of the different provided method are used.
The value of FormQuestion.ATTRIBUTE_CONFIDENTIALITY should also be included in the result of the getFieldToDisableIfFormPublished method
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModelItem
Provide an item that should be included in the model returned by the FormQuestion._getModelItems methoddefault ViewItem
Provide a view item to include in one of the tab return by the FormQuestion.getTabs method.static boolean
isConfidential
(FormQuestion formQuestion) Helper method to determine if a question is confidential
-
Field Details
-
ATTRIBUTE_CONFIDENTIALITY
Constant for confidentiality on field- See Also:
-
-
Method Details
-
getConfidentialityModelItem
Provide an item that should be included in the model returned by the FormQuestion._getModelItems method- Returns:
- the model item to include
-
getConfidentialityViewElement
Provide a view item to include in one of the tab return by the FormQuestion.getTabs method. It is preferred to include this item in the advanced tab.- Parameters:
model
- the model of the question type- Returns:
- the view item to include
-
isConfidential
Helper method to determine if a question is confidential- Parameters:
formQuestion
- the question- Returns:
- true if the question is confidential
-