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 CurrentUserProvider
The current user providerprotected RibbonControlsManager
Ribbon controls managerprotected SynchronizableContentsCollectionDAO
SCC DAOprotected SynchronizableContentsCollectionHelper
SCC helper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSearchModelConfiguration
(String collectionId) Get theSCCSearchModelConfiguration
from 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.void
service
(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:
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 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
-