Class AbstractStaticUserDataSource
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.question.computing.user.AbstractStaticUserDataSource
- All Implemented Interfaces:
UserDataSource,LogEnabled,PluginAware,Configurable,Serviceable
- Direct Known Subclasses:
AmetysUserDataSource,UDUserDataSource
public abstract class AbstractStaticUserDataSource
extends AbstractLogEnabled
implements UserDataSource, Serviceable, Configurable, PluginAware
Static class for creating
UserDataSource from xml configuration-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected I18nizableTextDescription of computing typeprotected FormElementDefinitionHelperThe form element definition helperprotected StringId of computing typeprotected I18nizableTextLabel of computing typeprotected StringForms -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get 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 sourcevoidservice(ServiceManager manager) voidsetPluginInfo(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.forms.question.computing.user.UserDataSource
getModelItems, getStorageType, getValue, getViewElements
-
Field Details
-
_pluginName
Forms -
_id
Id of computing type -
_label
Label of computing type -
_description
Description of computing type -
_formElementDefinitionHelper
The form element definition helper
-
-
Constructor Details
-
AbstractStaticUserDataSource
public AbstractStaticUserDataSource()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getId
Description copied from interface:UserDataSourceGet id of the user data source- Specified by:
getIdin interfaceUserDataSource- Returns:
- the id
-
getLabel
Description copied from interface:UserDataSourceGet label of the user data source- Specified by:
getLabelin interfaceUserDataSource- Returns:
- the label
-
getDescription
Description copied from interface:UserDataSourceGet description of the user data source- Specified by:
getDescriptionin interfaceUserDataSource- Returns:
- the description
-
getFieldToDisableIfFormPublished
Description copied from interface:UserDataSourceGet field to disable if form is published- Specified by:
getFieldToDisableIfFormPublishedin interfaceUserDataSource- Parameters:
question- the question- Returns:
- the list of field name
-