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
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys resolverprotected SynchronizableContentsCollectionDAO
SCC DAO -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSearchModelConfiguration
(String collectionId) Get theSCCSearchModelConfiguration
from 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.void
service
(ServiceManager manager) boolean
synchronizeContent
(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
getSearchModelConfiguration
Get theSCCSearchModelConfiguration
from 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
-