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:
Derek Hulley
2007-04-26 08:42:19 +00:00
parent d94db4e310
commit 31efa6d4f3
10 changed files with 362 additions and 46 deletions

View File

@@ -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
*