RM-1233, Can now specify file-to action folders and categories longer than 255 characters

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63283 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Hibbins
2014-02-26 12:08:48 +00:00
parent 23b76f4026
commit c9a1328769
2 changed files with 2 additions and 2 deletions

View File

@@ -670,7 +670,7 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
return nodeService.createNode( return nodeService.createNode(
parent, parent,
ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name), QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, (name.length() > QName.MAX_LENGTH ? name.substring(0, QName.MAX_LENGTH) : name)),
type, type,
props).getChildRef(); props).getChildRef();
} }

View File

@@ -224,7 +224,7 @@ public class RecordFolderServiceImpl extends ServiceBaseImpl
return nodeService.createNode( return nodeService.createNode(
rmContainer, rmContainer,
ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name), QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, (name.length() > QName.MAX_LENGTH ? name.substring(0, QName.MAX_LENGTH) : name)),
type, type,
props).getChildRef(); props).getChildRef();
} }