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 AutofillSourceExtensionPointThe autofill source extension pointprotected CurrentUserProviderThe current user providerprotected I18nizableTextDescription of computing typeprotected FormElementDefinitionHelperThe form element definition helperprotected StringId of computing typeprotected I18nizableTextLabel of computing typeprotected StringFormsprotected UserManagerThe users manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get description of autofill sourcegetId()Get id of the autofill sourcegetLabel()Get label of autofill sourcevoidsaxAdditionalInfos(ContentHandler contentHandler, FormQuestion question) Sax additional infosvoidservice(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.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 -
_formElementDefinitionHelper
The form element definition helper
-
-
Constructor Details
-
AbstractStaticAutoFillSource
public AbstractStaticAutoFillSource()
-
-
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:AutofillSourceGet id of the autofill source- Specified by:
getIdin interfaceAutofillSource- Returns:
- the id
-
getLabel
Description copied from interface:AutofillSourceGet label of autofill source- Specified by:
getLabelin interfaceAutofillSource- Returns:
- the label
-
getDescription
Description copied from interface:AutofillSourceGet description of autofill source- Specified by:
getDescriptionin interfaceAutofillSource- Returns:
- the description
-
saxAdditionalInfos
public void saxAdditionalInfos(ContentHandler contentHandler, FormQuestion question) throws SAXException Description copied from interface:AutofillSourceSax additional infos- Specified by:
saxAdditionalInfosin interfaceAutofillSource- Parameters:
contentHandler- the content handlerquestion- the question- Throws:
SAXException- if an error occurred
-