Class SCCSearchToolHelper
java.lang.Object
org.ametys.plugins.contentio.synchronize.search.SCCSearchToolHelper
- All Implemented Interfaces:
Component,Serviceable
Helper for SCC callables.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user providerprotected RibbonControlsManagerRibbon controls managerprotected SynchronizableContentsCollectionDAOSCC DAOprotected SynchronizableContentsCollectionHelperSCC helper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSearchModelConfiguration(String collectionId) Get theSCCSearchModelConfigurationfrom the collectionId.getSyncCode(String controllerId, String contentId, String collectionId) Get the value of the synchronization field.importContent(String controllerId, String collectionId, String id, Map<String, Object> additionalParameters) Import the content specified by the id in the specified collection.voidservice(ServiceManager manager)
-
Field Details
-
_synchronizableContentsCollectionDAO
SCC DAO -
_synchronizableContentsCollectionHelper
SCC helper -
_currentUserProvider
The current user provider -
_ribbonControlsManager
Ribbon controls manager
-
-
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 controllerId, String collectionId, String id, Map<String, Object> additionalParameters) Import the content specified by the id in the specified collection.- Parameters:
controllerId- The identifier of the controller that opened the toolcollectionId- Collection IDid- Synchronization ID of the contentadditionalParameters- Additional parameters- Returns:
- Imported contents
-
getSyncCode
Get the value of the synchronization field.- Parameters:
controllerId- The identifier of the controller that opened the toolcontentId- Content IDcollectionId- Collection ID- Returns:
- The value of the synchronization field
-