Class DefaultSynchronizingContentOperator
java.lang.Object
org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
- All Implemented Interfaces:
SynchronizingContentOperator
,PluginAware
,Configurable
- Direct Known Subclasses:
AbstractODFSynchronizingContentOperator
,UDOrgUnitTypeOperator
public class DefaultSynchronizingContentOperator
extends Object
implements SynchronizingContentOperator, Configurable, PluginAware
Default implementation of
SynchronizingContentOperator
which does nothing.-
Field Summary
Modifier and TypeFieldDescriptionprotected I18nizableText
The labelprotected String
The name of plugin hosting this component -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Make some additional operations after synchronizationvoid
configure
(Configuration configuration) getLabel()
Get the label of this componentvoid
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.
-
Field Details
-
_label
The label -
_pluginName
The name of plugin hosting this component
-
-
Constructor Details
-
DefaultSynchronizingContentOperator
public DefaultSynchronizingContentOperator()
-
-
Method Details
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getLabel
Description copied from interface:SynchronizingContentOperator
Get the label of this component- Specified by:
getLabel
in interfaceSynchronizingContentOperator
- Returns:
- the label
-
transform
public Map<String,List<Object>> transform(ContentType cType, 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
- Parameters:
cType
- The content typeremoteValues
- The remote values to transformlogger
- The logger- Returns:
- The transformed remote values
-
additionalOperation
public void additionalOperation(Content content, Map<String, List<Object>> remoteValues, Logger logger) Description copied from interface:SynchronizingContentOperator
Make some additional operations after synchronization- Specified by:
additionalOperation
in interfaceSynchronizingContentOperator
- Parameters:
content
- The content which was synchronizedremoteValues
- The transformed remote valueslogger
- The logger
-