Interface UserDataSource
- All Known Implementing Classes:
AbstractStaticUserDataSource,AmetysUserDataSource,UDUserDataSource
public interface UserDataSource
Interface for creating a user data source for
UserDataComputingType-
Method Summary
Modifier and TypeMethodDescriptionGet description of the user data sourcegetFieldToDisableIfFormPublished(FormQuestion question) Get field to disable if form is publishedgetId()Get id of the user data sourcegetLabel()Get label of the user data sourceGet the type model items If the return value is null there won't be any processing on the server sidegetStorageType(FormQuestion question) Get the storage type of the user data source valuegetValue(FormQuestion question, UserIdentity currentUser) Get the user data source valueGet the view items for the main tab
-
Method Details
-
getId
Get id of the user data source- Returns:
- the id
-
getLabel
Get label of the user data source- Returns:
- the label
-
getDescription
Get description of the user data source- Returns:
- the description
-
getValue
Get the user data source value- Parameters:
question- the questioncurrentUser- the current user- Returns:
- the user data source value.
-
getStorageType
Get the storage type of the user data source value- Parameters:
question- the question- Returns:
- the storage type for the question
-
getFieldToDisableIfFormPublished
Get field to disable if form is published- Parameters:
question- the question- Returns:
- the list of field name
-
getModelItems
Get the type model items If the return value is null there won't be any processing on the server side- Returns:
- a list of the model items
-
getViewElements
Get the view items for the main tab- Returns:
- a list of view items
-