public class DefaultSynchronizingContentOperator extends Object implements SynchronizingContentOperator, Configurable, PluginAware
SynchronizingContentOperator
which does nothing.Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_label
The label
|
protected String |
_pluginName
The name of plugin hosting this component
|
Constructor and Description |
---|
DefaultSynchronizingContentOperator() |
Modifier and Type | Method and Description |
---|---|
void |
additionalOperation(Content content,
Map<String,List<Object>> remoteValues,
Logger logger)
Make some additionnal operations after synchronization
|
void |
configure(Configuration configuration) |
I18nizableText |
getLabel()
Get the label of this component
|
void |
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(Map<String,List<Object>> remoteValues,
Logger logger)
Transforms the remote values of a
SynchronizableContentsCollection before synchronizing metadata. |
protected I18nizableText _label
protected String _pluginName
public DefaultSynchronizingContentOperator()
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public I18nizableText getLabel()
SynchronizingContentOperator
getLabel
in interface SynchronizingContentOperator
public Map<String,List<Object>> transform(Map<String,List<Object>> remoteValues, Logger logger)
SynchronizingContentOperator
SynchronizableContentsCollection
before synchronizing metadata.transform
in interface SynchronizingContentOperator
remoteValues
- The remote values to transformlogger
- The loggerpublic void additionalOperation(Content content, Map<String,List<Object>> remoteValues, Logger logger)
SynchronizingContentOperator
additionalOperation
in interface SynchronizingContentOperator
content
- The content which was synchronizedremoteValues
- The transformed remote valueslogger
- The logger