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:
@@ -778,6 +778,13 @@ public interface AVMService
|
||||
public List<Pair<Integer, String>> getPaths(AVMNodeDescriptor desc);
|
||||
|
||||
|
||||
/**
|
||||
* Get a single valid path to a given node.
|
||||
* @param desc The node descriptor to get a path for.
|
||||
* @return AVMNotFoundException
|
||||
*/
|
||||
public Pair<Integer, String> getAPath(AVMNodeDescriptor desc);
|
||||
|
||||
/**
|
||||
* Get all paths that a given node has that are in the
|
||||
* <strong><code>HEAD</code></strong> version (<strong><code> -1 </code></strong>).
|
||||
|
@@ -32,6 +32,7 @@ import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.LayeringDescriptor;
|
||||
import org.alfresco.service.cmr.avm.VersionDescriptor;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.Pair;
|
||||
|
||||
/**
|
||||
* Remote interface for AVM.
|
||||
@@ -452,5 +453,13 @@ public interface AVMRemote
|
||||
* @param toRevertTo The descriptor of the version to revert to.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void revert(String path, AVMNodeDescriptor toRevertTo);
|
||||
public void revert(String path, AVMNodeDescriptor toRevertTo);
|
||||
|
||||
/**
|
||||
* Get a version and path of a node.
|
||||
* @param desc The descriptor for the node to which we want a path.
|
||||
* @return version and path.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public Pair<Integer, String> getAPath(AVMNodeDescriptor desc);
|
||||
}
|
||||
|
@@ -16,6 +16,7 @@ import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.LayeringDescriptor;
|
||||
import org.alfresco.service.cmr.avm.VersionDescriptor;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.Pair;
|
||||
|
||||
/**
|
||||
* This is the actual remote interface that is wrapped by
|
||||
@@ -470,5 +471,13 @@ public interface AVMRemoteTransport
|
||||
* @param toRevertTo The descriptor of the version to revert to.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void revert(String ticket, String path, AVMNodeDescriptor toRevertTo);
|
||||
public void revert(String ticket, String path, AVMNodeDescriptor toRevertTo);
|
||||
|
||||
/**
|
||||
* Get a version and path for a node.
|
||||
* @param ticket The authentication ticket.
|
||||
* @param desc The node descriptor for the node we want to get a path to.
|
||||
* @return version and path.
|
||||
*/
|
||||
public Pair<Integer, String> getAPath(String ticket, AVMNodeDescriptor desc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user