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
FieldsModifier and TypeFieldDescriptionprotected I18nizableTextThe labelprotected StringThe name of plugin hosting this component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalOperation(Content content, Map<String, List<Object>> remoteValues, org.slf4j.Logger logger) Make some additional operations after synchronizationvoidconfigure(Configuration configuration) getLabel()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.Transforms the remote values of aSynchronizableContentsCollectionbefore 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: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
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
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 attributes.- 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
-