mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Support for renaming of modules
- When a module ID changes, the old ID gets put in a list against property 'module.aliases'. - The tool and the repo startup detect the existing installation against the alias and perform a rename. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5559 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
package org.alfresco.service.cmr.module;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.alfresco.util.VersionNumber;
|
||||
@@ -38,6 +39,7 @@ import org.alfresco.util.VersionNumber;
|
||||
public interface ModuleDetails
|
||||
{
|
||||
static final String PROP_ID = "module.id";
|
||||
static final String PROP_ALIASES = "module.aliases";
|
||||
static final String PROP_VERSION = "module.version";
|
||||
static final String PROP_TITLE = "module.title";
|
||||
static final String PROP_DESCRIPTION = "module.description";
|
||||
@@ -46,6 +48,8 @@ public interface ModuleDetails
|
||||
static final String PROP_INSTALL_DATE = "module.installDate";
|
||||
static final String PROP_INSTALL_STATE = "module.installState";
|
||||
|
||||
static final String INVALID_ID_REGEX = ".*[^\\w.-].*";
|
||||
|
||||
/**
|
||||
* Get all defined properties.
|
||||
*
|
||||
@@ -60,6 +64,11 @@ public interface ModuleDetails
|
||||
*/
|
||||
String getId();
|
||||
|
||||
/**
|
||||
* @return Returns a list of IDs by which this module may once have been known
|
||||
*/
|
||||
List<String> getAliases();
|
||||
|
||||
/**
|
||||
* Get the version number of the module
|
||||
*
|
||||
|
Reference in New Issue
Block a user