Package org.ametys.plugins.odfsync.scc
Class SCCCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.scc.SCCCopyUpdater
- All Implemented Interfaces:
CopyCatalogUpdater
,CopyODFUpdater
,ProgramTranslationUpdater
,LogEnabled
,Serviceable
public class SCCCopyUpdater
extends AbstractLogEnabled
implements CopyCatalogUpdater, ProgramTranslationUpdater, Serviceable
The catalog copy updater to add the internal scc id if exists
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys object resolverprotected SynchronizableContentsCollectionHelper
The SCC helper -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
service
(ServiceManager manager) void
updateContents
(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Update contents after the full copy of an ODF content.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.odf.catalog.CopyCatalogUpdater
copyAdditionalContents, getAdditionalContents
-
Field Details
-
_resolver
The ametys object resolver -
_sccHelper
The SCC helper
-
-
Constructor Details
-
SCCCopyUpdater
public SCCCopyUpdater()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
updateContents
public void updateContents(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Description copied from interface:CopyODFUpdater
Update contents after the full copy of an ODF content. Implements this method when you need to do some stuff when all contents have been copied.- Specified by:
updateContents
in interfaceCopyODFUpdater
- Parameters:
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new catalogcopiedContents
- the initial contents with their copied contenttargetParentContent
- the target parent content where the contents are copied. Can be null.
-