public class AVMServiceImpl extends Object implements AVMService
| Constructor and Description |
|---|
AVMServiceImpl()
Basic constructor for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(String path,
org.alfresco.service.namespace.QName aspectName)
Add an aspect to an AVM node.
|
void |
copy(int srcVersion,
String srcPath,
String dstPath,
String name)
Copy (possibly recursively) the source into the destination
directory.
|
void |
createBranch(int version,
String srcPath,
String dstPath,
String name)
Create a branch.
|
void |
createDirectory(String path,
String name)
Create a directory.
|
void |
createDirectory(String path,
String name,
List<org.alfresco.service.namespace.QName> aspects,
Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Create a new directory with aspects and properties.
|
OutputStream |
createFile(String path,
String name)
Create a new file.
|
void |
createFile(String path,
String name,
InputStream in)
Create a file with content specified by the InputStream.
|
void |
createFile(String path,
String name,
InputStream in,
List<org.alfresco.service.namespace.QName> aspects,
Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Create a new "plain" (non-layered) file with aspects and properties.
|
void |
createLayeredDirectory(String srcPath,
String parent,
String name)
Create a new layered directory.
|
void |
createLayeredFile(String srcPath,
String parent,
String name)
Create a new layered file.
|
Map<String,Integer> |
createSnapshot(String store,
String tag,
String description)
Snapshot the given AVMStore.
|
void |
createStore(String name)
Create an AVMStore with the given name (it must not exist).
|
void |
createStore(String name,
Map<org.alfresco.service.namespace.QName,PropertyValue> props)
Create an AVMStore with the given name (it must not exist) and set store properties.
|
void |
deleteNodeProperties(String path)
Delete all the properties attached to an AVM node.
|
void |
deleteNodeProperty(String path,
org.alfresco.service.namespace.QName name)
Delete a property.
|
void |
deleteStoreProperty(String store,
org.alfresco.service.namespace.QName name)
Delete a property on a store by name.
|
AVMNodeDescriptor |
forceCopy(String path)
Force copy on write of a path.
|
org.alfresco.util.Pair<Integer,String> |
getAPath(AVMNodeDescriptor desc)
Get a single valid path to a given node.
|
Set<org.alfresco.service.namespace.QName> |
getAspects(AVMNodeDescriptor desc)
Get all the aspects from a node descriptor.
|
Set<org.alfresco.service.namespace.QName> |
getAspects(int version,
String path)
Get all the aspects on an AVM node.
|
AVMNodeDescriptor |
getCommonAncestor(AVMNodeDescriptor left,
AVMNodeDescriptor right)
Get the common ancestor of two nodes if one exists.
|
org.alfresco.service.cmr.repository.ContentData |
getContentDataForRead(AVMNodeDescriptor desc)
Get ContentData using only a node descriptor.
|
org.alfresco.service.cmr.repository.ContentData |
getContentDataForRead(int version,
String path)
Get the ContentData for a node.
|
org.alfresco.service.cmr.repository.ContentData |
getContentDataForWrite(String path)
Get the Content data for writing.
|
org.alfresco.service.cmr.repository.ContentReader |
getContentReader(int version,
String path)
Get a content reader from a file node.
|
org.alfresco.service.cmr.repository.ContentWriter |
getContentWriter(String path,
boolean update)
Get a ContentWriter to a file node.
|
List<String> |
getDeleted(int version,
String path)
Get the names of nodes that have been deleted in a directory.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(AVMNodeDescriptor dir)
Get a directory listing from a node descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a directory listing from a node descriptor, with the option of
seeing deleted nodes.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(AVMNodeDescriptor dir,
String childPattern)
Get a non-recursive directory listing of a directory node
identified by a node descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(AVMNodeDescriptor dir,
String childNamePattern,
boolean includeDeleted) |
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(int version,
String path)
Get a directory listing.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListing(int version,
String path,
boolean includeDeleted)
Get a listing of a Folder by name, with the option of seeing
Deleted Nodes.
|
AVMNodeDescriptor[] |
getDirectoryListingArray(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a directory listing as an Array of node descriptors.
|
AVMNodeDescriptor[] |
getDirectoryListingArray(int version,
String path,
boolean includeDeleted)
Get a directory listing as an Array of AVMNodeDescriptors.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListingDirect(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of all the directly contained children of a directory.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListingDirect(int version,
String path)
Get the listing of nodes contained directly in a directory.
|
SortedMap<String,AVMNodeDescriptor> |
getDirectoryListingDirect(int version,
String path,
boolean includeDeleted)
Get the listing of nodes contained directly in a directory.
|
InputStream |
getFileInputStream(AVMNodeDescriptor desc)
Get an InputStream from a descriptor.
|
InputStream |
getFileInputStream(int version,
String path)
Get an InputStream from a file.
|
OutputStream |
getFileOutputStream(String path)
Get an output stream to a file.
|
List<org.alfresco.util.Pair<Integer,String>> |
getHeadPaths(AVMNodeDescriptor desc)
Get all paths that a given node has that are in the head version.
|
List<AVMNodeDescriptor> |
getHistory(AVMNodeDescriptor desc,
int count)
Get the history of a node.
|
String |
getIndirectionPath(int version,
String path)
Get the indirection path of a layered node.
|
int |
getLatestSnapshotID(String storeName)
Get the latest snapshot id of a store.
|
LayeringDescriptor |
getLayeringInfo(int version,
String path)
Get layering information about a path.
|
int |
getNextVersionID(String repName)
Get the Latest Version ID for an AVMStore.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getNodeProperties(AVMNodeDescriptor desc)
Get all the properties associated with a node identified by a descriptor.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getNodeProperties(int version,
String path)
Get all the properties associated with a node.
|
PropertyValue |
getNodeProperty(int version,
String path,
org.alfresco.service.namespace.QName name)
Get a property of a node by QName.
|
List<org.alfresco.util.Pair<Integer,String>> |
getPaths(AVMNodeDescriptor desc)
Get a list of all paths that a given node has.
|
List<org.alfresco.util.Pair<Integer,String>> |
getPathsInStoreHead(AVMNodeDescriptor desc,
String store)
Get all paths to a node starting at the HEAD version of a store.
|
List<String> |
getPathsInStoreVersion(AVMNodeDescriptor desc,
String store,
int version)
Get all paths to a given node in a single store in a single non-head version.
|
AVMStoreDescriptor |
getStore(String name)
Get a reposotory.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getStoreProperties(String store)
Get all the properties associated with a store.
|
PropertyValue |
getStoreProperty(String store,
org.alfresco.service.namespace.QName name)
Get a property from a store.
|
AVMNodeDescriptor |
getStoreRoot(int version,
String name)
Get a descriptor for the specified AVMStore root.
|
List<AVMStoreDescriptor> |
getStores()
Get a list of all AVMStores.
|
List<VersionDescriptor> |
getStoreVersions(String name)
Get the extant version ids for an AVMStore.
|
List<VersionDescriptor> |
getStoreVersions(String name,
Date from,
Date to)
Get version IDs by creation date.
|
List<VersionDescriptor> |
getStoreVersionsBetween(String name,
int startVersion,
int endVersion)
Get all versions from an including startVersion up to but NOT including endVersion
|
List<VersionDescriptor> |
getStoreVersionsFrom(String name,
int version)
Get all versions from the last down to and including the one specified
Returned in descending version id.
|
List<VersionDescriptor> |
getStoreVersionsTo(String name,
int version)
Get all versions from the first up to and including the one specified
Returned in ascending version id order.
|
AVMStoreDescriptor |
getSystemStore()
Get (and create if necessary) the system store.
|
boolean |
hasAspect(int version,
String path,
org.alfresco.service.namespace.QName aspectName)
Does a node have a particular aspect.
|
void |
link(String parentPath,
String name,
AVMNodeDescriptor toLink)
This inserts a node into a parent directly.
|
AVMNodeDescriptor |
lookup(AVMNodeDescriptor dir,
String name)
Lookup a node descriptor from a directory node descriptor.
|
AVMNodeDescriptor |
lookup(AVMNodeDescriptor dir,
String name,
boolean includeDeleted)
Lookup a node from a directory node, with the option of seeing
Deleted Nodes.
|
AVMNodeDescriptor |
lookup(int version,
String path)
Look up information about a node.
|
AVMNodeDescriptor |
lookup(int version,
String path,
boolean includeDeleted)
Lookup a node by version ids and path, with the option of
seeing Deleted Nodes.
|
void |
makePrimary(String path)
Make the indicated directory a primary indirection.
|
void |
makeTransparent(String dirPath,
String name)
Make name in dirPath transparent to what was underneath it.
|
void |
purgeStore(String name)
Purge an AVMStore.
|
void |
purgeVersion(int version,
String name)
Purge a particular version from a repository.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
queryStorePropertyKey(String store,
org.alfresco.service.namespace.QName keyPattern)
Queries a given store for properties with keys that match a given pattern.
|
Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> |
queryStoresPropertyKeys(org.alfresco.service.namespace.QName keyPattern)
Queries all AVM stores for properties with keys that matcha given pattern.
|
void |
removeAspect(String path,
org.alfresco.service.namespace.QName aspectName)
Remove an aspect and its properties from a node.
|
void |
removeNode(String path)
Remove a node by full path.
|
void |
removeNode(String parent,
String name)
Remove a node.
|
void |
rename(String srcParent,
String srcName,
String dstParent,
String dstName)
Rename a node.
|
void |
renameStore(String sourceName,
String destName)
Rename a store.
|
void |
retargetLayeredDirectory(String path,
String target)
Change what a layered directory points to.
|
void |
revert(String path,
AVMNodeDescriptor toRevertTo)
Revert a head path to a given version.
|
void |
setAvmRepository(AVMRepository avmRepository)
Set the repository reference.
|
void |
setContentData(String path,
org.alfresco.service.cmr.repository.ContentData data)
Set the content data on a file.
|
void |
setEncoding(String path,
String encoding)
Set the encoding.
|
void |
setGuid(String path,
String guid)
Set the GUID on a node.
|
void |
setMetaDataFrom(String path,
AVMNodeDescriptor from)
Set all metadata on a node from another node.
|
void |
setMimeType(String path,
String mimeType)
Set the mime type.
|
void |
setNodeProperties(String path,
Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Set a collection of properties on a node.
|
void |
setNodeProperty(String path,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a node.
|
void |
setOpacity(String path,
boolean opacity)
Set the opacity of a layered directory.
|
void |
setStoreProperties(String store,
Map<org.alfresco.service.namespace.QName,PropertyValue> props)
Set a group of properties on a store.
|
void |
setStoreProperty(String store,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a store.
|
void |
uncover(String dirPath,
String name)
Uncover a deleted name in a layered directory.
|
void |
updateLink(String parentPath,
String name,
AVMNodeDescriptor toLink)
This replaces a node into a parent directly.
|
public static final String SYSTEM
public void setAvmRepository(AVMRepository avmRepository)
avmRepository - The repository reference.public InputStream getFileInputStream(int version, String path)
getFileInputStream in interface AVMServiceversion - The version to look under.path - The absolute path.AVMNotFoundException - When the path is invalid.public InputStream getFileInputStream(AVMNodeDescriptor desc)
getFileInputStream in interface AVMServicedesc - The descriptor.AVMNotFoundExceptionpublic OutputStream getFileOutputStream(String path)
getFileOutputStream in interface AVMServicepath - The absolute path to the file.public org.alfresco.service.cmr.repository.ContentReader getContentReader(int version,
String path)
getContentReader in interface AVMServiceversion - The version of the file.path - The path to the file.public org.alfresco.service.cmr.repository.ContentWriter getContentWriter(String path, boolean update)
getContentWriter in interface AVMServicepath - The path to the file.update - true if the property must be updated atomically when the content write
stream is closed (attaches a listener to the stream); false if the client code
will perform the updates itself.public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(int version, String path)
getDirectoryListing in interface AVMServiceversion - The version id to lookup.path - The path to lookup.public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(int version, String path, boolean includeDeleted)
getDirectoryListing in interface AVMServiceversion - The version id to look in.path - The simple absolute path to the file node.includeDeleted - Whether to see Deleted Nodes.AVMNotFoundException - If path is not found.AVMWrongTypeException - If path contains a non-terminal
component that is not a directory, or if path is not pointing
at a directory.public AVMNodeDescriptor[] getDirectoryListingArray(int version, String path, boolean includeDeleted)
getDirectoryListingArray in interface AVMServiceversion - The version to look under.path - The path to the directory to be listed.includeDeleted - Whether to include ghosts.public AVMNodeDescriptor[] getDirectoryListingArray(AVMNodeDescriptor dir, boolean includeDeleted)
getDirectoryListingArray in interface AVMServicedir - The descriptor pointing at the directory to list.includeDeleted - Whether to show ghosts.public SortedMap<String,AVMNodeDescriptor> getDirectoryListingDirect(AVMNodeDescriptor dir, boolean includeDeleted)
getDirectoryListingDirect in interface AVMServicedir - The directory descriptor.includeDeleted - Whether to include deleted children.public SortedMap<String,AVMNodeDescriptor> getDirectoryListingDirect(int version, String path)
getDirectoryListingDirect in interface AVMServiceversion - The version to look up.path - The full path to get listing for.AVMNotFoundException - If path does not exist.AVMWrongTypeException - If path contains any non-directory
elements.public SortedMap<String,AVMNodeDescriptor> getDirectoryListingDirect(int version, String path, boolean includeDeleted)
getDirectoryListingDirect in interface AVMServiceversion - The version to look up.path - The full path to get listing for.includeDeleted - Whether to see Deleted Nodes.AVMNotFoundException - If path does not exist.AVMWrongTypeException - If path contains any non-directory
elements.public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(AVMNodeDescriptor dir)
getDirectoryListing in interface AVMServicedir - The directory node descriptor.public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(AVMNodeDescriptor dir, String childPattern)
AVMServicegetDirectoryListing in interface AVMServicedir - The directory node descriptor.public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(AVMNodeDescriptor dir, String childNamePattern, boolean includeDeleted)
public SortedMap<String,AVMNodeDescriptor> getDirectoryListing(AVMNodeDescriptor dir, boolean includeDeleted)
getDirectoryListing in interface AVMServicedir - The directory node descriptor.includeDeleted - Whether to see Deleted Nodes.AVMNotFoundException - If the descriptor is stale.AVMWrongTypeException - If the descriptor does not point at a directory.public List<String> getDeleted(int version, String path)
getDeleted in interface AVMServiceversion - The version to look under.path - The path of the directory.AVMNotFoundException - If path does not exist.AVMWrongTypeException - If path contains any elements
that are not directories.public OutputStream createFile(String path, String name)
createFile in interface AVMServicepath - The path to the containing directory.name - The name of the file.public void createFile(String path, String name, InputStream in)
createFile in interface AVMServicepath - The path to the containing directory.name - The name to give the file.in - An InputStream containing data for file.public void createFile(String path, String name, InputStream in, List<org.alfresco.service.namespace.QName> aspects, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
AVMServicepath must already exist.createFile in interface AVMServicepath - The path of the directory containing the created file.name - The name of the new filein - An input stream with data for the file.properties - A map of properties to give the file.public void createDirectory(String path, String name)
createDirectory in interface AVMServicepath - The path to the containing directory.name - The name of the new directory.public void createDirectory(String path, String name, List<org.alfresco.service.namespace.QName> aspects, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
AVMServicepath is within a layer, the new directory will be a layered directory;
otherwise, the new directory will be a plain directory.createDirectory in interface AVMServicepath - The simple absolute path to the parent.name - The name to give the directory.aspects - A list of aspects to add.properties - A Map of properties to add.public void createLayeredFile(String srcPath, String parent, String name)
createLayeredFile in interface AVMServicesrcPath - The src path. Ie the target for the layering.parent - The path to the parent directory.name - The name to give the new file.public void createLayeredDirectory(String srcPath, String parent, String name)
createLayeredDirectory in interface AVMServicesrcPath - The src path. Ie the target for layering.parent - The path to the parent directory.name - The name for the new directory.public void createStore(String name)
createStore in interface AVMServicename - The name to give the AVMStore.public void createStore(String name, Map<org.alfresco.service.namespace.QName,PropertyValue> props)
createStore in interface AVMServicename - The name to give the AVMStore.props - A Map of the properties to set.public void createBranch(int version,
String srcPath,
String dstPath,
String name)
createBranch in interface AVMServiceversion - The version to branch from.srcPath - The path to the thing to branch from.dstPath - The path to the destination containing directory.name - The name of the new branch.public void removeNode(String parent, String name)
removeNode in interface AVMServiceparent - The path to the parent.name - The name of the node to remove.public void removeNode(String path)
removeNode in interface AVMServicepath - The full path to the node.public void rename(String srcParent, String srcName, String dstParent, String dstName)
rename in interface AVMServicesrcParent - The path to the source parent.srcName - The name of the source node.dstParent - The path to the destination parent.dstName - The name to give the renamed node.public void uncover(String dirPath, String name)
uncover in interface AVMServicedirPath - The path to the layered directory.name - The name to uncover.public void makeTransparent(String dirPath, String name)
makeTransparent in interface AVMServicedirPath - The path to the layered directory.name - The name of the item to flatten.public int getNextVersionID(String repName)
getNextVersionID in interface AVMServicerepName - The name of the AVMStore.public int getLatestSnapshotID(String storeName)
getLatestSnapshotID in interface AVMServicestoreName - The store name.AVMNotFoundException - If storeName does not exist.public Map<String,Integer> createSnapshot(String store, String tag, String description)
AVMServiceWhen no snapshot is actually taken, but either 'tag' or 'store' are non-null, they will override the value for the last snapshot (i.e.: the old values will be discarded); however, if both 'tag' and 'description' are null then invoking createSnapshot when no files have been modified becomes a true no-op.
createSnapshot in interface AVMServicestore - The name of the AVMStore to snapshot.tag - The short description.description - The thick description.public AVMNodeDescriptor lookup(int version, String path)
lookup in interface AVMServiceversion - The version to look up.path - The path to look up.public AVMNodeDescriptor lookup(int version, String path, boolean includeDeleted)
lookup in interface AVMServiceversion - The version id to look under.path - The simple absolute path to the parent directory.includeDeleted - Whether to see Deleted Nodes.AVMNotFoundException - If path does not exist or
if version does not exist.AVMWrongTypeException - If path contains a non-terminal
element that is not a directory.public AVMNodeDescriptor lookup(AVMNodeDescriptor dir, String name)
lookup in interface AVMServicedir - The node descriptor of the directory.name - The name to lookup.public AVMNodeDescriptor lookup(AVMNodeDescriptor dir, String name, boolean includeDeleted)
lookup in interface AVMServicedir - The descriptor for the directory node.name - The name to lookup.includeDeleted - Whether to see Deleted Nodes.AVMNotFoundException - If name does not exist or
if dir is dangling.AVMWrongTypeException - If dir does not refer to a directory.public List<org.alfresco.util.Pair<Integer,String>> getPaths(AVMNodeDescriptor desc)
getPaths in interface AVMServicedesc - The node descriptor to get paths for.public org.alfresco.util.Pair<Integer,String> getAPath(AVMNodeDescriptor desc)
AVMServicegetAPath in interface AVMServicedesc - The descriptor of the node to which a version and path will be fetched.public List<org.alfresco.util.Pair<Integer,String>> getHeadPaths(AVMNodeDescriptor desc)
getHeadPaths in interface AVMServicedesc - The node descriptor to get paths for.public List<org.alfresco.util.Pair<Integer,String>> getPathsInStoreHead(AVMNodeDescriptor desc, String store)
getPathsInStoreHead in interface AVMServicedesc - The node descriptor.store - The store.public List<String> getPathsInStoreVersion(AVMNodeDescriptor desc, String store, int version)
AVMServicegetPathsInStoreVersion in interface AVMServicedesc - The node descriptor.store - The name of the store.version - The version.public void purgeStore(String name)
purgeStore in interface AVMServicename - The name of the AVMStore to purge.public void purgeVersion(int version,
String name)
purgeVersion in interface AVMServiceversion - The id of the version to purge.name - The name of the repository.public String getIndirectionPath(int version, String path)
getIndirectionPath in interface AVMServiceversion - The version to lookup.path - The path to lookup.public List<VersionDescriptor> getStoreVersions(String name)
getStoreVersions in interface AVMServicename - The name of the AVMStore.public List<VersionDescriptor> getStoreVersions(String name, Date from, Date to)
getStoreVersions in interface AVMServicename - The name of the AVMStore to search.from - The earliest versions to return.to - The latest versions to return.public void retargetLayeredDirectory(String path, String target)
retargetLayeredDirectory in interface AVMServicepath - The path to the layered directory.target - The new indirection target of the layered directorypublic void makePrimary(String path)
makePrimary in interface AVMServicepath - The absolute path.public List<AVMStoreDescriptor> getStores()
getStores in interface AVMServicepublic AVMStoreDescriptor getStore(String name)
getStore in interface AVMServicename - The name of the AVMStore to get.public AVMStoreDescriptor getSystemStore()
getSystemStore in interface AVMServicepublic AVMNodeDescriptor getStoreRoot(int version, String name)
getStoreRoot in interface AVMServiceversion - The version to get.name - The name of the AVMStore.public List<AVMNodeDescriptor> getHistory(AVMNodeDescriptor desc, int count)
getHistory in interface AVMServicedesc - The node to get history from.count - The number of ancestors to fallow back. -1 means all.public void setOpacity(String path, boolean opacity)
setOpacity in interface AVMServicepath - The path to the layered directory.opacity - True is opaque false is not.public LayeringDescriptor getLayeringInfo(int version, String path)
getLayeringInfo in interface AVMServiceversion - The version to look under.path - The full AVM path.public AVMNodeDescriptor getCommonAncestor(AVMNodeDescriptor left, AVMNodeDescriptor right)
getCommonAncestor in interface AVMServiceleft - The first node.right - The second node.public void setNodeProperty(String path, org.alfresco.service.namespace.QName name, PropertyValue value)
setNodeProperty in interface AVMServicepath - The path to the node to set the property on.name - The QName of the property.value - The property to set.public void setNodeProperties(String path, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
setNodeProperties in interface AVMServicepath - The path to the node.properties - The Map of properties to set.public PropertyValue getNodeProperty(int version, String path, org.alfresco.service.namespace.QName name)
getNodeProperty in interface AVMServiceversion - The version to look under.path - The path to the node.name - The QName.public Map<org.alfresco.service.namespace.QName,PropertyValue> getNodeProperties(int version, String path)
getNodeProperties in interface AVMServiceversion - The version to look under.path - The path to the node.public Map<org.alfresco.service.namespace.QName,PropertyValue> getNodeProperties(AVMNodeDescriptor desc)
AVMServicegetNodeProperties in interface AVMServicedesc - The node descriptorpublic void deleteNodeProperty(String path, org.alfresco.service.namespace.QName name)
deleteNodeProperty in interface AVMServicepath - The path to the node.name - The QName of the property to delete.public void deleteNodeProperties(String path)
deleteNodeProperties in interface AVMServicepath - The path to the node.public void setStoreProperty(String store, org.alfresco.service.namespace.QName name, PropertyValue value)
setStoreProperty in interface AVMServicestore - The store to set the property on.name - The name of the property.value - The value of the property.public void setStoreProperties(String store, Map<org.alfresco.service.namespace.QName,PropertyValue> props)
setStoreProperties in interface AVMServicestore - The name of the store.props - A Map of the properties to set.public PropertyValue getStoreProperty(String store, org.alfresco.service.namespace.QName name)
getStoreProperty in interface AVMServicestore - The name of the store.name - The name of the property.public Map<org.alfresco.service.namespace.QName,PropertyValue> queryStorePropertyKey(String store, org.alfresco.service.namespace.QName keyPattern)
queryStorePropertyKey in interface AVMServicestore - The name of the store.keyPattern - The sql 'like' pattern, inserted into a QName.public Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> queryStoresPropertyKeys(org.alfresco.service.namespace.QName keyPattern)
queryStoresPropertyKeys in interface AVMServicekeyPattern - The sql 'like' pattern, inserted into a QName.public Map<org.alfresco.service.namespace.QName,PropertyValue> getStoreProperties(String store)
getStoreProperties in interface AVMServicestore - The name of the store.public void deleteStoreProperty(String store, org.alfresco.service.namespace.QName name)
deleteStoreProperty in interface AVMServicestore - The name of the store.name - The name of the property to delete.public org.alfresco.service.cmr.repository.ContentData getContentDataForRead(int version,
String path)
getContentDataForRead in interface AVMServiceversion - The version to look under.path - The path to the node.public org.alfresco.service.cmr.repository.ContentData getContentDataForRead(AVMNodeDescriptor desc)
AVMServicegetContentDataForRead in interface AVMServicedesc - The node descriptor.public org.alfresco.service.cmr.repository.ContentData getContentDataForWrite(String path)
getContentDataForWrite in interface AVMServicepath - The path to the node.public void setContentData(String path, org.alfresco.service.cmr.repository.ContentData data)
setContentData in interface AVMServicepath - The path to the file.data - The ContentData to set.AVMNotFoundException - If path does not exist.AVMWrongTypeException - If path does not point
to a file.public void setMetaDataFrom(String path, AVMNodeDescriptor from)
setMetaDataFrom in interface AVMServicepath - The path to the node to set.from - The descriptor for the node to get metadata from.public void addAspect(String path, org.alfresco.service.namespace.QName aspectName)
addAspect in interface AVMServicepath - The path to the node.aspectName - The QName of the aspect.AVMNotFoundException - If path does not exist.AVMExistsException - If the aspect already exists.public Set<org.alfresco.service.namespace.QName> getAspects(int version, String path)
getAspects in interface AVMServiceversion - The version to look under.path - The path to the node.public Set<org.alfresco.service.namespace.QName> getAspects(AVMNodeDescriptor desc)
AVMServicegetAspects in interface AVMServicedesc - The node descriptor.public void removeAspect(String path, org.alfresco.service.namespace.QName aspectName)
removeAspect in interface AVMServicepath - The path to the node.aspectName - The name of the aspect.public boolean hasAspect(int version,
String path,
org.alfresco.service.namespace.QName aspectName)
hasAspect in interface AVMServiceversion - The version to look under.path - The path to the node.aspectName - The aspect name to check.public void link(String parentPath, String name, AVMNodeDescriptor toLink)
link in interface AVMServiceparentPath - The path to the parent directory.name - The name to give the node.toLink - A descriptor for the node to insert.public void updateLink(String parentPath, String name, AVMNodeDescriptor toLink)
updateLink in interface AVMServiceparentPath - The path to the parent directory.name - The name to give the node.toLink - A descriptor for the node to insert.public AVMNodeDescriptor forceCopy(String path)
forceCopy in interface AVMServicepath - The path to force.public void copy(int srcVersion,
String srcPath,
String dstPath,
String name)
copy in interface AVMServicesrcVersion - The version of the source.srcPath - The path to the source.dstPath - The destination directory.name - The name to give the copy.public void renameStore(String sourceName, String destName)
renameStore in interface AVMServicesourceName - The original name.destName - The new name.AVMNotFoundExceptionAVMExistsExceptionpublic void revert(String path, AVMNodeDescriptor toRevertTo)
revert in interface AVMServicepath - The path to the node to revert.toRevertTo - The descriptor of the version to revert to.AVMNotFoundExceptionpublic void setGuid(String path, String guid)
AVMServicesetGuid in interface AVMServicepath - The path to the node.guid - The GUID to set.public void setEncoding(String path, String encoding)
AVMServicesetEncoding in interface AVMServicepath - The path of the file.encoding - The encoding.public void setMimeType(String path, String mimeType)
AVMServicesetMimeType in interface AVMServicepath - The path of the file.mimeType - The mime type.public List<VersionDescriptor> getStoreVersionsTo(String name, int version)
AVMServicegetStoreVersionsTo in interface AVMServicepublic List<VersionDescriptor> getStoreVersionsFrom(String name, int version)
AVMServicegetStoreVersionsFrom in interface AVMServicepublic List<VersionDescriptor> getStoreVersionsBetween(String name, int startVersion, int endVersion)
AVMServicegetStoreVersionsBetween in interface AVMServiceCopyright © 2005–2014 Alfresco Software. All rights reserved.