Class ContainerCopyUpdater

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.container.ContainerCopyUpdater
All Implemented Interfaces:
CopyODFContentUpdater, CopyODFUpdater, LogEnabled, Serviceable

Copy updater to remove the 'previousYears' and 'nexYears' attributes on Container.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager smanager) throws ServiceException
      Specified by:
      service in interface Serviceable
      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 interface CopyODFUpdater
      Parameters:
      initialCatalogName - the name of initial catalog
      newCatalogName - the name of new catalog
      copiedContents - the initial contents with their copied content
      targetParentContent - the target parent content where the contents are copied. Can be null.