Some cleaning up of the AVMService and derived interfaces.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4624 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-12-16 18:17:18 +00:00
parent aaa4c27bbd
commit 87b5690fc2
24 changed files with 165 additions and 171 deletions

View File

@@ -86,7 +86,7 @@ public interface AVMService
* @throws AVMNotFoundException
* @throws AVMWrongTypeException
*/
public ContentWriter createContentWriter(String path);
public ContentWriter getContentWriter(String path);
/**
* Get a listing of a Folder by name.
@@ -277,7 +277,7 @@ public interface AVMService
* @param name The name to give the AVMStore.
* @throws AVMExistsException
*/
public void createAVMStore(String name);
public void createStore(String name);
/**
* Create a branch from a given version and path. As a side effect
@@ -350,7 +350,7 @@ public interface AVMService
* @throws AVMNotFoundException
* @throws AVMWrongTypeException
*/
public void flatten(String dirPath, String name);
public void makeTransparent(String dirPath, String name);
/**
* Gets the id that the next snapshotted version of a store
@@ -369,17 +369,6 @@ public interface AVMService
*/
public int getLatestSnapshotID(String storeName);
/**
* Snapshot the given AVMStores. When this is called everything that has been added,
* deleted, or modified since the last time this function was called, is marked
* as needing to be copied, so that further modifications will trigger copy on write
* semantics.
* @param stores The names of the AVMStores to snapshot.
* @return A List of the version ids of the newly created snapshots.
* @throws AVMNotFoundException If any of the stores do not exist.
*/
// public List<Integer> createSnapshot(List<String> stores);
/**
* Snapshot the given AVMStore.
* @param store The name of the AVMStore to snapshot.
@@ -397,7 +386,7 @@ public interface AVMService
* @return A Set of version descriptors.
* @throws AVMNotFoundException
*/
public List<VersionDescriptor> getAVMStoreVersions(String name);
public List<VersionDescriptor> getStoreVersions(String name);
/**
* Get AVMStore version descriptors by creation date. Either from or
@@ -410,13 +399,13 @@ public interface AVMService
* @return The Set of version descriptors that match.
* @throws AVMNotFoundException
*/
public List<VersionDescriptor> getAVMStoreVersions(String name, Date from, Date to);
public List<VersionDescriptor> getStoreVersions(String name, Date from, Date to);
/**
* Get the descriptors of all AVMStores.
* @return A List of all AVMStores.
*/
public List<AVMStoreDescriptor> getAVMStores();
public List<AVMStoreDescriptor> getStores();
/**
* Get (and create if necessary) the system store. This store houses things
@@ -424,14 +413,14 @@ public interface AVMService
* It isn't used internally at this time but may be in the future.
* @return The descriptor.
*/
public AVMStoreDescriptor getAVMSystemStore();
public AVMStoreDescriptor getSystemStore();
/**
* Get a descriptor for an AVMStore.
* @param name The AVMStore's name.
* @return A Descriptor, or null if not foun.
*/
public AVMStoreDescriptor getAVMStore(String name);
public AVMStoreDescriptor getStore(String name);
/**
* Get the specified root of an AVMStore.
@@ -440,7 +429,7 @@ public interface AVMService
* @return A descriptor for the specified root.
* @throws AVMNotFoundException
*/
public AVMNodeDescriptor getAVMStoreRoot(int version, String name);
public AVMNodeDescriptor getStoreRoot(int version, String name);
/**
* Lookup a node by version ids and path.
@@ -524,7 +513,7 @@ public interface AVMService
* @param name The name of the AVMStore.
* @throws AVMNotFoundException
*/
public void purgeAVMStore(String name);
public void purgeStore(String name);
/**
* Purge a version from an AVMStore. Deletes everything that lives in

View File

@@ -136,7 +136,7 @@ public interface AVMRemote
* Create a new AVMStore.
* @param name The name to give the new store.
*/
public void createAVMStore(String name);
public void createStore(String name);
/**
* Create a new branch.
@@ -171,11 +171,11 @@ public interface AVMRemote
public void uncover(String dirPath, String name);
/**
* Get the latest version id of the given AVMStore.
* Get the next version id of the given AVMStore.
* @param storeName The name of the AVMStore.
* @return The latest version id.
*/
public int getLatestVersionID(String storeName);
public int getNextVersionID(String storeName);
/**
* Get the id of the latest extant snpashot.
@@ -196,7 +196,7 @@ public interface AVMRemote
* @param name The name of the store.
* @return A List of VersionDescriptors.
*/
public List<VersionDescriptor> getAVMStoreVersions(String name);
public List<VersionDescriptor> getStoreVersions(String name);
/**
* Get AVMStore versions between given dates.
@@ -205,20 +205,20 @@ public interface AVMRemote
* @param to The date to which (inclusive).
* @return A List of VersionDescriptors.
*/
public List<VersionDescriptor> getAVMStoreVersions(String name, Date from, Date to);
public List<VersionDescriptor> getStoreVersions(String name, Date from, Date to);
/**
* Get a list of all AVM stores.
* @return A List of AVMStoreDescriptors.
*/
public List<AVMStoreDescriptor> getAVMStores();
public List<AVMStoreDescriptor> getStores();
/**
* Get the descriptor for a given AVMStore.
* @param name The name of the store.
* @return An AVMStoreDescriptor.
*/
public AVMStoreDescriptor getAVMStore(String name);
public AVMStoreDescriptor getStore(String name);
/**
* Get the specified root of the specified store.
@@ -226,7 +226,7 @@ public interface AVMRemote
* @param name The name of the store.
* @return The AVMNodeDescriptor for the root.
*/
public AVMNodeDescriptor getAVMStoreRoot(int version, String name);
public AVMNodeDescriptor getStoreRoot(int version, String name);
/**
* Get a descriptor for the specified node.
@@ -256,7 +256,7 @@ public interface AVMRemote
* Purge an AVMStore.
* @param name The name of the store to purge.
*/
public void purgeAVMStore(String name);
public void purgeStore(String name);
/**
* Purge a given version from a given store.

View File

@@ -154,7 +154,7 @@ public interface AVMRemoteTransport
* Create a new AVMStore.
* @param name The name to give the new store.
*/
public void createAVMStore(String ticket, String name);
public void createStore(String ticket, String name);
/**
* Create a new branch.
@@ -193,7 +193,7 @@ public interface AVMRemoteTransport
* @param storeName The name of the AVMStore.
* @return The latest version id.
*/
public int getLatestVersionID(String ticket, String storeName);
public int getNextVersionID(String ticket, String storeName);
/**
* Get the id of the latest extant snpashot.
@@ -214,7 +214,7 @@ public interface AVMRemoteTransport
* @param name The name of the store.
* @return A List of VersionDescriptors.
*/
public List<VersionDescriptor> getAVMStoreVersions(String ticket, String name);
public List<VersionDescriptor> getStoreVersions(String ticket, String name);
/**
* Get AVMStore versions between given dates.
@@ -223,20 +223,20 @@ public interface AVMRemoteTransport
* @param to The date to which (inclusive).
* @return A List of VersionDescriptors.
*/
public List<VersionDescriptor> getAVMStoreVersions(String ticket, String name, Date from, Date to);
public List<VersionDescriptor> getStoreVersions(String ticket, String name, Date from, Date to);
/**
* Get a list of all AVM stores.
* @return A List of AVMStoreDescriptors.
*/
public List<AVMStoreDescriptor> getAVMStores(String ticket);
public List<AVMStoreDescriptor> getStores(String ticket);
/**
* Get the descriptor for a given AVMStore.
* @param name The name of the store.
* @return An AVMStoreDescriptor.
*/
public AVMStoreDescriptor getAVMStore(String ticket, String name);
public AVMStoreDescriptor getStore(String ticket, String name);
/**
* Get the specified root of the specified store.
@@ -244,7 +244,7 @@ public interface AVMRemoteTransport
* @param name The name of the store.
* @return The AVMNodeDescriptor for the root.
*/
public AVMNodeDescriptor getAVMStoreRoot(String ticket, int version, String name);
public AVMNodeDescriptor getStoreRoot(String ticket, int version, String name);
/**
* Get a descriptor for the specified node.
@@ -274,7 +274,7 @@ public interface AVMRemoteTransport
* Purge an AVMStore.
* @param name The name of the store to purge.
*/
public void purgeAVMStore(String ticket, String name);
public void purgeStore(String ticket, String name);
/**
* Purge a given version from a given store.