Class EntityVersionsAutoCompletePlugin
java.lang.Object
fr.becpg.repo.autocomplete.impl.plugins.EntityVersionsAutoCompletePlugin
- All Implemented Interfaces:
AutoCompletePlugin
EntityVersionsListValuePlugin class.
- Version:
- $Id: $Id
Autocomplete plugin that allows to get current entity branch or versions
Example:
Datasources available: Return all survey questions by code or questionLabel, if parentAssoc is provided filter by parent question becpg/autocomplete/branches return all entity branches becpg/autocomplete/versions return all entity versions<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl"> <control-param name="ds">becpg/autocomplete/branches</control-param> <control-param name="urlParamsToPass">itemId</control-param> </control> - Author:
- "Matthieu Laborie"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EntityVersionServiceprivate org.alfresco.service.cmr.repository.NodeServiceprivate static final Stringprivate static final Stringprivate TargetAssocAutoCompleteExtractorprivate org.alfresco.service.cmr.version.VersionService -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SOURCE_TYPE_BRANCHES
- See Also:
-
SOURCE_TYPE_VERSIONS
- See Also:
-
versionService
@Autowired private org.alfresco.service.cmr.version.VersionService versionService -
entityVersionService
-
nodeService
@Autowired @Qualifier("NodeService") private org.alfresco.service.cmr.repository.NodeService nodeService -
targetAssocValueExtractor
-
-
Constructor Details
-
EntityVersionsAutoCompletePlugin
public EntityVersionsAutoCompletePlugin()
-
-
Method Details
-
getHandleSourceTypes
getHandleSourceTypes.
- Specified by:
getHandleSourceTypesin interfaceAutoCompletePlugin- Returns:
- sourceType that the plugin handle
-
suggest
public AutoCompletePage suggest(String sourceType, String query, Integer pageNum, Integer pageSize, Map<String, Serializable> props) suggest.
-