Class PegaseSynchronizingContentOperator
java.lang.Object
org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
org.ametys.plugins.odfsync.pegase.scc.PegaseSynchronizingContentOperator
- All Implemented Interfaces:
SynchronizingContentOperator
,PluginAware
,Configurable
,Serviceable
Pegase synchronizing content operator extending
AbstractODFSynchronizingContentOperator
because we keep some mapping mechanisms.-
Field Summary
Fields inherited from class org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
_contentTypeEP, _odfSCCOperatorHelper
Fields inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
_label, _pluginName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_transformContentAttributeValues
(ContentAttributeDefinition definition, List<Object> values, Logger logger) Transform the given values to content IDs, using Apogée conversion if needed.protected String
Get the SCC operator helper for the current implementation.void
service
(ServiceManager manager) Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.Methods inherited from class org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
_getFirstValueAsString, _getReferenceTableEntryId, _transformAttributeValues, _transformRichTextAttributeValues
Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
additionalOperation, configure, getLabel, setPluginInfo
-
Constructor Details
-
PegaseSynchronizingContentOperator
public PegaseSynchronizingContentOperator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractODFSynchronizingContentOperator
- Throws:
ServiceException
-
getHelperRole
Description copied from class:AbstractODFSynchronizingContentOperator
Get the SCC operator helper for the current implementation.- Specified by:
getHelperRole
in classAbstractODFSynchronizingContentOperator
- Returns:
- a SCC operator helper role
-
transform
public Map<String,List<Object>> transform(ContentType obsoleteCType, Map<String, List<Object>> remoteValues, Logger logger) Description copied from interface:SynchronizingContentOperator
Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.- Specified by:
transform
in interfaceSynchronizingContentOperator
- Overrides:
transform
in classAbstractODFSynchronizingContentOperator
- Parameters:
obsoleteCType
- The content typeremoteValues
- The remote values to transformlogger
- The logger- Returns:
- The transformed remote values
-
_transformContentAttributeValues
protected List<Object> _transformContentAttributeValues(ContentAttributeDefinition definition, List<Object> values, Logger logger) Description copied from class:AbstractODFSynchronizingContentOperator
Transform the given values to content IDs, using Apogée conversion if needed.- Overrides:
_transformContentAttributeValues
in classAbstractODFSynchronizingContentOperator
- Parameters:
definition
- The definition of the attributevalues
- The values to transformlogger
- The logger- Returns:
- The corresponding content IDs of the values
-