Derivatives of FunctionalService
Derivatives of FunctionalService interface facilitates creation of functional implementation of standard services. Functional service is just an object with a public method which takes a certain input and generates the desired output.
Simple search (simple-search)
The following are the specialized interfaces and classes available for simple-search service:
com.hcl.unica.cms.integration.service.search.SearchServiceThe
com.example.service.functional.SimpleSearchServiceclass in theasset-integration-starterproject is a quick starter implementation for the Functionalsimple-search service. Its parent is thecom.hcl.unica.cms.integration.service.search.SearchServiceclass.The
SearchServiceclass implements theFunctionalServiceinterface and defines theSearchRequestclass and theContentPageclass to be the type arguments RQ & RS respectively for the FunctionalService. Thus, the object of theSearchRequestbecomes an input to all thesimple-searchservices and theContentPageis expected as an output on completion of the service.The plugin must extend its
simple-searchimplementation from theSearchServiceservice in order to be recognized as asimple-searchservice by the Asset Picker (RESTful counterpart is also a valid choice to extend from).The
SearchServiceextends from thecom.hcl.unica.cms.integration.service.search .AbstractSearchService abstractclass. It introduces one more abstract method, namedgetSupportedContentTypesto implement thesimple-searchservice.
Asset selection callback (asset-selection-callback)
The following are the specialized interfaces and classes available for the
asset-selection-callback service:
com.hcl.unica.cms.integration.service.assetselectioncallback. AssetSelectionCallbackServiceThecom.example.service.functional.ContentSelectionCallbackServiceclass in theasset-integration-starterproject is a quick starter implementation for Functionalasset-selection-callbackservice. Its parent is the following class:com.hcl.unica.cms.integration.service.assetselectioncallback .AssetSelectionCallbackServiceThe
AssetSelectionCallbackServiceclass implements theFunctionalServiceinterface and defines theAssetSelectionDetailsclass and theObjectclasses to be the type arguments RQ & RS respectively for theFunctionalService. Thus, the object of theAssetSelectionDetailsbecomes an input to all theasset-selection-callbackservices and theObjector its subtype is expected as an output on completion of the service (the same input & output types are used for RESTful counterpart of asset-selection-callback).AssetSelectionDetailsclass is part of the Asset Picker SDK.Plugin must extend its
asset-selection-callbackimplementation from theAssetSelectionCallbackServiceservice in order to be recognized as anasset-selection-callbackservice by the Asset Picker (RESTful counterpart is also a valid choice to extend from).TheAssetSelectionCallbackServiceextends from the following abstract class:com.hcl.unica.cms.integration.service.assetselectioncallback .AbstractAssetSelectionCallbackService
Resource loader (resource-loader)
The following are the specialized interfaces and classes available for the resource-loader service:
com.hcl.unica.cms.integration.service.resourceloader.WebResourceLoaderServiceThe
com.example.service.functional.ResourceLoaderServiceclass in asset-integration-starter project is a quick starter implementation for Functionalresource-loaderservice. Its parent is thecom.hcl.unica.cms.integration.service.resourceloader. WebResourceLoaderServiceclass.The
WebResourceLoaderServiceclass implements theFunctionalServiceinterface and defines theResourceRequestand theWebResourceclasses to be the type arguments RQ & RS respectively for theFunctionalService. Thus, the object of theResourceRequestbecomes an input to all theresource-loaderservices and theWebResourceis expected as an output on completion of the service (the same input and output types are used for RESTful counterpart of theresource-loader).The plugin must extend its
resource-loaderimplementation from theWebResourceLoaderServiceservice to be recognized as aresource-loaderservice by the Asset Picker (RESTful counterpart is also a valid choice to extend from).TheWebResourceLoaderServiceextends from the following abstract class:com.hcl.unica.cms.integration.service.resourceloader .AbstractWebResourceLoaderService