mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM: Unable to set list of values after migration from 1.0->2.0.3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@52264 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -120,7 +120,8 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
|||||||
|
|
||||||
/** Constants */
|
/** Constants */
|
||||||
public static final String RMC_CUSTOM_ASSOCS = RecordsManagementCustomModel.RM_CUSTOM_PREFIX + ":customAssocs";
|
public static final String RMC_CUSTOM_ASSOCS = RecordsManagementCustomModel.RM_CUSTOM_PREFIX + ":customAssocs";
|
||||||
private static final String CUSTOM_CONSTRAINT_TYPE = org.alfresco.module.org_alfresco_module_rm.caveat.RMListOfValuesConstraint.class.getName();
|
private static final String CUSTOM_CONSTRAINT_TYPE = org.alfresco.module.org_alfresco_module_rm.caveat.RMListOfValuesConstraint.class.getName();
|
||||||
|
private static final String CAPATIBILITY_CUSTOM_CONTRAINT_TYPE = org.alfresco.module.org_alfresco_module_dod5015.caveat.RMListOfValuesConstraint.class.getName();
|
||||||
private static final NodeRef RM_CUSTOM_MODEL_NODE_REF = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "records_management_custom_model");
|
private static final NodeRef RM_CUSTOM_MODEL_NODE_REF = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "records_management_custom_model");
|
||||||
private static final String PARAM_ALLOWED_VALUES = "allowedValues";
|
private static final String PARAM_ALLOWED_VALUES = "allowedValues";
|
||||||
private static final String PARAM_CASE_SENSITIVE = "caseSensitive";
|
private static final String PARAM_CASE_SENSITIVE = "caseSensitive";
|
||||||
@@ -1367,7 +1368,9 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
String type = customConstraint.getType();
|
String type = customConstraint.getType();
|
||||||
if ((type == null) || (! type.equals(CUSTOM_CONSTRAINT_TYPE)))
|
if (type == null ||
|
||||||
|
(type.equals(CUSTOM_CONSTRAINT_TYPE) == false &&
|
||||||
|
type.equals(CAPATIBILITY_CUSTOM_CONTRAINT_TYPE) == false))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_UNEXPECTED_TYPE_CONSTRAINT, type, constraintNameAsPrefixString, CUSTOM_CONSTRAINT_TYPE));
|
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_UNEXPECTED_TYPE_CONSTRAINT, type, constraintNameAsPrefixString, CUSTOM_CONSTRAINT_TYPE));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user