mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Further subdue exception that contains no useful information and is prevelant during auditing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97189 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -460,24 +460,23 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
*/
|
||||
private void getNodeRefPathRecursive(NodeRef nodeRef, Deque<NodeRef> nodeRefPath)
|
||||
{
|
||||
if (!isFilePlanComponent(nodeRef))
|
||||
if (isFilePlanComponent(nodeRef))
|
||||
{
|
||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_INVALID_RM_NODE, ASPECT_FILE_PLAN_COMPONENT.toString()));
|
||||
}
|
||||
// Prepend it to the path
|
||||
nodeRefPath.addFirst(nodeRef);
|
||||
// Are we not at the root
|
||||
if (!isFilePlan(nodeRef) && isFilePlanComponent(nodeRef))
|
||||
{
|
||||
ChildAssociationRef assocRef = nodeService.getPrimaryParent(nodeRef);
|
||||
if (assocRef == null)
|
||||
// Prepend it to the path
|
||||
nodeRefPath.addFirst(nodeRef);
|
||||
// Are we not at the root
|
||||
if (!isFilePlan(nodeRef))
|
||||
{
|
||||
// We hit the top of the store
|
||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_NO_ROOT));
|
||||
ChildAssociationRef assocRef = nodeService.getPrimaryParent(nodeRef);
|
||||
if (assocRef == null)
|
||||
{
|
||||
// We hit the top of the store
|
||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_NO_ROOT));
|
||||
}
|
||||
// Recurse
|
||||
nodeRef = assocRef.getParentRef();
|
||||
getNodeRefPathRecursive(nodeRef, nodeRefPath);
|
||||
}
|
||||
// Recurse
|
||||
nodeRef = assocRef.getParentRef();
|
||||
getNodeRefPathRecursive(nodeRef, nodeRefPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user