| Modifier and Type | Field and Description |
|---|---|
static String |
MANIFEST_COMMUNITY |
static String |
MANIFEST_FILE |
static String |
MANIFEST_IMPLEMENTATION_TITLE |
static String |
MANIFEST_SHARE |
static String |
MANIFEST_SPECIFICATION_TITLE |
static String |
MANIFEST_SPECIFICATION_VERSION |
protected static String |
REGEX_NUMBER_OR_DOT |
static String |
VERSION_PROPERTIES |
MODULE_CONFIG_IN_WAR, MODULE_NAMESPACE_DIR| Constructor and Description |
|---|
WarHelperImpl(LogOutput log) |
| Modifier and Type | Method and Description |
|---|---|
String |
backup(de.schlichtherle.truezip.file.TFile file)
Backs up a given file or directory.
|
void |
checkCompatibleEdition(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
This checks to see if the module that is being installed is compatible with the war.
|
void |
checkCompatibleEditionUsingManifest(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
Checks to see if the module that is being installed is compatible with the war, (using the entry in the manifest).
|
void |
checkCompatibleVersion(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
Checks to see if the module is compatible with the version of Alfresco.
|
protected void |
checkCompatibleVersionUsingManifest(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
Checks if the module is compatible using the entry in the manifest.
|
void |
checkModuleDependencies(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
Checks the dependencies of this module
|
Manifest |
findManifest(de.schlichtherle.truezip.file.TFile war)
Finds a single attribute from a war manifest file.
|
protected String |
findManifestArtibute(de.schlichtherle.truezip.file.TFile war,
String attributeName)
Finds a single attribute from a war manifest file.
|
protected ModuleDetails |
getModuleDetails(de.schlichtherle.truezip.file.TFile war,
String moduleId)
Gets the module details for the specified module from the war.
|
ModuleDetails |
getModuleDetailsOrAlias(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
Gets the module details or an available alias
|
boolean |
isShareWar(de.schlichtherle.truezip.file.TFile warFile)
Indicates if the war file specified is a "Share" war.
|
List<ModuleDetails> |
listModules(de.schlichtherle.truezip.file.TFile war)
Lists all the currently installed modules in the WAR
|
public static final String VERSION_PROPERTIES
public static final String MANIFEST_FILE
public static final String MANIFEST_SPECIFICATION_TITLE
public static final String MANIFEST_SPECIFICATION_VERSION
public static final String MANIFEST_IMPLEMENTATION_TITLE
public static final String MANIFEST_SHARE
public static final String MANIFEST_COMMUNITY
protected static final String REGEX_NUMBER_OR_DOT
public WarHelperImpl(LogOutput log)
public void checkCompatibleVersion(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
WarHelpercheckCompatibleVersion in interface WarHelperwar - a valid war file or exploded directory from a warprotected void checkCompatibleVersionUsingManifest(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
war - TFileinstallingModuleDetails - ModuleDetailsprotected String findManifestArtibute(de.schlichtherle.truezip.file.TFile war, String attributeName) throws ModuleManagementToolException
war - the warattributeName - key name of attributeModuleManagementToolExceptionpublic Manifest findManifest(de.schlichtherle.truezip.file.TFile war) throws ModuleManagementToolException
findManifest in interface WarHelperwar - the warModuleManagementToolExceptionpublic void checkCompatibleEdition(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
WarHelpercheckCompatibleEdition in interface WarHelperwar - a valid war file or exploded directory from a warinstallingModuleDetails - ModuleDetailspublic void checkCompatibleEditionUsingManifest(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
war - TFileinstallingModuleDetails - ModuleDetailspublic void checkModuleDependencies(de.schlichtherle.truezip.file.TFile war,
ModuleDetails installingModuleDetails)
WarHelpercheckModuleDependencies in interface WarHelperwar - TFileinstallingModuleDetails - ModuleDetailspublic ModuleDetails getModuleDetailsOrAlias(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails)
WarHelpergetModuleDetailsOrAlias in interface WarHelperwar - a valid war file or exploded directory from a warinstallingModuleDetails - ModuleDetailspublic boolean isShareWar(de.schlichtherle.truezip.file.TFile warFile)
WarHelperisShareWar in interface WarHelperwarFile - TFilepublic List<ModuleDetails> listModules(de.schlichtherle.truezip.file.TFile war)
listModules in interface WarHelperwar - the warModuleManagementToolExceptionpublic String backup(de.schlichtherle.truezip.file.TFile file) throws IOException
backup in interface WarHelperfile - the file to backupIOExceptionprotected ModuleDetails getModuleDetails(de.schlichtherle.truezip.file.TFile war, String moduleId)
war - a valid war file or exploded directory from a warmoduleId - StringCopyright © 2005–2018 Alfresco Software. All rights reserved.