|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.avm.AVMServiceImpl
public class AVMServiceImpl
Implements the AVMService.
Field Summary | |
---|---|
static java.lang.String |
SYSTEM
|
Constructor Summary | |
---|---|
AVMServiceImpl()
Basic constructor for the service. |
Method Summary | |
---|---|
void |
addAspect(java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Add an aspect to an AVM node. |
void |
copy(int srcVersion,
java.lang.String srcPath,
java.lang.String dstPath,
java.lang.String name)
Copy (possibly recursively) the source into the destination directory. |
void |
createBranch(int version,
java.lang.String srcPath,
java.lang.String dstPath,
java.lang.String name)
Create a branch. |
void |
createDirectory(java.lang.String path,
java.lang.String name)
Create a directory. |
void |
createDirectory(java.lang.String path,
java.lang.String name,
java.util.List aspects,
java.util.Map properties)
Create a new directory with aspects and properties. |
java.io.OutputStream |
createFile(java.lang.String path,
java.lang.String name)
Create a new file. |
void |
createFile(java.lang.String path,
java.lang.String name,
java.io.InputStream in)
Create a file with content specified by the InputStream. |
void |
createFile(java.lang.String path,
java.lang.String name,
java.io.InputStream in,
java.util.List aspects,
java.util.Map properties)
Create a new "plain" (non-layered) file with aspects and properties. |
void |
createLayeredDirectory(java.lang.String srcPath,
java.lang.String parent,
java.lang.String name)
Create a new layered directory. |
void |
createLayeredFile(java.lang.String srcPath,
java.lang.String parent,
java.lang.String name)
Create a new layered file. |
java.util.Map |
createSnapshot(java.lang.String store,
java.lang.String tag,
java.lang.String description)
Snapshot the given AVMStore. |
void |
createStore(java.lang.String name)
Create an AVMStore with the given name (it must not exist). |
void |
createStore(java.lang.String name,
java.util.Map props)
Create an AVMStore with the given name (it must not exist) and set store properties. |
void |
deleteNodeProperties(java.lang.String path)
Delete all the properties attached to an AVM node. |
void |
deleteNodeProperty(java.lang.String path,
org.alfresco.service.namespace.QName name)
Delete a property. |
void |
deleteStoreProperty(java.lang.String store,
org.alfresco.service.namespace.QName name)
Delete a property on a store by name. |
AVMNodeDescriptor |
forceCopy(java.lang.String path)
Force copy on write of a path. |
org.alfresco.util.Pair |
getAPath(AVMNodeDescriptor desc)
Get a single valid path to a given node. |
java.util.Set |
getAspects(AVMNodeDescriptor desc)
Get all the aspects from a node descriptor. |
java.util.Set |
getAspects(int version,
java.lang.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,
java.lang.String path)
Get the ContentData for a node. |
org.alfresco.service.cmr.repository.ContentData |
getContentDataForWrite(java.lang.String path)
Get the Content data for writing. |
org.alfresco.service.cmr.repository.ContentReader |
getContentReader(int version,
java.lang.String path)
Get a content reader from a file node. |
org.alfresco.service.cmr.repository.ContentWriter |
getContentWriter(java.lang.String path,
boolean update)
Get a ContentWriter to a file node. |
java.util.List |
getDeleted(int version,
java.lang.String path)
Get the names of nodes that have been deleted in a directory. |
java.util.SortedMap |
getDirectoryListing(AVMNodeDescriptor dir)
Get a directory listing from a node descriptor. |
java.util.SortedMap |
getDirectoryListing(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a directory listing from a node descriptor, with the option of seeing deleted nodes. |
java.util.SortedMap |
getDirectoryListing(AVMNodeDescriptor dir,
java.lang.String childPattern)
Get a non-recursive directory listing of a directory node identified by a node descriptor. |
java.util.SortedMap |
getDirectoryListing(AVMNodeDescriptor dir,
java.lang.String childNamePattern,
boolean includeDeleted)
|
java.util.SortedMap |
getDirectoryListing(int version,
java.lang.String path)
Get a directory listing. |
java.util.SortedMap |
getDirectoryListing(int version,
java.lang.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,
java.lang.String path,
boolean includeDeleted)
Get a directory listing as an Array of AVMNodeDescriptors. |
java.util.SortedMap |
getDirectoryListingDirect(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of all the directly contained children of a directory. |
java.util.SortedMap |
getDirectoryListingDirect(int version,
java.lang.String path)
Get the listing of nodes contained directly in a directory. |
java.util.SortedMap |
getDirectoryListingDirect(int version,
java.lang.String path,
boolean includeDeleted)
Get the listing of nodes contained directly in a directory. |
java.io.InputStream |
getFileInputStream(AVMNodeDescriptor desc)
Get an InputStream from a descriptor. |
java.io.InputStream |
getFileInputStream(int version,
java.lang.String path)
Get an InputStream from a file. |
java.io.OutputStream |
getFileOutputStream(java.lang.String path)
Get an output stream to a file. |
java.util.List |
getHeadPaths(AVMNodeDescriptor desc)
Get all paths that a given node has that are in the head version. |
java.util.List |
getHistory(AVMNodeDescriptor desc,
int count)
Get the history of a node. |
java.lang.String |
getIndirectionPath(int version,
java.lang.String path)
Get the indirection path of a layered node. |
int |
getLatestSnapshotID(java.lang.String storeName)
Get the latest snapshot id of a store. |
LayeringDescriptor |
getLayeringInfo(int version,
java.lang.String path)
Get layering information about a path. |
int |
getNextVersionID(java.lang.String repName)
Get the Latest Version ID for an AVMStore. |
java.util.Map |
getNodeProperties(AVMNodeDescriptor desc)
Get all the properties associated with a node identified by a descriptor. |
java.util.Map |
getNodeProperties(int version,
java.lang.String path)
Get all the properties associated with a node. |
PropertyValue |
getNodeProperty(int version,
java.lang.String path,
org.alfresco.service.namespace.QName name)
Get a property of a node by QName. |
java.util.List |
getPaths(AVMNodeDescriptor desc)
Get a list of all paths that a given node has. |
java.util.List |
getPathsInStoreHead(AVMNodeDescriptor desc,
java.lang.String store)
Get all paths to a node starting at the HEAD version of a store. |
java.util.List |
getPathsInStoreVersion(AVMNodeDescriptor desc,
java.lang.String store,
int version)
Get all paths to a given node in a single store in a single non-head version. |
AVMStoreDescriptor |
getStore(java.lang.String name)
Get a reposotory. |
java.util.Map |
getStoreProperties(java.lang.String store)
Get all the properties associated with a store. |
PropertyValue |
getStoreProperty(java.lang.String store,
org.alfresco.service.namespace.QName name)
Get a property from a store. |
AVMNodeDescriptor |
getStoreRoot(int version,
java.lang.String name)
Get a descriptor for the specified AVMStore root. |
java.util.List |
getStores()
Get a list of all AVMStores. |
java.util.List |
getStoreVersions(java.lang.String name)
Get the extant version ids for an AVMStore. |
java.util.List |
getStoreVersions(java.lang.String name,
java.util.Date from,
java.util.Date to)
Get version IDs by creation date. |
java.util.List |
getStoreVersionsBetween(java.lang.String name,
int startVersion,
int endVersion)
Get all versions from an including startVersion up to but NOT including endVersion |
java.util.List |
getStoreVersionsFrom(java.lang.String name,
int version)
Get all versions from the last down to and including the one specified Returned in descending version id. |
java.util.List |
getStoreVersionsTo(java.lang.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,
java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Does a node have a particular aspect. |
void |
link(java.lang.String parentPath,
java.lang.String name,
AVMNodeDescriptor toLink)
This inserts a node into a parent directly. |
AVMNodeDescriptor |
lookup(AVMNodeDescriptor dir,
java.lang.String name)
Lookup a node descriptor from a directory node descriptor. |
AVMNodeDescriptor |
lookup(AVMNodeDescriptor dir,
java.lang.String name,
boolean includeDeleted)
Lookup a node from a directory node, with the option of seeing Deleted Nodes. |
AVMNodeDescriptor |
lookup(int version,
java.lang.String path)
Look up information about a node. |
AVMNodeDescriptor |
lookup(int version,
java.lang.String path,
boolean includeDeleted)
Lookup a node by version ids and path, with the option of seeing Deleted Nodes. |
void |
makePrimary(java.lang.String path)
Make the indicated directory a primary indirection. |
void |
makeTransparent(java.lang.String dirPath,
java.lang.String name)
Make name in dirPath transparent to what was underneath it. |
void |
purgeStore(java.lang.String name)
Purge an AVMStore. |
void |
purgeVersion(int version,
java.lang.String name)
Purge a particular version from a repository. |
java.util.Map |
queryStorePropertyKey(java.lang.String store,
org.alfresco.service.namespace.QName keyPattern)
Queries a given store for properties with keys that match a given pattern. |
java.util.Map |
queryStoresPropertyKeys(org.alfresco.service.namespace.QName keyPattern)
Queries all AVM stores for properties with keys that matcha given pattern. |
void |
removeAspect(java.lang.String path,
org.alfresco.service.namespace.QName aspectName)
Remove an aspect and its properties from a node. |
void |
removeNode(java.lang.String path)
Remove a node by full path. |
void |
removeNode(java.lang.String parent,
java.lang.String name)
Remove a node. |
void |
rename(java.lang.String srcParent,
java.lang.String srcName,
java.lang.String dstParent,
java.lang.String dstName)
Rename a node. |
void |
renameStore(java.lang.String sourceName,
java.lang.String destName)
Rename a store. |
void |
retargetLayeredDirectory(java.lang.String path,
java.lang.String target)
Change what a layered directory points to. |
void |
revert(java.lang.String path,
AVMNodeDescriptor toRevertTo)
Revert a head path to a given version. |
void |
setAvmRepository(AVMRepository avmRepository)
Set the repository reference. |
void |
setContentData(java.lang.String path,
org.alfresco.service.cmr.repository.ContentData data)
Set the content data on a file. |
void |
setEncoding(java.lang.String path,
java.lang.String encoding)
Set the encoding. |
void |
setGuid(java.lang.String path,
java.lang.String guid)
Set the GUID on a node. |
void |
setMetaDataFrom(java.lang.String path,
AVMNodeDescriptor from)
Set all metadata on a node from another node. |
void |
setMimeType(java.lang.String path,
java.lang.String mimeType)
Set the mime type. |
void |
setNodeProperties(java.lang.String path,
java.util.Map properties)
Set a collection of properties on a node. |
void |
setNodeProperty(java.lang.String path,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a node. |
void |
setOpacity(java.lang.String path,
boolean opacity)
Set the opacity of a layered directory. |
void |
setStoreProperties(java.lang.String store,
java.util.Map props)
Set a group of properties on a store. |
void |
setStoreProperty(java.lang.String store,
org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on a store. |
void |
uncover(java.lang.String dirPath,
java.lang.String name)
Uncover a deleted name in a layered directory. |
void |
updateLink(java.lang.String parentPath,
java.lang.String name,
AVMNodeDescriptor toLink)
This replaces a node into a parent directly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSTEM
Constructor Detail |
---|
public AVMServiceImpl()
Method Detail |
---|
public void setAvmRepository(AVMRepository avmRepository)
avmRepository
- The repository reference.public java.io.InputStream getFileInputStream(int version, java.lang.String path)
getFileInputStream
in interface AVMService
version
- The version to look under.path
- The absolute path.
AVMNotFoundException
- When the path is invalid.public java.io.InputStream getFileInputStream(AVMNodeDescriptor desc)
getFileInputStream
in interface AVMService
desc
- The descriptor.
AVMNotFoundException
public java.io.OutputStream getFileOutputStream(java.lang.String path)
getFileOutputStream
in interface AVMService
path
- The absolute path to the file.public org.alfresco.service.cmr.repository.ContentReader getContentReader(int version, java.lang.String path)
getContentReader
in interface AVMService
version
- The version of the file.path
- The path to the file.
public org.alfresco.service.cmr.repository.ContentWriter getContentWriter(java.lang.String path, boolean update)
getContentWriter
in interface AVMService
path
- 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 java.util.SortedMap getDirectoryListing(int version, java.lang.String path)
getDirectoryListing
in interface AVMService
version
- The version id to lookup.path
- The path to lookup.
public java.util.SortedMap getDirectoryListing(int version, java.lang.String path, boolean includeDeleted)
getDirectoryListing
in interface AVMService
version
- 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, java.lang.String path, boolean includeDeleted)
getDirectoryListingArray
in interface AVMService
version
- 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 AVMService
dir
- The descriptor pointing at the directory to list.includeDeleted
- Whether to show ghosts.
public java.util.SortedMap getDirectoryListingDirect(AVMNodeDescriptor dir, boolean includeDeleted)
getDirectoryListingDirect
in interface AVMService
dir
- The directory descriptor.includeDeleted
- Whether to include deleted children.
public java.util.SortedMap getDirectoryListingDirect(int version, java.lang.String path)
getDirectoryListingDirect
in interface AVMService
version
- 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 java.util.SortedMap getDirectoryListingDirect(int version, java.lang.String path, boolean includeDeleted)
getDirectoryListingDirect
in interface AVMService
version
- 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 java.util.SortedMap getDirectoryListing(AVMNodeDescriptor dir)
getDirectoryListing
in interface AVMService
dir
- The directory node descriptor.
public java.util.SortedMap getDirectoryListing(AVMNodeDescriptor dir, java.lang.String childPattern)
AVMService
getDirectoryListing
in interface AVMService
dir
- The directory node descriptor.
public java.util.SortedMap getDirectoryListing(AVMNodeDescriptor dir, java.lang.String childNamePattern, boolean includeDeleted)
public java.util.SortedMap getDirectoryListing(AVMNodeDescriptor dir, boolean includeDeleted)
getDirectoryListing
in interface AVMService
dir
- 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 java.util.List getDeleted(int version, java.lang.String path)
getDeleted
in interface AVMService
version
- 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 java.io.OutputStream createFile(java.lang.String path, java.lang.String name)
createFile
in interface AVMService
path
- The path to the containing directory.name
- The name of the file.
public void createFile(java.lang.String path, java.lang.String name, java.io.InputStream in)
createFile
in interface AVMService
path
- The path to the containing directory.name
- The name to give the file.in
- An InputStream containing data for file.public void createFile(java.lang.String path, java.lang.String name, java.io.InputStream in, java.util.List aspects, java.util.Map properties)
AVMService
path
must already exist.
createFile
in interface AVMService
path
- 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(java.lang.String path, java.lang.String name)
createDirectory
in interface AVMService
path
- The path to the containing directory.name
- The name of the new directory.public void createDirectory(java.lang.String path, java.lang.String name, java.util.List aspects, java.util.Map properties)
AVMService
path
is within a layer, the new directory will be a layered directory;
otherwise, the new directory will be a plain directory.
createDirectory
in interface AVMService
path
- 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(java.lang.String srcPath, java.lang.String parent, java.lang.String name)
createLayeredFile
in interface AVMService
srcPath
- 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(java.lang.String srcPath, java.lang.String parent, java.lang.String name)
createLayeredDirectory
in interface AVMService
srcPath
- 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(java.lang.String name)
createStore
in interface AVMService
name
- The name to give the AVMStore.public void createStore(java.lang.String name, java.util.Map props)
createStore
in interface AVMService
name
- The name to give the AVMStore.props
- A Map of the properties to set.public void createBranch(int version, java.lang.String srcPath, java.lang.String dstPath, java.lang.String name)
createBranch
in interface AVMService
version
- 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(java.lang.String parent, java.lang.String name)
removeNode
in interface AVMService
parent
- The path to the parent.name
- The name of the node to remove.public void removeNode(java.lang.String path)
removeNode
in interface AVMService
path
- The full path to the node.public void rename(java.lang.String srcParent, java.lang.String srcName, java.lang.String dstParent, java.lang.String dstName)
rename
in interface AVMService
srcParent
- 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(java.lang.String dirPath, java.lang.String name)
uncover
in interface AVMService
dirPath
- The path to the layered directory.name
- The name to uncover.public void makeTransparent(java.lang.String dirPath, java.lang.String name)
makeTransparent
in interface AVMService
dirPath
- The path to the layered directory.name
- The name of the item to flatten.public int getNextVersionID(java.lang.String repName)
getNextVersionID
in interface AVMService
repName
- The name of the AVMStore.
public int getLatestSnapshotID(java.lang.String storeName)
getLatestSnapshotID
in interface AVMService
storeName
- The store name.
AVMNotFoundException
- If storeName
does not exist.public java.util.Map createSnapshot(java.lang.String store, java.lang.String tag, java.lang.String description)
AVMService
When 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 AVMService
store
- The name of the AVMStore to snapshot.tag
- The short description.description
- The thick description.
public AVMNodeDescriptor lookup(int version, java.lang.String path)
lookup
in interface AVMService
version
- The version to look up.path
- The path to look up.
public AVMNodeDescriptor lookup(int version, java.lang.String path, boolean includeDeleted)
lookup
in interface AVMService
version
- 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, java.lang.String name)
lookup
in interface AVMService
dir
- The node descriptor of the directory.name
- The name to lookup.
public AVMNodeDescriptor lookup(AVMNodeDescriptor dir, java.lang.String name, boolean includeDeleted)
lookup
in interface AVMService
dir
- 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 java.util.List getPaths(AVMNodeDescriptor desc)
getPaths
in interface AVMService
desc
- The node descriptor to get paths for.
public org.alfresco.util.Pair getAPath(AVMNodeDescriptor desc)
AVMService
getAPath
in interface AVMService
desc
- The descriptor of the node to which a version and path will be fetched.
public java.util.List getHeadPaths(AVMNodeDescriptor desc)
getHeadPaths
in interface AVMService
desc
- The node descriptor to get paths for.
public java.util.List getPathsInStoreHead(AVMNodeDescriptor desc, java.lang.String store)
getPathsInStoreHead
in interface AVMService
desc
- The node descriptor.store
- The store.
public java.util.List getPathsInStoreVersion(AVMNodeDescriptor desc, java.lang.String store, int version)
AVMService
getPathsInStoreVersion
in interface AVMService
desc
- The node descriptor.store
- The name of the store.version
- The version.
public void purgeStore(java.lang.String name)
purgeStore
in interface AVMService
name
- The name of the AVMStore to purge.public void purgeVersion(int version, java.lang.String name)
purgeVersion
in interface AVMService
version
- The id of the version to purge.name
- The name of the repository.public java.lang.String getIndirectionPath(int version, java.lang.String path)
getIndirectionPath
in interface AVMService
version
- The version to lookup.path
- The path to lookup.
public java.util.List getStoreVersions(java.lang.String name)
getStoreVersions
in interface AVMService
name
- The name of the AVMStore.
public java.util.List getStoreVersions(java.lang.String name, java.util.Date from, java.util.Date to)
getStoreVersions
in interface AVMService
name
- The name of the AVMStore to search.from
- The earliest versions to return.to
- The latest versions to return.
public void retargetLayeredDirectory(java.lang.String path, java.lang.String target)
retargetLayeredDirectory
in interface AVMService
path
- The path to the layered directory.target
- The new indirection target of the layered directorypublic void makePrimary(java.lang.String path)
makePrimary
in interface AVMService
path
- The absolute path.public java.util.List getStores()
getStores
in interface AVMService
public AVMStoreDescriptor getStore(java.lang.String name)
getStore
in interface AVMService
name
- The name of the AVMStore to get.
public AVMStoreDescriptor getSystemStore()
getSystemStore
in interface AVMService
public AVMNodeDescriptor getStoreRoot(int version, java.lang.String name)
getStoreRoot
in interface AVMService
version
- The version to get.name
- The name of the AVMStore.
public java.util.List getHistory(AVMNodeDescriptor desc, int count)
getHistory
in interface AVMService
desc
- The node to get history from.count
- The number of ancestors to fallow back. -1 means all.
public void setOpacity(java.lang.String path, boolean opacity)
setOpacity
in interface AVMService
path
- The path to the layered directory.opacity
- True is opaque false is not.public LayeringDescriptor getLayeringInfo(int version, java.lang.String path)
getLayeringInfo
in interface AVMService
version
- The version to look under.path
- The full AVM path.
public AVMNodeDescriptor getCommonAncestor(AVMNodeDescriptor left, AVMNodeDescriptor right)
getCommonAncestor
in interface AVMService
left
- The first node.right
- The second node.
public void setNodeProperty(java.lang.String path, org.alfresco.service.namespace.QName name, PropertyValue value)
setNodeProperty
in interface AVMService
path
- The path to the node to set the property on.name
- The QName of the property.value
- The property to set.public void setNodeProperties(java.lang.String path, java.util.Map properties)
setNodeProperties
in interface AVMService
path
- The path to the node.properties
- The Map of properties to set.public PropertyValue getNodeProperty(int version, java.lang.String path, org.alfresco.service.namespace.QName name)
getNodeProperty
in interface AVMService
version
- The version to look under.path
- The path to the node.name
- The QName.
public java.util.Map getNodeProperties(int version, java.lang.String path)
getNodeProperties
in interface AVMService
version
- The version to look under.path
- The path to the node.
public java.util.Map getNodeProperties(AVMNodeDescriptor desc)
AVMService
getNodeProperties
in interface AVMService
desc
- The node descriptor
public void deleteNodeProperty(java.lang.String path, org.alfresco.service.namespace.QName name)
deleteNodeProperty
in interface AVMService
path
- The path to the node.name
- The QName of the property to delete.public void deleteNodeProperties(java.lang.String path)
deleteNodeProperties
in interface AVMService
path
- The path to the node.public void setStoreProperty(java.lang.String store, org.alfresco.service.namespace.QName name, PropertyValue value)
setStoreProperty
in interface AVMService
store
- The store to set the property on.name
- The name of the property.value
- The value of the property.public void setStoreProperties(java.lang.String store, java.util.Map props)
setStoreProperties
in interface AVMService
store
- The name of the store.props
- A Map of the properties to set.public PropertyValue getStoreProperty(java.lang.String store, org.alfresco.service.namespace.QName name)
getStoreProperty
in interface AVMService
store
- The name of the store.name
- The name of the property.
public java.util.Map queryStorePropertyKey(java.lang.String store, org.alfresco.service.namespace.QName keyPattern)
queryStorePropertyKey
in interface AVMService
store
- The name of the store.keyPattern
- The sql 'like' pattern, inserted into a QName.
public java.util.Map queryStoresPropertyKeys(org.alfresco.service.namespace.QName keyPattern)
queryStoresPropertyKeys
in interface AVMService
keyPattern
- The sql 'like' pattern, inserted into a QName.
public java.util.Map getStoreProperties(java.lang.String store)
getStoreProperties
in interface AVMService
store
- The name of the store.
public void deleteStoreProperty(java.lang.String store, org.alfresco.service.namespace.QName name)
deleteStoreProperty
in interface AVMService
store
- The name of the store.name
- The name of the property to delete.public org.alfresco.service.cmr.repository.ContentData getContentDataForRead(int version, java.lang.String path)
getContentDataForRead
in interface AVMService
version
- The version to look under.path
- The path to the node.
public org.alfresco.service.cmr.repository.ContentData getContentDataForRead(AVMNodeDescriptor desc)
AVMService
getContentDataForRead
in interface AVMService
desc
- The node descriptor.
public org.alfresco.service.cmr.repository.ContentData getContentDataForWrite(java.lang.String path)
getContentDataForWrite
in interface AVMService
path
- The path to the node.
public void setContentData(java.lang.String path, org.alfresco.service.cmr.repository.ContentData data)
setContentData
in interface AVMService
path
- 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(java.lang.String path, AVMNodeDescriptor from)
setMetaDataFrom
in interface AVMService
path
- The path to the node to set.from
- The descriptor for the node to get metadata from.public void addAspect(java.lang.String path, org.alfresco.service.namespace.QName aspectName)
addAspect
in interface AVMService
path
- The path to the node.aspectName
- The QName of the aspect.
AVMNotFoundException
- If path
does not exist.
AVMExistsException
- If the aspect already exists.public java.util.Set getAspects(int version, java.lang.String path)
getAspects
in interface AVMService
version
- The version to look under.path
- The path to the node.
public java.util.Set getAspects(AVMNodeDescriptor desc)
AVMService
getAspects
in interface AVMService
desc
- The node descriptor.
public void removeAspect(java.lang.String path, org.alfresco.service.namespace.QName aspectName)
removeAspect
in interface AVMService
path
- The path to the node.aspectName
- The name of the aspect.public boolean hasAspect(int version, java.lang.String path, org.alfresco.service.namespace.QName aspectName)
hasAspect
in interface AVMService
version
- The version to look under.path
- The path to the node.aspectName
- The aspect name to check.
public void link(java.lang.String parentPath, java.lang.String name, AVMNodeDescriptor toLink)
link
in interface AVMService
parentPath
- The path to the parent directory.name
- The name to give the node.toLink
- A descriptor for the node to insert.public void updateLink(java.lang.String parentPath, java.lang.String name, AVMNodeDescriptor toLink)
updateLink
in interface AVMService
parentPath
- The path to the parent directory.name
- The name to give the node.toLink
- A descriptor for the node to insert.public AVMNodeDescriptor forceCopy(java.lang.String path)
forceCopy
in interface AVMService
path
- The path to force.public void copy(int srcVersion, java.lang.String srcPath, java.lang.String dstPath, java.lang.String name)
copy
in interface AVMService
srcVersion
- 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(java.lang.String sourceName, java.lang.String destName)
renameStore
in interface AVMService
sourceName
- The original name.destName
- The new name.
AVMNotFoundException
AVMExistsException
public void revert(java.lang.String path, AVMNodeDescriptor toRevertTo)
revert
in interface AVMService
path
- The path to the node to revert.toRevertTo
- The descriptor of the version to revert to.
AVMNotFoundException
public void setGuid(java.lang.String path, java.lang.String guid)
AVMService
setGuid
in interface AVMService
path
- The path to the node.guid
- The GUID to set.public void setEncoding(java.lang.String path, java.lang.String encoding)
AVMService
setEncoding
in interface AVMService
path
- The path of the file.encoding
- The encoding.public void setMimeType(java.lang.String path, java.lang.String mimeType)
AVMService
setMimeType
in interface AVMService
path
- The path of the file.mimeType
- The mime type.public java.util.List getStoreVersionsTo(java.lang.String name, int version)
AVMService
getStoreVersionsTo
in interface AVMService
public java.util.List getStoreVersionsFrom(java.lang.String name, int version)
AVMService
getStoreVersionsFrom
in interface AVMService
public java.util.List getStoreVersionsBetween(java.lang.String name, int startVersion, int endVersion)
AVMService
getStoreVersionsBetween
in interface AVMService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |