public class ImportUpdateService extends Object
| Constructor and Description |
|---|
ImportUpdateService() |
| Modifier and Type | Method and Description |
|---|---|
static ImportUpdateService |
getInstance() |
void |
registerUpdater(ImportFileUpdater updater)
Internal method to register an import file updater
|
void |
unregisterUpdater(ImportFileUpdater updater)
Internal method to unregister an import file updater
|
File |
updateImport(File importFile,
String fileName,
String fileType,
org.jahia.commons.Version version,
int buildNumber)
Method used to update if necessary an import zip file based on the originating version and build number
|
public static ImportUpdateService getInstance()
public void registerUpdater(ImportFileUpdater updater)
updater - public void unregisterUpdater(ImportFileUpdater updater)
updater - public File updateImport(File importFile, String fileName, String fileType, org.jahia.commons.Version version, int buildNumber)
importFile - fileName - fileType - @return updated file OR the original file if no updates have been performedversion - buildNumber - Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.