Class AbstractStaticAutoFillSource
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
- All Implemented Interfaces:
AutofillSource
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
CurrentUserAutoFillSource
,CustomValueAutoFillSource
,UDUserAutoFillSource
public abstract class AbstractStaticAutoFillSource
extends AbstractLogEnabled
implements AutofillSource, Serviceable, Configurable, PluginAware
Static class for creating
AutofillSource
from xml configuration-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AutofillSourceExtensionPoint
The autofill source extension pointprotected CurrentUserProvider
The current user providerprotected I18nizableText
Description of computing typeprotected String
Id of computing typeprotected I18nizableText
Label of computing typeprotected String
Formsprotected UserManager
The users manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Get description of autofill sourcegetId()
Get id of the autofill sourcegetLabel()
Get label of autofill sourcevoid
saxAdditionalInfos
(ContentHandler contentHandler, FormQuestion question) Sax additional infosvoid
service
(ServiceManager manager) void
setPluginInfo
(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, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.forms.question.autofill.AutofillSource
getAutofillValue, getModelItems, getViewElements, isCacheable
-
Field Details
-
_pluginName
Forms -
_id
Id of computing type -
_label
Label of computing type -
_description
Description of computing type -
_autoFillSourceExtensionPoint
The autofill source extension point -
_currentUserProvider
The current user provider -
_userManager
The users manager
-
-
Constructor Details
-
AbstractStaticAutoFillSource
public AbstractStaticAutoFillSource()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in 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:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getId
Description copied from interface:AutofillSource
Get id of the autofill source- Specified by:
getId
in interfaceAutofillSource
- Returns:
- the id
-
getLabel
Description copied from interface:AutofillSource
Get label of autofill source- Specified by:
getLabel
in interfaceAutofillSource
- Returns:
- the label
-
getDescription
Description copied from interface:AutofillSource
Get description of autofill source- Specified by:
getDescription
in interfaceAutofillSource
- Returns:
- the description
-
saxAdditionalInfos
public void saxAdditionalInfos(ContentHandler contentHandler, FormQuestion question) throws SAXException Description copied from interface:AutofillSource
Sax additional infos- Specified by:
saxAdditionalInfos
in interfaceAutofillSource
- Parameters:
contentHandler
- the content handlerquestion
- the question- Throws:
SAXException
- if an error occurred
-