Class PegaseSynchronizingContentOperator
java.lang.Object
org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
org.ametys.plugins.odfsync.pegase.scc.PegaseSynchronizingContentOperator
- All Implemented Interfaces:
SynchronizingContentOperator,PluginAware,Configurable,Serviceable
Pegase synchronizing content operator extending
AbstractODFSynchronizingContentOperator because we keep some mapping mechanisms.-
Field Summary
Fields inherited from class org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
_contentTypeEP, _odfSCCOperatorHelperFields inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
_label, _pluginName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_transformContentAttributeValues(ContentAttributeDefinition definition, List<Object> values, org.slf4j.Logger logger) Transform the given values to content IDs, using Apogée conversion if needed.protected StringGet the SCC operator helper for the current implementation.voidservice(ServiceManager manager) transform(ContentType obsoleteCType, Map<String, List<Object>> remoteValues, org.slf4j.Logger logger) Transforms the remote values of aSynchronizableContentsCollectionbefore synchronizing attributes.protected voidtransformSpecificAbstractProgramValues(Map<String, List<Object>> remoteValues) Transform values specific to abstract programsprotected voidtransformSpecificCourseListValues(Map<String, List<Object>> remoteValues) Transform values specific to course listsprotected voidTransform values specific to the content typeprotected voidTransform values specific to the content typeprotected voidtransformStringValues(Map<String, List<Object>> remoteValues) Transform the string values to remove empty valuesMethods inherited from class org.ametys.plugins.odfsync.scc.operator.AbstractODFSynchronizingContentOperator
_getFirstValueAsString, _getReferenceTableEntryId, _transformAttributeValues, _transformRichTextAttributeValuesMethods inherited from class org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizingContentOperator
additionalOperation, configure, getLabel, setPluginInfo
-
Constructor Details
-
PegaseSynchronizingContentOperator
public PegaseSynchronizingContentOperator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractODFSynchronizingContentOperator- Throws:
ServiceException
-
getHelperRole
Description copied from class:AbstractODFSynchronizingContentOperatorGet the SCC operator helper for the current implementation.- Specified by:
getHelperRolein classAbstractODFSynchronizingContentOperator- Returns:
- a SCC operator helper role
-
transform
public Map<String,List<Object>> transform(ContentType obsoleteCType, 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- Overrides:
transformin classAbstractODFSynchronizingContentOperator- Parameters:
obsoleteCType- The content typeremoteValues- The remote values to transformlogger- The logger- Returns:
- The transformed remote values
-
transformSpecificValues
Transform values specific to the content type- Parameters:
contentTypeId- The content type IdremoteValues- The remote values
-
transformStringValues
Transform the string values to remove empty values- Parameters:
remoteValues- The remote values to transform
-
transformSpecificValuesByContentType
protected void transformSpecificValuesByContentType(String contentTypeId, Map<String, List<Object>> remoteValues) Transform values specific to the content type- Parameters:
contentTypeId- The content type IdremoteValues- The remote values
-
transformSpecificAbstractProgramValues
Transform values specific to abstract programs- Parameters:
remoteValues- The remote values
-
transformSpecificCourseListValues
Transform values specific to course lists- Parameters:
remoteValues- The remote values
-
_transformContentAttributeValues
protected List<Object> _transformContentAttributeValues(ContentAttributeDefinition definition, List<Object> values, org.slf4j.Logger logger) Description copied from class:AbstractODFSynchronizingContentOperatorTransform the given values to content IDs, using Apogée conversion if needed.- Overrides:
_transformContentAttributeValuesin classAbstractODFSynchronizingContentOperator- Parameters:
definition- The definition of the attributevalues- The values to transformlogger- The logger- Returns:
- The corresponding content IDs of the values
-