Package org.alfresco.repo.module.tool
Interface WarHelper
- All Known Implementing Classes:
WarHelperImpl
public interface WarHelper
Performs various actions on a war file or exploded war directory
- Author:
- Gethin James
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbackup(de.schlichtherle.truezip.file.TFile file) Backs up a given file or directory.voidcheckCompatibleEdition(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) This checks to see if the module that is being installed is compatible with the war.voidcheckCompatibleVersion(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Checks to see if the module is compatible with the version of Alfresco.voidcheckModuleDependencies(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Checks the dependencies of this modulefindManifest(de.schlichtherle.truezip.file.TFile war) Finds a war manifest file.getModuleDetailsOrAlias(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Gets the module details or an available aliasbooleanisShareWar(de.schlichtherle.truezip.file.TFile war) Indicates if the war file specified is a "Share" war.listModules(de.schlichtherle.truezip.file.TFile war) Lists all the currently installed modules in the WAR
-
Field Details
-
MODULE_NAMESPACE_DIR
- See Also:
-
MODULE_CONFIG_IN_WAR
- See Also:
-
-
Method Details
-
getModuleDetailsOrAlias
ModuleDetails getModuleDetailsOrAlias(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Gets the module details or an available alias- Parameters:
war- a valid war file or exploded directory from a warinstallingModuleDetails- ModuleDetails- Returns:
- ModuleDetails
-
checkModuleDependencies
void checkModuleDependencies(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Checks the dependencies of this module- Parameters:
war- TFileinstallingModuleDetails- ModuleDetails
-
checkCompatibleVersion
void checkCompatibleVersion(de.schlichtherle.truezip.file.TFile war, ModuleDetails installingModuleDetails) Checks to see if the module is compatible with the version of Alfresco.- Parameters:
war- a valid war file or exploded directory from a war
-
checkCompatibleEdition
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. If not module edition is specfied then it will just return. However, if an edition is specified and it doesn't match then an error is thrown.- Parameters:
war- a valid war file or exploded directory from a warinstallingModuleDetails- ModuleDetails
-
listModules
Lists all the currently installed modules in the WAR- Parameters:
war- the war- Returns:
- an unordered list of module details.
- Throws:
ModuleManagementToolException- Since:
- 5.1
-
backup
Backs up a given file or directory.- Parameters:
file- the file to backup- Returns:
- the absolute path to the backup file.
- Throws:
IOException- Since:
- 5.1
-
findManifest
Finds a war manifest file.- Parameters:
war- the war- Returns:
- Manifest
- Throws:
ModuleManagementToolException- Since:
- 5.1
-