Package com.jalios.jcms.theming
Class ImportExportManager
java.lang.Object
com.jalios.jcms.theming.ImportExportManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidexportAsZip(javax.servlet.http.HttpServletResponse response, UITheme theme) Export the provided guided tour as zip archive in response streamstatic ImportExportManagerimportTheme(File themeArchive, Member member) Import a theme provided as zip archivestatic voidprepareExport(UITheme theme, File contentDirectory) voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.
-
Method Details
-
getInstance
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked 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.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- 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 filemember- the member used to create the imported tour- Returns:
- the created
UITheme - Throws:
ImportException- Exception thrown during import processAlreadyPresentException- 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 responsetheme- the theme to export- Throws:
IOException- any exception thrown in export process
-
prepareExport
- Throws:
IOException
-