Class UDUserDataSource
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.question.computing.user.AbstractStaticUserDataSource
org.ametys.plugins.userdirectory.forms.UDUserDataSource
- All Implemented Interfaces:
UserDataSource,LogEnabled,PluginAware,Configurable,Serviceable
User directory data source
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension pointprotected FormQuestionUDHelperThe form question ud helperMap of ModelItems specific toUDUserDataSourceFields inherited from class org.ametys.plugins.forms.question.computing.user.AbstractStaticUserDataSource
_description, _formElementDefinitionHelper, _id, _label, _pluginName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldToDisableIfFormPublished(FormQuestion question) Get field to disable if form is publishedGet 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 tabvoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.forms.question.computing.user.AbstractStaticUserDataSource
configure, getDescription, getId, getLabel, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_formQuestionUDHelper
The form question ud helper -
_contentTypeEP
The content type extension point -
_udUserDataSourceModelItems
Map of ModelItems specific toUDUserDataSource
-
-
Constructor Details
-
UDUserDataSource
public UDUserDataSource()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractStaticUserDataSource- Throws:
ServiceException
-
getValue
Description copied from interface:UserDataSourceGet the user data source value- Parameters:
question- the questioncurrentUser- the current user- Returns:
- the user data source value.
-
getStorageType
Description copied from interface:UserDataSourceGet the storage type of the user data source value- Parameters:
question- the question- Returns:
- the storage type for the question
-
getModelItems
Description copied from interface:UserDataSourceGet 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
Description copied from interface:UserDataSourceGet the view items for the main tab- Returns:
- a list of view items
-
getFieldToDisableIfFormPublished
Description copied from interface:UserDataSourceGet field to disable if form is published- Specified by:
getFieldToDisableIfFormPublishedin interfaceUserDataSource- Overrides:
getFieldToDisableIfFormPublishedin classAbstractStaticUserDataSource- Parameters:
question- the question- Returns:
- the list of field name
-