mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
106699: Made the listModules method public so you can find out what modules are installed. UTF-77 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@106795 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
69 lines
2.3 KiB
Java
69 lines
2.3 KiB
Java
package org.alfresco.repo.module.tool;
|
|
|
|
import org.alfresco.service.cmr.module.ModuleDetails;
|
|
|
|
import de.schlichtherle.truezip.file.TFile;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Performs various actions on a war file or exploded war directory
|
|
*
|
|
* @author Gethin James
|
|
*/
|
|
public interface WarHelper
|
|
{
|
|
public static final String MODULE_NAMESPACE_DIR = "/WEB-INF/classes/alfresco/module";
|
|
public static final String MODULE_CONFIG_IN_WAR = "/module.properties";
|
|
|
|
/**
|
|
* Gets the module details or an available alias
|
|
* @param war a valid war file or exploded directory from a war
|
|
* @param installingModuleDetails
|
|
* @return ModuleDetails
|
|
*/
|
|
public ModuleDetails getModuleDetailsOrAlias(TFile war, ModuleDetails installingModuleDetails);
|
|
|
|
/**
|
|
* Checks the dependencies of this module
|
|
* @param war
|
|
* @param installingModuleDetails
|
|
*/
|
|
public void checkModuleDependencies(TFile war, ModuleDetails installingModuleDetails);
|
|
|
|
/**
|
|
* Checks to see if the module is compatible with the version of Alfresco.
|
|
*
|
|
* @param war a valid war file or exploded directory from a war
|
|
*/
|
|
public void checkCompatibleVersion(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.
|
|
* @param war a valid war file or exploded directory from a war
|
|
* @param installingModuleDetails
|
|
*/
|
|
public void checkCompatibleEdition(TFile war, ModuleDetails installingModuleDetails);
|
|
|
|
/**
|
|
* Indicates if the war file specified is a "Share" war. The default is FALSE
|
|
* Returns true if the Share war manifest states its a share war.
|
|
* @since 3.4.11,4.1.1,Community 4.2
|
|
*
|
|
* @param war
|
|
* @return boolean - true if it is a share war
|
|
*/
|
|
public boolean isShareWar(TFile war);
|
|
|
|
/**
|
|
* Lists all the currently installed modules in the WAR
|
|
* @since 5.1
|
|
* @param war the war
|
|
* @return List<ModuleDetails> an unordered list of module details.
|
|
* @throws ModuleManagementToolException
|
|
*/
|
|
List<ModuleDetails> listModules(TFile war);
|
|
}
|