|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AVMRemoteTransport
This is the actual remote interface that is wrapped by RMI.
| Method Summary | |
|---|---|
void |
addAspect(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Add an aspect to an AVM node. |
void |
closeInputHandle(java.lang.String ticket,
java.lang.String handle)
Close an input stream. |
void |
closeOutputHandle(java.lang.String ticket,
java.lang.String handle)
Close the server side output stream designated by the handle. |
void |
createBranch(java.lang.String ticket,
int version,
java.lang.String srcPath,
java.lang.String dstPath,
java.lang.String name)
Create a new branch. |
void |
createDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String name)
Create a directory. |
java.lang.String |
createFile(java.lang.String ticket,
java.lang.String path,
java.lang.String name)
Create a file and return a handle to an output stream. |
void |
createLayeredDirectory(java.lang.String ticket,
java.lang.String targetPath,
java.lang.String parent,
java.lang.String name)
Create a layered directory. |
void |
createLayeredFile(java.lang.String ticket,
java.lang.String targetPath,
java.lang.String parent,
java.lang.String name)
Create a new layered file. |
java.util.Map |
createSnapshot(java.lang.String ticket,
java.lang.String store,
java.lang.String label,
java.lang.String comment)
Snapshot an AVMStore. |
void |
createStore(java.lang.String ticket,
java.lang.String name)
Create a new AVMStore. |
void |
deleteNodeProperties(java.lang.String ticket,
java.lang.String path)
Delete all properties from a node. |
void |
deleteNodeProperty(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName name)
Delete a property from a node. |
void |
deleteStoreProperty(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName name)
Delete a property from a store. |
org.alfresco.util.Pair |
getAPath(java.lang.String ticket,
AVMNodeDescriptor desc)
Get a version and path for a node. |
java.util.Set |
getAspects(java.lang.String ticket,
int version,
java.lang.String path)
Get all the aspects on an AVM node. |
AVMNodeDescriptor |
getCommonAncestor(java.lang.String ticket,
AVMNodeDescriptor left,
AVMNodeDescriptor right)
Get the most recent common ancestor of two nodes. |
java.util.List |
getDeleted(java.lang.String ticket,
int version,
java.lang.String path)
Get the names of nodes that have been deleted in a directory. |
java.util.SortedMap |
getDirectoryListing(java.lang.String ticket,
AVMNodeDescriptor dir)
Get a directory listing from a node descriptor. |
java.util.SortedMap |
getDirectoryListing(java.lang.String ticket,
int version,
java.lang.String path)
Get a listing of a directory. |
java.util.SortedMap |
getDirectoryListingDirect(java.lang.String ticket,
int version,
java.lang.String path)
Get a listing of a directories direct contents. |
java.util.List |
getHistory(java.lang.String ticket,
AVMNodeDescriptor desc,
int count)
Get a list of ancestors of a node. |
java.lang.String |
getIndirectionPath(java.lang.String ticket,
int version,
java.lang.String path)
Get the indirection path for a node. |
java.lang.String |
getInputHandle(java.lang.String ticket,
AVMNodeDescriptor desc)
Get an input handle from a descriptor. |
java.lang.String |
getInputHandle(java.lang.String ticket,
int version,
java.lang.String path)
Get an input handle. |
int |
getLatestSnapshotID(java.lang.String ticket,
java.lang.String storeName)
Get the id of the latest extant snpashot. |
LayeringDescriptor |
getLayeringInfo(java.lang.String ticket,
int version,
java.lang.String path)
Get layering information about a path. |
int |
getNextVersionID(java.lang.String ticket,
java.lang.String storeName)
Get the latest version id of the given AVMStore. |
java.util.Map |
getNodeProperties(java.lang.String ticket,
int version,
java.lang.String path)
Get all properties of a node. |
PropertyValue |
getNodeProperty(java.lang.String ticket,
int version,
java.lang.String path,
org.alfresco.service.namespace.QName name)
Get the value of a node property. |
java.lang.String |
getOutputHandle(java.lang.String ticket,
java.lang.String path)
Get an opaque handle to a server side output stream. |
AVMStoreDescriptor |
getStore(java.lang.String ticket,
java.lang.String name)
Get the descriptor for a given AVMStore. |
java.util.Map |
getStoreProperties(java.lang.String ticket,
java.lang.String store)
Get all the properties on a store. |
PropertyValue |
getStoreProperty(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName name)
Get a property from a store. |
AVMNodeDescriptor |
getStoreRoot(java.lang.String ticket,
int version,
java.lang.String name)
Get the specified root of the specified store. |
java.util.List |
getStores(java.lang.String ticket)
Get a list of all AVM stores. |
java.util.List |
getStoreVersions(java.lang.String ticket,
java.lang.String name)
Get a List of all versions in a given store. |
java.util.List |
getStoreVersions(java.lang.String ticket,
java.lang.String name,
java.util.Date from,
java.util.Date to)
Get AVMStore versions between given dates. |
boolean |
hasAspect(java.lang.String ticket,
int version,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Does a node have a particular aspect. |
AVMNodeDescriptor |
lookup(java.lang.String ticket,
AVMNodeDescriptor dir,
java.lang.String name)
Get a descriptor for the specified node. |
AVMNodeDescriptor |
lookup(java.lang.String ticket,
AVMNodeDescriptor dir,
java.lang.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(java.lang.String ticket,
int version,
java.lang.String path)
Get a descriptor for the specified node. |
AVMNodeDescriptor |
lookup(java.lang.String ticket,
int version,
java.lang.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(java.lang.String ticket,
java.lang.String path)
Turn a directory into a primary indirection node. |
void |
purgeStore(java.lang.String ticket,
java.lang.String name)
Purge an AVMStore. |
void |
purgeVersion(java.lang.String ticket,
int version,
java.lang.String name)
Purge a given version from a given store. |
java.util.Map |
queryStorePropertyKey(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName keyPattern)
Query a store for keys that match a pattern. |
java.util.Map |
queryStoresPropertyKey(java.lang.String ticket,
org.alfresco.service.namespace.QName keyPattern)
Query all stores for keys that match a pattern. |
byte[] |
readInput(java.lang.String Ticket,
java.lang.String handle,
int count)
Read a chunk of data from a handle. |
void |
removeAspect(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Remove an aspect and its properties from a node. |
void |
removeNode(java.lang.String ticket,
java.lang.String parent,
java.lang.String name)
Remove a node. |
void |
rename(java.lang.String ticket,
java.lang.String srcParent,
java.lang.String srcName,
java.lang.String dstParent,
java.lang.String dstName)
Rename a node. |
void |
renameStore(java.lang.String ticket,
java.lang.String sourceName,
java.lang.String destName)
Rename a store. |
void |
retargetLayeredDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String target)
Set a layered directory node to point at a different target. |
void |
revert(java.lang.String ticket,
java.lang.String path,
AVMNodeDescriptor toRevertTo)
Revert a head path to a given version. |
void |
setEncoding(java.lang.String ticket,
java.lang.String path,
java.lang.String encoding)
Set the encoding. |
void |
setGuid(java.lang.String ticket,
java.lang.String path,
java.lang.String guid)
Set the GUID on a node. |
void |
setMimeType(java.lang.String ticket,
java.lang.String path,
java.lang.String mimeType)
Set the mime type. |
void |
setNodeProperties(java.lang.String ticket,
java.lang.String path,
java.util.Map properties)
Set a group of properties on a node. |
void |
setNodeProperty(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a node. |
void |
setOpacity(java.lang.String ticket,
java.lang.String path,
boolean opacity)
Turn on or off a directory's opacity. |
void |
setStoreProperties(java.lang.String ticket,
java.lang.String store,
java.util.Map props)
Set a group of properties on a store. |
void |
setStoreProperty(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a store. |
void |
uncover(java.lang.String ticket,
java.lang.String dirPath,
java.lang.String name)
Uncover a name in a layered directory. |
void |
writeOutput(java.lang.String ticket,
java.lang.String handle,
byte[] buff,
int count)
Write count bytes from buffer buff
starting at offset offset in buff |
| Method Detail |
|---|
java.lang.String getInputHandle(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the file.
java.lang.String getInputHandle(java.lang.String ticket,
AVMNodeDescriptor desc)
ticket - The authentication ticket.desc - The descriptor.
byte[] readInput(java.lang.String Ticket,
java.lang.String handle,
int count)
handle - The opaque input stream handle.count - The number of bytes to try to read.
void closeInputHandle(java.lang.String ticket,
java.lang.String handle)
handle - The opaque handle to the server side stream.
java.lang.String getOutputHandle(java.lang.String ticket,
java.lang.String path)
path - The path to the existing file.
void writeOutput(java.lang.String ticket,
java.lang.String handle,
byte[] buff,
int count)
count bytes from buffer buff
starting at offset offset in buff
handle - The opaque handle to the server side output stream.buff - The data buffer.count - The number of bytes to write.
void closeOutputHandle(java.lang.String ticket,
java.lang.String handle)
handle - The handle to the server side output stream.
java.util.SortedMap getDirectoryListingDirect(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the directory.
java.util.SortedMap getDirectoryListing(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the directory.
java.util.SortedMap getDirectoryListing(java.lang.String ticket,
AVMNodeDescriptor dir)
dir - The directory node descriptor.
java.util.List getDeleted(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the directory.
java.lang.String createFile(java.lang.String ticket,
java.lang.String path,
java.lang.String name)
path - The path to the file.name - The name of the file to create.
void createDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String name)
path - The path to the containing directory.name - The name for the new directory.
void createLayeredFile(java.lang.String ticket,
java.lang.String targetPath,
java.lang.String parent,
java.lang.String name)
targetPath - The path that is targeted.parent - The path to the parent directory.name - The name for the new file.
void createLayeredDirectory(java.lang.String ticket,
java.lang.String targetPath,
java.lang.String parent,
java.lang.String name)
targetPath - The path that is targeted.parent - The parent directory.name - The name of the new directory.
void retargetLayeredDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String target)
path - The path to the layered directory node.target - The new target.
void createStore(java.lang.String ticket,
java.lang.String name)
name - The name to give the new store.
void createBranch(java.lang.String ticket,
int version,
java.lang.String srcPath,
java.lang.String dstPath,
java.lang.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(java.lang.String ticket,
java.lang.String parent,
java.lang.String name)
parent - The path to the parent directory.name - The name of the node to remove.
void rename(java.lang.String ticket,
java.lang.String srcParent,
java.lang.String srcName,
java.lang.String dstParent,
java.lang.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(java.lang.String ticket,
java.lang.String dirPath,
java.lang.String name)
dirPath - The path to the directory.name - The name to uncover.
int getNextVersionID(java.lang.String ticket,
java.lang.String storeName)
storeName - The name of the AVMStore.
int getLatestSnapshotID(java.lang.String ticket,
java.lang.String storeName)
storeName - The name of the store.
java.util.Map createSnapshot(java.lang.String ticket,
java.lang.String store,
java.lang.String label,
java.lang.String comment)
store - The name of the AVMStore to snapshot.
java.util.List getStoreVersions(java.lang.String ticket,
java.lang.String name)
name - The name of the store.
java.util.List getStoreVersions(java.lang.String ticket,
java.lang.String name,
java.util.Date from,
java.util.Date to)
name - The name of the store.from - The date from which (inclusive).to - The date to which (inclusive).
java.util.List getStores(java.lang.String ticket)
AVMStoreDescriptor getStore(java.lang.String ticket,
java.lang.String name)
name - The name of the store.
AVMNodeDescriptor getStoreRoot(java.lang.String ticket,
int version,
java.lang.String name)
version - The version number to fetch.name - The name of the store.
AVMNodeDescriptor lookup(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the node.
AVMNodeDescriptor lookup(java.lang.String ticket,
int version,
java.lang.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 retrieved
AVMNodeDescriptor lookup(java.lang.String ticket,
AVMNodeDescriptor dir,
java.lang.String name)
dir - The descriptor for the directory node.name - The name of the node to lookup.
AVMNodeDescriptor lookup(java.lang.String ticket,
AVMNodeDescriptor dir,
java.lang.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 lookup
AVMNotFoundException
AVMWrongTypeException
java.lang.String getIndirectionPath(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the node.
void purgeStore(java.lang.String ticket,
java.lang.String name)
name - The name of the store to purge.
void purgeVersion(java.lang.String ticket,
int version,
java.lang.String name)
version - The version id.name - The name of the store.
void makePrimary(java.lang.String ticket,
java.lang.String path)
path - The path to the directory.
java.util.List getHistory(java.lang.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(java.lang.String ticket,
java.lang.String path,
boolean opacity)
path - The path to the directory.opacity - Whether the directory should be opaque or not.
AVMNodeDescriptor getCommonAncestor(java.lang.String ticket,
AVMNodeDescriptor left,
AVMNodeDescriptor right)
left - One node.right - The other node.
LayeringDescriptor getLayeringInfo(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the node.
void setNodeProperty(java.lang.String ticket,
java.lang.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(java.lang.String ticket,
java.lang.String path,
java.util.Map properties)
path - The path to the node.properties - A Map of QNames to PropertyValues to set.
PropertyValue getNodeProperty(java.lang.String ticket,
int version,
java.lang.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.
java.util.Map getNodeProperties(java.lang.String ticket,
int version,
java.lang.String path)
version - The version.path - The path to the node.
void deleteNodeProperty(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName name)
path - The path to the node.name - The name of the property.
void deleteNodeProperties(java.lang.String ticket,
java.lang.String path)
path - The path to the node.
void setStoreProperty(java.lang.String ticket,
java.lang.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(java.lang.String ticket,
java.lang.String store,
java.util.Map props)
store - The name of the store.props - A Map of QNames to PropertyValues to set.
PropertyValue getStoreProperty(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName name)
store - The name of the store.name - The name of the property.
java.util.Map queryStorePropertyKey(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName keyPattern)
store - The store name.keyPattern - The sql 'like' pattern.
java.util.Map queryStoresPropertyKey(java.lang.String ticket,
org.alfresco.service.namespace.QName keyPattern)
keyPattern - The sql 'like' pattern.
java.util.Map getStoreProperties(java.lang.String ticket,
java.lang.String store)
store - The name of the store.
void deleteStoreProperty(java.lang.String ticket,
java.lang.String store,
org.alfresco.service.namespace.QName name)
store - The name of the store.name - The name of the property.
void renameStore(java.lang.String ticket,
java.lang.String sourceName,
java.lang.String destName)
ticket - The authentication ticket.sourceName - The original name.destName - The new name.
void addAspect(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The QName of the aspect.
AVMNotFoundException
AVMExistsException
java.util.Set getAspects(java.lang.String ticket,
int version,
java.lang.String path)
version - The version to look under.path - The path to the node.
AVMNotFoundException
void removeAspect(java.lang.String ticket,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The name of the aspect.
AVMNotFoundException
boolean hasAspect(java.lang.String ticket,
int version,
java.lang.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.
AVMNotFoundException
void revert(java.lang.String ticket,
java.lang.String path,
AVMNodeDescriptor toRevertTo)
path - The path to the node to revert.toRevertTo - The descriptor of the version to revert to.
AVMNotFoundException
org.alfresco.util.Pair getAPath(java.lang.String ticket,
AVMNodeDescriptor desc)
ticket - The authentication ticket.desc - The node descriptor for the node we want to get a path to.
void setGuid(java.lang.String ticket,
java.lang.String path,
java.lang.String guid)
ticket - The authentication ticket.path - The path to the node.guid - The GUID to set.
void setMimeType(java.lang.String ticket,
java.lang.String path,
java.lang.String mimeType)
path - The path of the file.mimeType - The mime type.
void setEncoding(java.lang.String ticket,
java.lang.String path,
java.lang.String encoding)
path - The path of the file.encoding - The encoding.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||