mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added getDirectoryListingDirect() and getDeleted() to AVMService
interface. These return respectively those nodes directly contained by a directory and the names of those nodes that have been deleted in a directory. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -559,6 +559,20 @@ class AVMRepository
|
||||
return store.getListing(version, pathParts[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of nodes directly contained in a directory.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the directory to list.
|
||||
* @return A Map of names to descriptors.
|
||||
*/
|
||||
public SortedMap<String, AVMNodeDescriptor> getListingDirect(int version, String path)
|
||||
{
|
||||
fLookupCount.set(1);
|
||||
String [] pathParts = SplitPath(path);
|
||||
AVMStore store = getAVMStoreByName(pathParts[0]);
|
||||
return store.getListingDirect(version, pathParts[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a directory listing from a directory node descriptor.
|
||||
* @param dir The directory node descriptor.
|
||||
@@ -577,6 +591,20 @@ class AVMRepository
|
||||
return dirNode.getListing(dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the names of deleted nodes in a directory.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the directory.
|
||||
* @return A List of names.
|
||||
*/
|
||||
public List<String> getDeleted(int version, String path)
|
||||
{
|
||||
fLookupCount.set(1);
|
||||
String [] pathParts = SplitPath(path);
|
||||
AVMStore store = getAVMStoreByName(pathParts[0]);
|
||||
return store.getDeleted(version, pathParts[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get descriptors of all AVMStores.
|
||||
* @return A list of all descriptors.
|
||||
|
Reference in New Issue
Block a user