org.alfresco.service.cmr.remote
Interface AVMRemoteTransport

All Known Implementing Classes:
AVMRemoteTransportService

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

getInputHandle

java.lang.String getInputHandle(java.lang.String ticket,
                                int version,
                                java.lang.String path)
Get an input handle. A handle is an opaque reference to a server side input stream.

Parameters:
version - The version to look under.
path - The path to the file.
Returns:
A handle.

getInputHandle

java.lang.String getInputHandle(java.lang.String ticket,
                                AVMNodeDescriptor desc)
Get an input handle from a descriptor.

Parameters:
ticket - The authentication ticket.
desc - The descriptor.
Returns:
An input handle.

readInput

byte[] readInput(java.lang.String Ticket,
                 java.lang.String handle,
                 int count)
Read a chunk of data from a handle.

Parameters:
handle - The opaque input stream handle.
count - The number of bytes to try to read.
Returns:
An array of bytes. 0 length at eof.

closeInputHandle

void closeInputHandle(java.lang.String ticket,
                      java.lang.String handle)
Close an input stream. Server side input streams are timer limited, ie, they will be automatically closed after a given idle time. However, be nice, and close handles when you're done.

Parameters:
handle - The opaque handle to the server side stream.

getOutputHandle

java.lang.String getOutputHandle(java.lang.String ticket,
                                 java.lang.String path)
Get an opaque handle to a server side output stream.

Parameters:
path - The path to the existing file.
Returns:
An opaque handle.

writeOutput

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

Parameters:
handle - The opaque handle to the server side output stream.
buff - The data buffer.
count - The number of bytes to write.

closeOutputHandle

void closeOutputHandle(java.lang.String ticket,
                       java.lang.String handle)
Close the server side output stream designated by the handle.

Parameters:
handle - The handle to the server side output stream.

getDirectoryListingDirect

java.util.SortedMap getDirectoryListingDirect(java.lang.String ticket,
                                              int version,
                                              java.lang.String path)
Get a listing of a directories direct contents.

Parameters:
version - The version to look under.
path - The path to the directory.
Returns:
A sorted listing.

getDirectoryListing

java.util.SortedMap getDirectoryListing(java.lang.String ticket,
                                        int version,
                                        java.lang.String path)
Get a listing of a directory.

Parameters:
version - The version to look under.
path - The path to the directory.
Returns:
A sorted listing.

getDirectoryListing

java.util.SortedMap getDirectoryListing(java.lang.String ticket,
                                        AVMNodeDescriptor dir)
Get a directory listing from a node descriptor.

Parameters:
dir - The directory node descriptor.
Returns:
A sorted listing.

getDeleted

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.

Parameters:
version - The version to look under.
path - The path to the directory.
Returns:
A list of deleted names.

createFile

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.

Parameters:
path - The path to the file.
name - The name of the file to create.
Returns:
An opaque handle to a server side output stream.

createDirectory

void createDirectory(java.lang.String ticket,
                     java.lang.String path,
                     java.lang.String name)
Create a directory.

Parameters:
path - The path to the containing directory.
name - The name for the new directory.

createLayeredFile

void createLayeredFile(java.lang.String ticket,
                       java.lang.String targetPath,
                       java.lang.String parent,
                       java.lang.String name)
Create a new layered file.

Parameters:
targetPath - The path that is targeted.
parent - The path to the parent directory.
name - The name for the new file.

createLayeredDirectory

void createLayeredDirectory(java.lang.String ticket,
                            java.lang.String targetPath,
                            java.lang.String parent,
                            java.lang.String name)
Create a layered directory.

Parameters:
targetPath - The path that is targeted.
parent - The parent directory.
name - The name of the new directory.

retargetLayeredDirectory

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.

Parameters:
path - The path to the layered directory node.
target - The new target.

createStore

void createStore(java.lang.String ticket,
                 java.lang.String name)
Create a new AVMStore.

Parameters:
name - The name to give the new store.

createBranch

void createBranch(java.lang.String ticket,
                  int version,
                  java.lang.String srcPath,
                  java.lang.String dstPath,
                  java.lang.String name)
Create a new branch.

Parameters:
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.

removeNode

void removeNode(java.lang.String ticket,
                java.lang.String parent,
                java.lang.String name)
Remove a node.

Parameters:
parent - The path to the parent directory.
name - The name of the node to remove.

rename

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.

Parameters:
srcParent - The source directory path.
srcName - The source node name.
dstParent - The destination directory path.
dstName - The destination name for the node.

uncover

void uncover(java.lang.String ticket,
             java.lang.String dirPath,
             java.lang.String name)
Uncover a name in a layered directory.

Parameters:
dirPath - The path to the directory.
name - The name to uncover.

getNextVersionID

int getNextVersionID(java.lang.String ticket,
                     java.lang.String storeName)
Get the latest version id of the given AVMStore.

Parameters:
storeName - The name of the AVMStore.
Returns:
The latest version id.

getLatestSnapshotID

