Package org.ametys.odf.container
Class ContainerCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.container.ContainerCopyUpdater
- All Implemented Interfaces:
CopyODFContentUpdater,CopyODFUpdater,LogEnabled,Serviceable
public class ContainerCopyUpdater
extends AbstractLogEnabled
implements CopyODFContentUpdater, Serviceable
Copy updater to remove the 'previousYears' and 'nexYears' attributes on
Container.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidservice(ServiceManager smanager) voidupdateContents(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
-
Constructor Details
-
ContainerCopyUpdater
public ContainerCopyUpdater()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
updateContents
public void updateContents(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Description copied from interface:CopyODFUpdaterUpdate 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:
updateContentsin 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.
-