mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
FIXED ALF-12541: AMP files need to be able to be pinned to specific "edition(s)" of Alfresco
It is now possible to specify a module.editions property (eg. community) which is checked by the MMT. Also, the version is checked on install. Also, started refactoring some of the code for better reuse. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@33668 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
48
source/java/org/alfresco/repo/module/tool/WarHelper.java
Normal file
48
source/java/org/alfresco/repo/module/tool/WarHelper.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package org.alfresco.repo.module.tool;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.alfresco.service.cmr.module.ModuleDetails;
|
||||
|
||||
/**
|
||||
* 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(File war, ModuleDetails installingModuleDetails);
|
||||
|
||||
/**
|
||||
* Checks the dependencies of this module
|
||||
* @param war
|
||||
* @param installingModuleDetails
|
||||
*/
|
||||
public void checkModuleDependencies(File 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(File 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(File war, ModuleDetails installingModuleDetails);
|
||||
|
||||
}
|
Reference in New Issue
Block a user