Class UDUserAutoFillSource
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
org.ametys.plugins.userdirectory.forms.UDUserAutoFillSource
- All Implemented Interfaces:
AutofillSource,LogEnabled,PluginAware,Configurable,Serviceable
Class for adding user directory autofill to SimpleTextQUestionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension pointMap of ModelItems specific to DefaultStaticAutoFillSourceprotected FormDAOThe form DAOprotected FormQuestionUDHelperThe form question ud helperFields inherited from class org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
_autoFillSourceExtensionPoint, _currentUserProvider, _description, _formElementDefinitionHelper, _id, _label, _pluginName, _userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAutofillValue(FormQuestion question) Get autofill valueGet the type model items If the return value is null there won't be any processing on the server sideGet the view items for the main tabbooleanisCacheable(FormQuestion question) Returntrueif the question can be cacheable with this source.voidsaxAdditionalInfos(ContentHandler contentHandler, FormQuestion question) Sax additional infosvoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
configure, getDescription, getId, getLabel, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_defaultAutoFillItems
Map of ModelItems specific to DefaultStaticAutoFillSource -
_contentTypeEP
The content type extension point -
_formQuestionUDHelper
The form question ud helper -
_formDAO
The form DAO
-
-
Constructor Details
-
UDUserAutoFillSource
public UDUserAutoFillSource()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractStaticAutoFillSource- Throws:
ServiceException
-
getAutofillValue
Description copied from interface:AutofillSourceGet autofill value- Parameters:
question- the question- Returns:
- the autofill value.
-
getModelItems
Description copied from interface:AutofillSourceGet 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:AutofillSourceGet the view items for the main tab- Returns:
- a list of view items
-
saxAdditionalInfos
public void saxAdditionalInfos(ContentHandler contentHandler, FormQuestion question) throws SAXException Description copied from interface:AutofillSourceSax additional infos- Specified by:
saxAdditionalInfosin interfaceAutofillSource- Overrides:
saxAdditionalInfosin classAbstractStaticAutoFillSource- Parameters:
contentHandler- the content handlerquestion- the question- Throws:
SAXException- if an error occurred
-
isCacheable
Description copied from interface:AutofillSourceReturntrueif the question can be cacheable with this source.- Parameters:
question- the question- Returns:
trueif the question can be cacheable.
-