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 ContentTypeExtensionPoint
The content type extension pointMap of ModelItems specific to DefaultStaticAutoFillSourceprotected FormDAO
The form DAOprotected FormQuestionUDHelper
The form question ud helperFields inherited from class org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
_autoFillSourceExtensionPoint, _currentUserProvider, _description, _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 tabboolean
isCacheable
(FormQuestion question) Returntrue
if the question can be cacheable with this source.void
saxAdditionalInfos
(ContentHandler contentHandler, FormQuestion question) Sax additional infosvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.forms.question.autofill.AbstractStaticAutoFillSource
configure, getDescription, getId, getLabel, setPluginInfo
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classAbstractStaticAutoFillSource
- Throws:
ServiceException
-
getAutofillValue
Description copied from interface:AutofillSource
Get autofill value- Parameters:
question
- the question- Returns:
- the autofill value.
-
getModelItems
Description copied from interface:AutofillSource
Get 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:AutofillSource
Get 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:AutofillSource
Sax additional infos- Specified by:
saxAdditionalInfos
in interfaceAutofillSource
- Overrides:
saxAdditionalInfos
in classAbstractStaticAutoFillSource
- Parameters:
contentHandler
- the content handlerquestion
- the question- Throws:
SAXException
- if an error occurred
-
isCacheable
Description copied from interface:AutofillSource
Returntrue
if the question can be cacheable with this source.- Parameters:
question
- the question- Returns:
true
if the question can be cacheable.
-