Class ImportExportManager

java.lang.Object
com.jalios.jcms.theming.ImportExportManager
All Implemented Interfaces:
JPropertiesListener

public class ImportExportManager extends Object implements JPropertiesListener
  • Method Details

    • getInstance

      public static ImportExportManager getInstance()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked after properties have been modified in JCMS and save on disk.

      You cannot alter the value received in parameters.

      Note that properties parameter may be null, a limited set of site properties, or all site properties.

      To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • importTheme

      public UITheme importTheme(File themeArchive, Member member) throws ImportException, AlreadyPresentException
      Import a theme provided as zip archive
      Parameters:
      themeArchive - the guided tour zip file
      member - the member used to create the imported tour
      Returns:
      the created UITheme
      Throws:
      ImportException - Exception thrown during import process
      AlreadyPresentException - Exception thrown when theme already exist
    • exportAsZip

      public void exportAsZip(javax.servlet.http.HttpServletResponse response, UITheme theme) throws IOException
      Export the provided guided tour as zip archive in response stream
      Parameters:
      response - the response
      theme - the theme to export
      Throws:
      IOException - any exception thrown in export process
    • prepareExport

      public static void prepareExport(UITheme theme, File contentDirectory) throws IOException
      Throws:
      IOException