Class SCCSearchToolHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentio.synchronize.search.SCCSearchToolHelper
- All Implemented Interfaces:
 LogEnabled,Component,Serviceable
Helper for SCC callables.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys resolverprotected SynchronizableContentsCollectionDAOSCC DAO - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetSearchModelConfiguration(String collectionId) Get theSCCSearchModelConfigurationfrom the collectionId.getSyncCode(String contentId, String collectionId) Get the value of the synchronization field.Import the content specified by the id in the specified collection.voidservice(ServiceManager manager) booleansynchronizeContent(String collectionId, String contentId, String syncCode) Synchronize the content on the given collection with the given synchronization code.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
_synchronizableContentsCollectionDAO
SCC DAO - 
_resolver
The Ametys resolver 
 - 
 - 
Constructor Details
- 
SCCSearchToolHelper
public SCCSearchToolHelper() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
getSearchModelConfiguration
Get theSCCSearchModelConfigurationfrom the collectionId.- Parameters:
 collectionId- Collection ID- Returns:
 - The 
SCCSearchModelConfiguration 
 - 
importContent
public Map<String,Object> importContent(String collectionId, String id, Map<String, Object> additionalParameters) Import the content specified by the id in the specified collection.- Parameters:
 collectionId- Collection IDid- Synchonization ID of the contentadditionalParameters- Additional parameters- Returns:
 - Imported contents
 
 - 
synchronizeContent
Synchronize the content on the given collection with the given synchronization code.- Parameters:
 collectionId- Collection IDcontentId- Content IDsyncCode- Synchronization code- Returns:
 - true if an error occured
 
 - 
getSyncCode
Get the value of the synchronization field.- Parameters:
 collectionId- Collection IDcontentId- Content ID- Returns:
 - The value of the synchronization field
 
 
 -