mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added support to limit module execution to a specific range of repository versions.
e.g. the PHP SDK module has the following: module.repo.version.min=2.0 module.repo.version.max=2.1 This limits it to being installed on 2.0 or 2.1 versions of Alfresco. Roy can change this, if required. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5532 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -81,6 +81,26 @@ public interface ModuleDetails
|
||||
*/
|
||||
String getDescription();
|
||||
|
||||
/**
|
||||
* @return Returns the minimum version of the repository in which the module may be active
|
||||
*/
|
||||
VersionNumber getRepoVersionMin();
|
||||
|
||||
/**
|
||||
* @param repoVersionMin the minimum version of the repository in which the module may be acitve
|
||||
*/
|
||||
void setRepoVersionMin(VersionNumber repoVersionMin);
|
||||
|
||||
/**
|
||||
* @return Returns the maximum version of the repository in which the module may be active
|
||||
*/
|
||||
VersionNumber getRepoVersionMax();
|
||||
|
||||
/**
|
||||
* @param repoVersionMax the maximum version of the repository in which the module may be acitve
|
||||
*/
|
||||
void setRepoVersionMax(VersionNumber repoVersionMax);
|
||||
|
||||
/**
|
||||
* Get the modules install date
|
||||
*
|
||||
|
@@ -25,13 +25,18 @@
|
||||
package org.alfresco.service.cmr.module;
|
||||
|
||||
/**
|
||||
* Enum used to indicate the install state of a module
|
||||
* Enum used to indicate the install state of a module.
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
*/
|
||||
public enum ModuleInstallState
|
||||
{
|
||||
INSTALLED, // indicates that a module is installed
|
||||
DISABLED, // indicates that a module is installed but it functionality is disabled
|
||||
UNINSTALLED // indicates that a module is uninstalled
|
||||
/** The state of the module is unknown */
|
||||
UKNOWN,
|
||||
/** The module is installed */
|
||||
INSTALLED,
|
||||
/** The module is disabled */
|
||||
DISABLED,
|
||||
/** The module has been uninstalled */
|
||||
UNINSTALLED;
|
||||
}
|
||||
|
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package org.alfresco.service.descriptor;
|
||||
|
||||
import org.alfresco.util.VersionNumber;
|
||||
|
||||
|
||||
/**
|
||||
* Provides meta-data for the Alfresco stack.
|
||||
@@ -67,6 +69,11 @@ public interface Descriptor
|
||||
*/
|
||||
public String getVersionBuild();
|
||||
|
||||
/**
|
||||
* @return Returns the object representing the major-minor-revision numbers
|
||||
*/
|
||||
public VersionNumber getVersionNumber();
|
||||
|
||||
/**
|
||||
* Gets the full version number
|
||||
*
|
||||
|
Reference in New Issue
Block a user