public class SCCSearchToolHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys resolver
|
protected SynchronizableContentsCollectionDAO |
_synchronizableContentsCollectionDAO
SCC DAO
|
Constructor and Description |
---|
SCCSearchToolHelper() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getSearchModelConfiguration(String collectionId)
Get the
SCCSearchModelConfiguration from the collectionId. |
String |
getSyncCode(String contentId,
String collectionId)
Get the value of the synchronization field.
|
Map<String,Object> |
importContent(String collectionId,
String id,
Map<String,Object> additionalParameters)
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.
|
getLogger, setLogger
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
protected AmetysObjectResolver _resolver
public SCCSearchToolHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,Object> getSearchModelConfiguration(String collectionId)
SCCSearchModelConfiguration
from the collectionId.collectionId
- Collection IDSCCSearchModelConfiguration
public Map<String,Object> importContent(String collectionId, String id, Map<String,Object> additionalParameters)
collectionId
- Collection IDid
- Synchonization ID of the contentadditionalParameters
- Additional parameterspublic boolean synchronizeContent(String collectionId, String contentId, String syncCode)
collectionId
- Collection IDcontentId
- Content IDsyncCode
- Synchronization codepublic String getSyncCode(String contentId, String collectionId)
collectionId
- Collection IDcontentId
- Content ID