mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added utility method to get a path for an AVM node as quickly as possible. Switched history
viewing to use it. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4944 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -716,6 +716,18 @@ public class AVMServiceImpl implements AVMService
|
||||
return fAVMRepository.getPaths(desc);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.avm.AVMService#getAPath(org.alfresco.service.cmr.avm.AVMNodeDescriptor)
|
||||
*/
|
||||
public Pair<Integer, String> getAPath(AVMNodeDescriptor desc)
|
||||
{
|
||||
if (desc == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Descriptor is null.");
|
||||
}
|
||||
return fAVMRepository.getAPath(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all paths that a given node has that are in the head version.
|
||||
* @param desc The node descriptor to get paths for.
|
||||
|
Reference in New Issue
Block a user