mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user