public interface AVMRemoteTransport
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(String ticket,
String path,
org.alfresco.service.namespace.QName aspectName)
Add an aspect to an AVM node.
|
void |
closeInputHandle(String ticket,
String handle)
Close an input stream.
|
void |
closeOutputHandle(String ticket,
String handle)
Close the server side output stream designated by the handle.
|
void |
createBranch(String ticket,
int version,
String srcPath,
String dstPath,
String name)
Create a new branch.
|
void |
createDirectory(String ticket,
String path,
String name)
Create a directory.
|
String |
createFile(String ticket,
String path,
String name)
Create a file and return a handle to an output stream.
|
void |
createLayeredDirectory(String ticket,
String targetPath,
String parent,
String name)
Create a layered directory.
|
void |
createLayeredFile(String ticket,
String targetPath,
String parent,
String name)
Create a new layered file.
|
Map<String,Integer> |
createSnapshot(String ticket,
String store,
String label,
String comment)
Snapshot an AVMStore.
|
void |
createStore(String ticket,
String name)
Create a new AVMStore.
|
void |
deleteNodeProperties(String ticket,
String path)
Delete all properties from a node.
|
void |
deleteNodeProperty(String ticket,
String path,
org.alfresco.service.namespace.QName name)
Delete a property from a node.
|
void |
deleteStoreProperty(String ticket,
String store,
org.alfresco.service.namespace.QName name)
Delete a property from a store.
|
org.alfresco.util.Pair<Integer,String> |
getAPath(String ticket,
AVMNodeDescriptor desc)
Get a version and path for a node.
|
Set<org.alfresco.service.namespace.QName> |
getAspects(String ticket,
int version,
String path)
Get all the aspects on an AVM node.
|
AVMNodeDescriptor |
getCommonAncestor(String ticket,
AVMNodeDescriptor left,
AVMNodeDescriptor right)
Get the most recent common ancestor of two nodes.
|
List<String> |
getDeleted(String ticket,
int version,
String path)
Get the names of nodes that have been deleted in a directory.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(String ticket,
AVMNodeDescriptor dir)
Get a directory listing from a node descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(String ticket,
int version,
String path)
Get a listing of a directory.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListingDirect(String ticket,
int version,
String path)
Get a listing of a directories direct contents.
|
List<AVMNodeDescriptor> |
getHistory(String ticket,
AVMNodeDescriptor desc,
int count)
Get a list of ancestors of a node.
|
String |
getIndirectionPath(String ticket,
int version,
String path)
Get the indirection path for a node.
|
String |
getInputHandle(String ticket,
AVMNodeDescriptor desc)
Get an input handle from a descriptor.
|
String |
getInputHandle(String ticket,
int version,
String path)
Get an input handle.
|
int |
getLatestSnapshotID(String ticket,
String storeName)
Get the id of the latest extant snpashot.
|
LayeringDescriptor |
getLayeringInfo(String ticket,
int version,
String path)
Get layering information about a path.
|
int |
getNextVersionID(String ticket,
String storeName)
Get the latest version id of the given AVMStore.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getNodeProperties(String ticket,
int version,
String path)
Get all properties of a node.
|
PropertyValue |
getNodeProperty(String ticket,
int version,
String path,
org.alfresco.service.namespace.QName name)
Get the value of a node property.
|
String |
getOutputHandle(String ticket,
String path)
Get an opaque handle to a server side output stream.
|
AVMStoreDescriptor |
getStore(String ticket,
String name)
Get the descriptor for a given AVMStore.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getStoreProperties(String ticket,
String store)
Get all the properties on a store.
|
PropertyValue |
getStoreProperty(String ticket,
String store,
org.alfresco.service.namespace.QName name)
Get a property from a store.
|
AVMNodeDescriptor |
getStoreRoot(String ticket,
int version,
String name)
Get the specified root of the specified store.
|
List<AVMStoreDescriptor> |
getStores(String ticket)
Get a list of all AVM stores.
|
List<VersionDescriptor> |
getStoreVersions(String ticket,
String name)
Get a List of all versions in a given store.
|
List<VersionDescriptor> |
getStoreVersions(String ticket,
String name,
Date from,
Date to)
Get AVMStore versions between given dates.
|
boolean |
hasAspect(String ticket,
int version,
String path,
org.alfresco.service.namespace.QName aspectName)
Does a node have a particular aspect.
|
AVMNodeDescriptor |
lookup(String ticket,
AVMNodeDescriptor dir,
String name)
Get a descriptor for the specified node.
|
AVMNodeDescriptor |
lookup(String ticket,
AVMNodeDescriptor dir,
String name,
boolean includeDeleted)
Lookup a node identified by the directory that contains it, and its name;
optionally, the lookup can retrive the descriptor of a node even if
it has been deleted from its containing directory.
|
AVMNodeDescriptor |
lookup(String ticket,
int version,
String path)
Get a descriptor for the specified node.
|
AVMNodeDescriptor |
lookup(String ticket,
int version,
String path,
boolean includeDeleted)
Lookup a node identified by version ID and path; optionally,
if the node is deleted, its descriptor can still
be retrieved.
|
void |
makePrimary(String ticket,
String path)
Turn a directory into a primary indirection node.
|
void |
purgeStore(String ticket,
String name)
Purge an AVMStore.
|
void |
purgeVersion(String ticket,
int version,
String name)
Purge a given version from a given store.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
queryStorePropertyKey(String ticket,
String store,
org.alfresco.service.namespace.QName keyPattern)
Query a store for keys that match a pattern.
|
Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> |
queryStoresPropertyKey(String ticket,
org.alfresco.service.namespace.QName keyPattern)
Query all stores for keys that match a pattern.
|
byte[] |
readInput(String Ticket,
String handle,
int count)
Read a chunk of data from a handle.
|
void |
removeAspect(String ticket,
String path,
org.alfresco.service.namespace.QName aspectName)
Remove an aspect and its properties from a node.
|
void |
removeNode(String ticket,
String parent,
String name)
Remove a node.
|
void |
rename(String ticket,
String srcParent,
String srcName,
String dstParent,
String dstName)
Rename a node.
|
void |
renameStore(String ticket,
String sourceName,
String destName)
Rename a store.
|
void |
retargetLayeredDirectory(String ticket,
String path,
String target)
Set a layered directory node to point at a different target.
|
void |
revert(String ticket,
String path,
AVMNodeDescriptor toRevertTo)
Revert a head path to a given version.
|
void |
setEncoding(String ticket,
String path,
String encoding)
Set the encoding.
|
void |
setGuid(String ticket,
String path,
String guid)
Set the GUID on a node.
|
void |
setMimeType(String ticket,
String path,
String mimeType)
Set the mime type.
|
void |
setNodeProperties(String ticket,
String path,
Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Set a group of properties on a node.
|
void |
setNodeProperty(String ticket,
String path,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a node.
|
void |
setOpacity(String ticket,
String path,
boolean opacity)
Turn on or off a directory's opacity.
|
void |
setStoreProperties(String ticket,
String store,
Map<org.alfresco.service.namespace.QName,PropertyValue> props)
Set a group of properties on a store.
|
void |
setStoreProperty(String ticket,
String store,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a store.
|
void |
uncover(String ticket,
String dirPath,
String name)
Uncover a name in a layered directory.
|
void |
writeOutput(String ticket,
String handle,
byte[] buff,
int count)
Write
count bytes from buffer buff
starting at offset offset in buff |
String getInputHandle(String ticket, int version, String path)
version - The version to look under.path - The path to the file.String getInputHandle(String ticket, AVMNodeDescriptor desc)
ticket - The authentication ticket.desc - The descriptor.byte[] readInput(String Ticket, String handle, int count)
handle - The opaque input stream handle.count - The number of bytes to try to read.void closeInputHandle(String ticket, String handle)
handle - The opaque handle to the server side stream.String getOutputHandle(String ticket, String path)
path - The path to the existing file.void writeOutput(String ticket, String handle, byte[] buff, int count)
count bytes from buffer buff
starting at offset offset in buffhandle - The opaque handle to the server side output stream.buff - The data buffer.count - The number of bytes to write.void closeOutputHandle(String ticket, String handle)
handle - The handle to the server side output stream.SortedMap<String,AVMNodeDescriptor> getDirectoryListingDirect(String ticket, int version, String path)
version - The version to look under.path - The path to the directory.SortedMap<String,AVMNodeDescriptor> getDirectoryListing(String ticket, int version, String path)
version - The version to look under.path - The path to the directory.SortedMap<String,AVMNodeDescriptor> getDirectoryListing(String ticket, AVMNodeDescriptor dir)
dir - The directory node descriptor.List<String> getDeleted(String ticket, int version, String path)
version - The version to look under.path - The path to the directory.String createFile(String ticket, String path, String name)
path - The path to the file.name - The name of the file to create.void createDirectory(String ticket, String path, String name)
path - The path to the containing directory.name - The name for the new directory.void createLayeredFile(String ticket, String targetPath, String parent, String name)
targetPath - The path that is targeted.parent - The path to the parent directory.name - The name for the new file.void createLayeredDirectory(String ticket, String targetPath, String parent, String name)
targetPath - The path that is targeted.parent - The parent directory.name - The name of the new directory.void retargetLayeredDirectory(String ticket, String path, String target)
path - The path to the layered directory node.target - The new target.void createStore(String ticket, String name)
name - The name to give the new store.void createBranch(String ticket, int version, String srcPath, String dstPath, String name)
version - The version to look under for the source node.srcPath - The path to the source node.dstPath - The path to the destination directory.name - The name of the new branch.void removeNode(String ticket, String parent, String name)
parent - The path to the parent directory.name - The name of the node to remove.void rename(String ticket, String srcParent, String srcName, String dstParent, String dstName)
srcParent - The source directory path.srcName - The source node name.dstParent - The destination directory path.dstName - The destination name for the node.void uncover(String ticket, String dirPath, String name)
dirPath - The path to the directory.name - The name to uncover.int getNextVersionID(String ticket, String storeName)
storeName - The name of the AVMStore.int getLatestSnapshotID(String ticket, String storeName)
storeName - The name of the store.Map<String,Integer> createSnapshot(String ticket, String store, String label, String comment)
store - The name of the AVMStore to snapshot.List<VersionDescriptor> getStoreVersions(String ticket, String name)
name - The name of the store.List<VersionDescriptor> getStoreVersions(String ticket, String name, Date from, Date to)
name - The name of the store.from - The date from which (inclusive).to - The date to which (inclusive).List<AVMStoreDescriptor> getStores(String ticket)
AVMStoreDescriptor getStore(String ticket, String name)
name - The name of the store.AVMNodeDescriptor getStoreRoot(String ticket, int version, String name)
version - The version number to fetch.name - The name of the store.AVMNodeDescriptor lookup(String ticket, int version, String path)
version - The version to look under.path - The path to the node.AVMNodeDescriptor lookup(String ticket, int version, String path, boolean includeDeleted)
version - The version ID to look under.path - The simple absolute path to the parent directory.includeDeleted - Whether to allow a deleted node to be retrievedAVMNodeDescriptor lookup(String ticket, AVMNodeDescriptor dir, String name)
dir - The descriptor for the directory node.name - The name of the node to lookup.AVMNodeDescriptor lookup(String ticket, AVMNodeDescriptor dir, String name, boolean includeDeleted)
dir - The descriptor for the directory node.name - The name to lookup.includeDeleted - Whether to allow a deleted node to be retrieved via the lookupAVMNotFoundExceptionAVMWrongTypeExceptionString getIndirectionPath(String ticket, int version, String path)
version - The version to look under.path - The path to the node.void purgeStore(String ticket, String name)
name - The name of the store to purge.void purgeVersion(String ticket, int version, String name)
version - The version id.name - The name of the store.void makePrimary(String ticket, String path)
path - The path to the directory.List<AVMNodeDescriptor> getHistory(String ticket, AVMNodeDescriptor desc, int count)
desc - The descriptor of the node whose history is to be fetched.count - The maximum number of ancestors that will be returned.void setOpacity(String ticket, String path, boolean opacity)
path - The path to the directory.opacity - Whether the directory should be opaque or not.AVMNodeDescriptor getCommonAncestor(String ticket, AVMNodeDescriptor left, AVMNodeDescriptor right)
left - One node.right - The other node.LayeringDescriptor getLayeringInfo(String ticket, int version, String path)
version - The version to look under.path - The path to the node.void setNodeProperty(String ticket, String path, org.alfresco.service.namespace.QName name, PropertyValue value)
path - The path to the node.name - The name of the property.value - The value to give the property.void setNodeProperties(String ticket, String path, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
path - The path to the node.properties - A Map of QNames to PropertyValues to set.PropertyValue getNodeProperty(String ticket, int version, String path, org.alfresco.service.namespace.QName name)
version - The version to look under.path - The path to the node.name - The name of the property.Map<org.alfresco.service.namespace.QName,PropertyValue> getNodeProperties(String ticket, int version, String path)
version - The version.path - The path to the node.void deleteNodeProperty(String ticket, String path, org.alfresco.service.namespace.QName name)
path - The path to the node.name - The name of the property.void deleteNodeProperties(String ticket, String path)
path - The path to the node.void setStoreProperty(String ticket, String store, org.alfresco.service.namespace.QName name, PropertyValue value)
store - The name of the store.name - The name of the property to set.value - The value of the property to set.void setStoreProperties(String ticket, String store, Map<org.alfresco.service.namespace.QName,PropertyValue> props)
store - The name of the store.props - A Map of QNames to PropertyValues to set.PropertyValue getStoreProperty(String ticket, String store, org.alfresco.service.namespace.QName name)
store - The name of the store.name - The name of the property.Map<org.alfresco.service.namespace.QName,PropertyValue> queryStorePropertyKey(String ticket, String store, org.alfresco.service.namespace.QName keyPattern)
store - The store name.keyPattern - The sql 'like' pattern.Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> queryStoresPropertyKey(String ticket, org.alfresco.service.namespace.QName keyPattern)
keyPattern - The sql 'like' pattern.Map<org.alfresco.service.namespace.QName,PropertyValue> getStoreProperties(String ticket, String store)
store - The name of the store.void deleteStoreProperty(String ticket, String store, org.alfresco.service.namespace.QName name)
store - The name of the store.name - The name of the property.void renameStore(String ticket, String sourceName, String destName)
ticket - The authentication ticket.sourceName - The original name.destName - The new name.void addAspect(String ticket, String path, org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The QName of the aspect.AVMNotFoundExceptionAVMExistsExceptionSet<org.alfresco.service.namespace.QName> getAspects(String ticket, int version, String path)
version - The version to look under.path - The path to the node.AVMNotFoundExceptionvoid removeAspect(String ticket, String path, org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The name of the aspect.AVMNotFoundExceptionboolean hasAspect(String ticket, int version, String path, org.alfresco.service.namespace.QName aspectName)
version - The version to look under.path - The path to the node.aspectName - The aspect name to check.AVMNotFoundExceptionvoid revert(String ticket, String path, AVMNodeDescriptor toRevertTo)
path - The path to the node to revert.toRevertTo - The descriptor of the version to revert to.AVMNotFoundExceptionorg.alfresco.util.Pair<Integer,String> getAPath(String ticket, AVMNodeDescriptor desc)
ticket - The authentication ticket.desc - The node descriptor for the node we want to get a path to.void setGuid(String ticket, String path, String guid)
ticket - The authentication ticket.path - The path to the node.guid - The GUID to set.void setMimeType(String ticket, String path, String mimeType)
path - The path of the file.mimeType - The mime type.Copyright © 2005–2014 Alfresco Software. All rights reserved.