Class DefaultSynchronizingContentOperator
- java.lang.Object
-
- org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
-
- All Implemented Interfaces:
SynchronizingContentOperator,PluginAware,Configurable
- Direct Known Subclasses:
ApogeeSynchronizingContentOperator,UDOrgUnitTypeOperator
public class DefaultSynchronizingContentOperator extends Object implements SynchronizingContentOperator, Configurable, PluginAware
Default implementation ofSynchronizingContentOperatorwhich does nothing.
-
-
Field Summary
Fields Modifier and Type Field Description protected I18nizableText_labelThe labelprotected String_pluginNameThe 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 voidadditionalOperation(Content content, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)Make some additional operations after synchronizationvoidconfigure(Configuration configuration)I18nizableTextgetLabel()Get the label of this componentvoidsetPluginInfo(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 aSynchronizableContentsCollectionbefore synchronizing metadata.
-
-
-
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:PluginAwareSets 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:
setPluginInfoin 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getLabel
public I18nizableText getLabel()
Description copied from interface:SynchronizingContentOperatorGet the label of this component- Specified by:
getLabelin 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:SynchronizingContentOperatorTransforms the remote values of aSynchronizableContentsCollectionbefore synchronizing metadata.- Specified by:
transformin 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:SynchronizingContentOperatorMake some additional operations after synchronization- Specified by:
additionalOperationin interfaceSynchronizingContentOperator- Parameters:
content- The content which was synchronizedremoteValues- The transformed remote valueslogger- The logger
-
-