RM-2500 Enable editing of classification scheme.

Allow adding and removing classification levels, classification reasons and
exemption categories after the server has been started for the first time.
It is also possible to alter the display text associated with an existing
level, reason or category.  All changes require a server restart.

+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109854 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-08-10 13:45:44 +00:00
parent 43ea2e5bc4
commit 05da180731
2 changed files with 27 additions and 80 deletions

View File

@@ -171,24 +171,21 @@ public class ClassificationServiceBootstrap extends AbstractLifecycleBean implem
validator.validate(classpathValues, clazz.getSimpleName());
if (isEmpty(persistedValues))
if (isEmpty(classpathValues))
{
if (isEmpty(classpathValues))
{
throw new MissingConfiguration(clazz.getSimpleName() + " configuration is missing.");
}
attributeService.setAttribute((Serializable) classpathValues, key);
return classpathValues;
throw new MissingConfiguration(clazz.getSimpleName() + " configuration is missing.");
}
else
if (classpathValues.equals(persistedValues))
{
if (isEmpty(classpathValues) || !classpathValues.equals(persistedValues))
{
LOGGER.warn(clazz.getSimpleName() + " data configured in classpath does not match data stored in Alfresco. "
+ "Alfresco will use the unchanged values stored in the database.");
}
return persistedValues;
}
if (!isEmpty(persistedValues))
{
LOGGER.warn("{} configuration changed. This may result in unpredictable results if the classification scheme is already in use.",
clazz.getSimpleName());
}
attributeService.setAttribute((Serializable) classpathValues, key);
return classpathValues;
}
/**