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 ofSynchronizingContentOperator
which does nothing.
-
-
Field Summary
Fields Modifier and Type Field Description protected I18nizableText
_label
The labelprotected String
_pluginName
The name of plugin hosting this component
-
Constructor Summary
Constructors Constructor Description DefaultSynchronizingContentOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
additionalOperation(Content content, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Make some additional operations after synchronizationvoid
configure(Configuration configuration)
I18nizableText
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.Map<String,List<Object>>
transform(ContentType cType, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Transforms the remote values of aSynchronizableContentsCollection
before synchronizing attributes.
-
-
-
Field Detail
-
_label
protected I18nizableText _label
The label
-
_pluginName
protected String _pluginName
The name of plugin hosting this component
-
-
Constructor Detail
-
DefaultSynchronizingContentOperator
public DefaultSynchronizingContentOperator()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getLabel
public I18nizableText 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, org.slf4j.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, org.slf4j.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
-
-