int getLatestSnapshotID(java.lang.String ticket,
                        java.lang.String storeName)
Get the id of the latest extant snpashot.

Parameters:
storeName - The name of the store.
Returns:
The id.

createSnapshot

java.util.Map createSnapshot(java.lang.String ticket,
                             java.lang.String store,
                             java.lang.String label,
                             java.lang.String comment)
Snapshot an AVMStore.

Parameters:
store - The name of the AVMStore to snapshot.
Returns:
The map of explicitly and implicitly snapshotted stores.

getStoreVersions

java.util.List getStoreVersions(java.lang.String ticket,
                                java.lang.String name)
Get a List of all versions in a given store.

Parameters:
name - The name of the store.
Returns:
A List of VersionDescriptors.

getStoreVersions

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.

Parameters:
name - The name of the store.
from - The date from which (inclusive).
to - The date to which (inclusive).
Returns:
A List of VersionDescriptors.

getStores

java.util.List getStores(java.lang.String ticket)
Get a list of all AVM stores.

Returns:
A List of AVMStoreDescriptors.

getStore

AVMStoreDescriptor getStore(java.lang.String ticket,
                            java.lang.String name)
Get the descriptor for a given AVMStore.

Parameters:
name - The name of the store.
Returns:
An AVMStoreDescriptor.

getStoreRoot

AVMNodeDescriptor getStoreRoot(java.lang.String ticket,
                               int version,
                               java.lang.String name)
Get the specified root of the specified store.

Parameters:
version - The version number to fetch.
name - The name of the store.
Returns:
The AVMNodeDescriptor for the root.

lookup

AVMNodeDescriptor lookup(java.lang.String ticket,
                         int version,
                         java.lang.String path)
Get a descriptor for the specified node.

Parameters:
version - The version to look under.
path - The path to the node.
Returns:
An AVMNodeDescriptor.

lookup

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.

Parameters:
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
Returns:
An AVMNodeDescriptor, or null if the version does not exist.

lookup

AVMNodeDescriptor lookup(java.lang.String ticket,
                         AVMNodeDescriptor dir,
                         java.lang.String name)
Get a descriptor for the specified node.

Parameters:
dir - The descriptor for the directory node.
name - The name of the node to lookup.
Returns:
An AVMNodeDescriptor.

lookup

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.

Parameters:
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
Returns:
The descriptor for the child, null if the child doesn't exist.
Throws:
AVMNotFoundException
AVMWrongTypeException

getIndirectionPath

java.lang.String getIndirectionPath(java.lang.String ticket,
                                    int version,
                                    java.lang.String path)
Get the indirection path for a node.

Parameters:
version - The version to look under.
path - The path to the node.
Returns:
The indirection path/target.

purgeStore

void purgeStore(java.lang.String ticket,
                java.lang.String name)
Purge an AVMStore.

Parameters:
name - The name of the store to purge.

purgeVersion

void purgeVersion(java.lang.String ticket,
                  int version,
                  java.lang.String name)
Purge a given version from a given store.

Parameters:
version - The version id.
name - The name of the store.

makePrimary

void makePrimary(java.lang.String ticket,
                 java.lang.String path)
Turn a directory into a primary indirection node.

Parameters:
path - The path to the directory.

getHistory

java.util.List getHistory(java.lang.String ticket,
                          AVMNodeDescriptor desc,
                          int count)
Get a list of ancestors of a node.

Parameters:
desc - The descriptor of the node whose history is to be fetched.
count - The maximum number of ancestors that will be returned.
Returns:
A List of descriptors for ancestors starting most recent first.

setOpacity

void setOpacity(java.lang.String ticket,
                java.lang.String path,
                boolean opacity)
Turn on or off a directory's opacity.

Parameters:
path - The path to the directory.
opacity - Whether the directory should be opaque or not.

getCommonAncestor

AVMNodeDescriptor getCommonAncestor(java.lang.String ticket,
                                    AVMNodeDescriptor left,
                                    AVMNodeDescriptor right)
Get the most recent common ancestor of two nodes.

Parameters:
left - One node.
right - The other node.
Returns:
The common ancestor.

getLayeringInfo

LayeringDescriptor getLayeringInfo(java.lang.String ticket,
                                   int version,
                                   java.lang.String path)
Get layering information about a path.

Parameters:
version - The version to look under.
path - The path to the node.
Returns:
A LayeringDescriptor.

setNodeProperty

void setNodeProperty(java.lang.String ticket,
                     java.lang.String path,
                     org.alfresco.service.namespace.QName name,
                     PropertyValue value)
Set a property on a node.

Parameters:
path - The path to the node.
name - The name of the property.
value - The value to give the property.

setNodeProperties

void setNodeProperties(java.lang.String ticket,
                       java.lang.String path,
                       java.util.Map properties)
Set a group of properties on a node.

Parameters:
path - The path to the node.
properties - A Map of QNames to PropertyValues to set.

getNodeProperty

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.

