public interface AVMStore
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(String path,
org.alfresco.service.namespace.QName aspectName)
Add an aspect to a node.
|
org.alfresco.service.cmr.repository.ContentWriter |
createContentWriter(String path,
boolean update)
Get a ContentWriter to a file.
|
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.
|
OutputStream |
createFile(String path,
String name)
Create a new file.
|
void |
createFile(String path,
String name,
File data,
List<org.alfresco.service.namespace.QName> aspects,
Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Create a file with the given contents.
|
void |
createLayeredDirectory(String srcPath,
String dstPath,
String name)
Create a new layered directory.
|
void |
createLayeredFile(String srcPath,
String dstPath,
String name)
Create a new layered file.
|
Map<String,Integer> |
createSnapshot(String tag,
String Description,
Map<String,Integer> snapShotMap)
Snapshots this store.
|
void |
deleteNodeProperties(String path)
Delete all properties from a node.
|
void |
deleteNodeProperty(String path,
org.alfresco.service.namespace.QName name)
Delete a single property from a node.
|
void |
deleteProperty(org.alfresco.service.namespace.QName name)
Delete a property.
|
Acl |
getACL(int version,
String path)
Get the ACL on a node.
|
Set<org.alfresco.service.namespace.QName> |
getAspects(int version,
String path)
Get all aspects on a given node.
|
AVMRepository |
getAVMRepository()
Get the AVMRepository.
|
org.alfresco.service.cmr.repository.ContentData |
getContentDataForRead(int version,
String path)
Get the ContentData on a file.
|
org.alfresco.service.cmr.repository.ContentData |
getContentDataForWrite(String path)
Get the ContentData for writing.
|
org.alfresco.service.cmr.repository.ContentReader |
getContentReader(int version,
String path)
Get a ContentReader from a file.
|
List<String> |
getDeleted(int version,
String path)
Get the names of the deleted nodes in a directory.
|
AVMStoreDescriptor |
getDescriptor()
Get the descriptor for this.
|
long |
getId()
Get the primary key.
|
String |
getIndirectionPath(int version,
String path)
For a layered node, get its indirection.
|
InputStream |
getInputStream(int version,
String path)
Get an InputStream from a file.
|
int |
getLastVersionID()
This gets the last extant version id.
|
SortedMap<String,AVMNodeDescriptor> |
getListing(int version,
String path,
boolean includeDeleted)
Get a listing of the designated directory.
|
SortedMap<String,AVMNodeDescriptor> |
getListingDirect(int version,
String path,
boolean includeDeleted)
Get the list of nodes directly contained in a directory.
|
String |
getName()
Get the name of this store.
|
int |
getNextVersionID()
This returns the next version in this store that will be snapshotted.
|
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 by name.
|
OutputStream |
getOutputStream(String path)
Get an output stream to a file.
|
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getProperties()
Get all the properties associated with this node.
|
PropertyValue |
getProperty(org.alfresco.service.namespace.QName name)
Get a property by name.
|
DirectoryNode |
getRoot()
Get the root directory of this AVMStore.
|
AVMNodeDescriptor |
getRoot(int version)
Get the specified root as a descriptor.
|
Acl |
getStoreAcl()
Get the Acl associated with this store.
|
List<VersionDescriptor> |
getVersions()
Get all the version for this AVMStore.
|
List<VersionDescriptor> |
getVersions(Date from,
Date to)
Get the versions from between the given dates.
|
List<VersionDescriptor> |
getVersionsBetween(int startVersion,
int endVersion)
Get all versions from an including startVersion up to but NOT including endVersion
|
List<VersionDescriptor> |
getVersionsFrom(int version)
Get all the versions starting from the last until the version specified
|
List<VersionDescriptor> |
getVersionsTo(int version)
Get all the versions after and including the one specified
|
boolean |
hasAspect(int version,
String path,
org.alfresco.service.namespace.QName aspectName)
Does a given node have a given aspect.
|
void |
link(String parentPath,
String name,
AVMNodeDescriptor toLink)
Link a node into a directory, directly.
|
org.alfresco.repo.avm.Lookup |
lookup(int version,
String path,
boolean write,
boolean includeDeleted)
Lookup a node.
|
org.alfresco.repo.avm.Lookup |
lookupDirectory(int version,
String path,
boolean write)
Lookup a directory.
|
void |
makePrimary(String path)
Make the indicated directory a primary indirection.
|
void |
purgeVersion(int version)
Purge all the nodes reachable only by the given version.
|
void |
removeAspect(String path,
org.alfresco.service.namespace.QName aspectName)
Remove an aspect and all its properties from a node.
|
void |
removeNode(String path,
String name)
Remove a node and all of its contents.
|
void |
retargetLayeredDirectory(String path,
String target)
Change the target of a layered directory.
|
void |
revert(String path,
String name,
AVMNodeDescriptor toRevertTo)
Revert a head path to a given version.
|
void |
setACL(String path,
Acl acl)
Set the ACL on a node.
|
void |
setContentData(String path,
org.alfresco.service.cmr.repository.ContentData data)
Set the ContentData for a file.
|
void |
setEncoding(String path,
String encoding)
Set the encoding of a file.
|
void |
setGuid(String path,
String guid)
Set the GUID on a node.
|
void |
setMetaDataFrom(String path,
AVMNode from)
Set meta data, aspects, properties, acls, from another node.
|
void |
setMimeType(String path,
String mimeType)
Set the mime type of a file.
|
void |
setName(String name)
Set the name of the store.
|
void |
setNewRoot(DirectoryNode root)
Set a new root for this store.
|
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 |
setProperties(Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
Set a group of properties on this store.
|
void |
setProperty(org.alfresco.service.namespace.QName name,
PropertyValue value)
Set a property on this store.
|
void |
setStoreAcl(Acl acl)
Set the acl on this store.
|
void |
uncover(String dirPath,
String name)
Uncover a whited out node.
|
void |
updateLink(String parentPath,
String name,
AVMNodeDescriptor toLink)
Update a link to a node in a directory, directly.
|
long getId()
int getNextVersionID()
int getLastVersionID()
void setNewRoot(DirectoryNode root)
root - The root to set.Acl getStoreAcl()
void setStoreAcl(Acl acl)
acl - Map<String,Integer> createSnapshot(String tag, String Description, Map<String,Integer> snapShotMap)
tag - The short description.description - The long description.snapShotMap - Keeps track of snapshot ids for all stores that
end up snapshotted, possibly recursively.void createDirectory(String path, String name, List<org.alfresco.service.namespace.QName> aspects, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
path - The path to the parent directory.name - The name to give the new directory.void createLayeredDirectory(String srcPath, String dstPath, String name)
srcPath - The path that the new layered directory will point at.dstPath - The path to the directory to create the new layered directory in.name - The name of the new layered directory.OutputStream createFile(String path, String name)
path - The path to the directory to contain the new file.name - The name to give the new file.void createFile(String path, String name, File data, List<org.alfresco.service.namespace.QName> aspects, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
path - The path to the containing directory.name - The name to give the file.data - The contents of the file.void createLayeredFile(String srcPath, String dstPath, String name)
srcPath - The target path for the new file.dstPath - The path to the directory to make the new file in.name - The name of the new file.InputStream getInputStream(int version, String path)
version - The version to look under.path - The path to the file.org.alfresco.service.cmr.repository.ContentReader getContentReader(int version,
String path)
version - The version to look under.path - The path to the file.SortedMap<String,AVMNodeDescriptor> getListing(int version, String path, boolean includeDeleted)
version - The version to look under.path - The path to the directory.includeDeleted - Whether to see Deleted nodes.SortedMap<String,AVMNodeDescriptor> getListingDirect(int version, String path, boolean includeDeleted)
version - The version to look under.path - The path to the directory.includeDeleted - Whether to see Deleted nodes.List<String> getDeleted(int version, String path)
version - The version to look under.path - The path to the directory.OutputStream getOutputStream(String path)
path - The path to the file.org.alfresco.service.cmr.repository.ContentWriter createContentWriter(String path, boolean update)
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.void removeNode(String path, String name)
path - The path to the node's parent directory.name - The name of the node to remove.void uncover(String dirPath, String name)
dirPath - The path to the directory.name - The name to uncover.List<VersionDescriptor> getVersions()
List<VersionDescriptor> getVersionsFrom(int version)
version - - the version which which to endList<VersionDescriptor> getVersionsTo(int version)
version - - the version to start fromList<VersionDescriptor> getVersionsBetween(int startVersion, int endVersion)
startVersion - endVersion - List<VersionDescriptor> getVersions(Date from, Date to)
from - The earliest date.to - The latest date.AVMRepository getAVMRepository()
org.alfresco.repo.avm.Lookup lookup(int version,
String path,
boolean write,
boolean includeDeleted)
version - The version to look under.path - The path to the node.write - Whether this is in a write context.includeDeleted - Whether to see Deleted nodes.org.alfresco.repo.avm.Lookup lookupDirectory(int version,
String path,
boolean write)
version - The version to look under.path - The path to the directory.write - Whether this is in a write context.String getIndirectionPath(int version, String path)
version - The version to look under.path - The path to the node.void makePrimary(String path)
path - The AVMRepository relative path.void retargetLayeredDirectory(String path, String target)
path - The path to the layered directory.target - The new target path.DirectoryNode getRoot()
AVMNodeDescriptor getRoot(int version)
version - The version to get (-1 for head).String getName()
void setName(String name)
name - To Set.void purgeVersion(int version)
version - AVMStoreDescriptor getDescriptor()
void setOpacity(String path, boolean opacity)
path - The path to the layered directory.opacity - True is opaque; false is not.void setNodeProperty(String path, org.alfresco.service.namespace.QName name, PropertyValue value)
path - The path to the node.name - The name of the property.value - The value to set.void setNodeProperties(String path, Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
path - The path to the node.properties - The Map of QNames to PropertyValues.PropertyValue getNodeProperty(int version, String path, org.alfresco.service.namespace.QName name)
version - The version to look under.path - The path to the node.name - The name of the property.void deleteNodeProperty(String path, org.alfresco.service.namespace.QName name)
path - The path to the node.name - The name of the property.void deleteNodeProperties(String path)
path - The path to the node.Map<org.alfresco.service.namespace.QName,PropertyValue> getNodeProperties(int version, String path)
version - The version to look under.path - The path to the node.void setProperty(org.alfresco.service.namespace.QName name,
PropertyValue value)
name - The QName of the property.value - The actual PropertyValue.void setProperties(Map<org.alfresco.service.namespace.QName,PropertyValue> properties)
properties - A Map of QNames to PropertyValues to set.PropertyValue getProperty(org.alfresco.service.namespace.QName name)
name - The QName of the property to fetch.Map<org.alfresco.service.namespace.QName,PropertyValue> getProperties()
void deleteProperty(org.alfresco.service.namespace.QName name)
name - The name of the property to delete.org.alfresco.service.cmr.repository.ContentData getContentDataForRead(int version,
String path)
version - The version to look under.path - The path to the file.org.alfresco.service.cmr.repository.ContentData getContentDataForWrite(String path)
path - The path to the file.void setContentData(String path, org.alfresco.service.cmr.repository.ContentData data)
path - The path to the file.data - The ContentData to set.void setMetaDataFrom(String path, AVMNode from)
path - The path to the node to set metadata on.from - The node to get the metadata from.void addAspect(String path, org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The name of the aspect.Set<org.alfresco.service.namespace.QName> getAspects(int version, String path)
version - The version to look under.path - The path to the node.void removeAspect(String path, org.alfresco.service.namespace.QName aspectName)
path - The path to the node.aspectName - The name of the aspect.boolean hasAspect(int version,
String path,
org.alfresco.service.namespace.QName aspectName)
version - The version to look under.path - The path to the node.aspectName - The name of the aspect.void setACL(String path, Acl acl)
path - The path to the node.acl - The ACL to set.Acl getACL(int version, String path)
version - The version to look under.path - The path to the node.void link(String parentPath, String name, AVMNodeDescriptor toLink)
parentPath - The path to the directory.name - The name to give the node.toLink - The node to link.void updateLink(String parentPath, String name, AVMNodeDescriptor toLink)
parentPath - The path to the directory.name - The name to give the node.toLink - The node to link.void revert(String path, String name, AVMNodeDescriptor toRevertTo)
path - The path to the parent directory.name - The name of the node to revert.toRevertTo - The descriptor of the version to revert to.void setEncoding(String path, String encoding)
path - encoding - Copyright © 2005–2014 Alfresco Software. All rights reserved.