Parameters:
version - The version to look under.
path - The path to the node.
name - The name of the property.
Returns:
A PropertyValue.

getNodeProperties

java.util.Map getNodeProperties(java.lang.String ticket,
                                int version,
                                java.lang.String path)
Get all properties of a node.

Parameters:
version - The version.
path - The path to the node.
Returns:
A Map of QNames to PropertyValues.

deleteNodeProperty

void deleteNodeProperty(java.lang.String ticket,
                        java.lang.String path,
                        org.alfresco.service.namespace.QName name)
Delete a property from a node.

Parameters:
path - The path to the node.
name - The name of the property.

deleteNodeProperties

void deleteNodeProperties(java.lang.String ticket,
                          java.lang.String path)
Delete all properties from a node.

Parameters:
path - The path to the node.

setStoreProperty

void setStoreProperty(java.lang.String ticket,
                      java.lang.String store,
                      org.alfresco.service.namespace.QName name,
                      PropertyValue value)
Set a property on a store.

Parameters:
store - The name of the store.
name - The name of the property to set.
value - The value of the property to set.

setStoreProperties

void setStoreProperties(java.lang.String ticket,
                        java.lang.String store,
                        java.util.Map props)
Set a group of properties on a store.

Parameters:
store - The name of the store.
props - A Map of QNames to PropertyValues to set.

getStoreProperty

PropertyValue getStoreProperty(java.lang.String ticket,
                               java.lang.String store,
                               org.alfresco.service.namespace.QName name)
Get a property from a store.

Parameters:
store - The name of the store.
name - The name of the property.
Returns:
A PropertyValue.

queryStorePropertyKey

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.

Parameters:
store - The store name.
keyPattern - The sql 'like' pattern.
Returns:
A Map of keys to values.

queryStoresPropertyKey

java.util.Map queryStoresPropertyKey(java.lang.String ticket,
                                     org.alfresco.service.namespace.QName keyPattern)
Query all stores for keys that match a pattern.

Parameters:
keyPattern - The sql 'like' pattern.
Returns:
A Map of store names to Maps of matching keys to values.

getStoreProperties

java.util.Map getStoreProperties(java.lang.String ticket,
                                 java.lang.String store)
Get all the properties on a store.

Parameters:
store - The name of the store.
Returns:
A Map of QNames to PropertyValues.

deleteStoreProperty

void deleteStoreProperty(java.lang.String ticket,
                         java.lang.String store,
                         org.alfresco.service.namespace.QName name)
Delete a property from a store.

Parameters:
store - The name of the store.
name - The name of the property.

renameStore

void renameStore(java.lang.String ticket,
                 java.lang.String sourceName,
                 java.lang.String destName)
Rename a store.

Parameters:
ticket - The authentication ticket.
sourceName - The original name.
destName - The new name.

addAspect

void addAspect(java.lang.String ticket,
               java.lang.String path,
               org.alfresco.service.namespace.QName aspectName)
Add an aspect to an AVM node.

Parameters:
path - The path to the node.
aspectName - The QName of the aspect.
Throws:
AVMNotFoundException
AVMExistsException

getAspects

java.util.Set getAspects(java.lang.String ticket,
                         int version,
                         java.lang.String path)
Get all the aspects on an AVM node.

Parameters:
version - The version to look under.
path - The path to the node.
Returns:
A List of the QNames of the aspects.
Throws:
AVMNotFoundException

removeAspect

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.

Parameters:
path - The path to the node.
aspectName - The name of the aspect.
Throws:
AVMNotFoundException

hasAspect

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.

Parameters:
version - The version to look under.
path - The path to the node.
aspectName - The aspect name to check.
Returns:
Whether the given node has the given aspect.
Throws:
AVMNotFoundException

revert

void revert(java.lang.String ticket,
            java.lang.String path,
            AVMNodeDescriptor toRevertTo)
Revert a head path to a given version. This works by cloning the version to revert to, and then linking that new version into head. The reverted version will have the previous head version as ancestor.

Parameters:
path - The path to the node to revert.
toRevertTo - The descriptor of the version to revert to.
Throws:
AVMNotFoundException

getAPath

org.alfresco.util.Pair getAPath(java.lang.String ticket,
                                AVMNodeDescriptor desc)
Get a version and path for a node.

Parameters:
ticket - The authentication ticket.
desc - The node descriptor for the node we want to get a path to.
Returns:
version and path.

setGuid

void setGuid(java.lang.String ticket,
             java.lang.String path,
             java.lang.String guid)
Set the GUID on a node.

Parameters:
ticket - The authentication ticket.
path - The path to the node.
guid - The GUID to set.

setMimeType

void setMimeType(java.lang.String ticket,
                 java.lang.String path,
                 java.lang.String mimeType)
Set the mime type.

Parameters:
path - The path of the file.
mimeType - The mime type.

setEncoding

void setEncoding(java.lang.String ticket,
                 java.lang.String path,
                 java.lang.String encoding)
Set the encoding.

Parameters:
path - The path of the file.
encoding - The encoding.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.