public interface VirtualStore
Handles most virtualized Reference meta-data interactions analogous
to actual Alfresco public Repository Services.
The Public Repository Services| Modifier and Type | Field and Description |
|---|---|
static int |
FILING_OR_MATERIAL_ADHERENCE |
static int |
MATERIAL_ADHERENCE |
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
adhere(Reference reference,
int mode) |
boolean |
canMaterialize(Reference reference) |
boolean |
canVirtualize(NodeRef nodeRef) |
FilingData |
createFilingData(Reference reference,
QName assocTypeQName,
QName assocQName,
QName nodeTypeQName,
Map<QName,Serializable> properties) |
Set<AccessPermission> |
getAllSetPermissions(Reference reference) |
List<ChildAssociationRef> |
getChildAssocs(Reference parentReference,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern,
int maxResults,
boolean preload)
Gets all child references associations where the pattern of the
association qualified name is an exact match.
|
List<ChildAssociationRef> |
getChildAssocs(Reference parentReference,
Set<QName> childNodeTypeQNames)
Retrieve immediate children references of a given reference where the
child nodes are in the given inclusive list.
|
List<ChildAssociationRef> |
getChildAssocsByPropertyValue(Reference parentReference,
QName propertyQName,
Serializable value)
Retrieve the immediate children of a given node based on the value of a
property of those children.
|
Collection<ChildAssociationRef> |
getChildAssocsWithoutParentAssocsOfType(Reference parentReference,
QName assocTypeQName)
Gets the set of child associations of a certain parent node without
parent associations of a certain type to other nodes with the same
parent! In effect the 'orphans' with respect to a certain association
type.
|
Reference |
getChildByName(Reference parentReference,
QName assocTypeQName,
String childName)
Get the reference of the virtualized artefact with the given name within
the virtual context (only) of the parent reference.
The name is case-insensitive as Alfresco has to support case-insensitive clients as standard. |
Path |
getPath(Reference reference) |
Map<QName,Serializable> |
getProperties(Reference reference) |
NodePermissionEntry |
getSetPermissions(Reference reference) |
QName |
getType(Reference reference) |
AccessStatus |
hasPermission(Reference reference,
PermissionReference perm)
Check that the given authentication has a particular permission for the
given virtualized artefact.
|
AccessStatus |
hasPermission(Reference reference,
String perm)
Check that the given authentication has a particular permission for the
given virtualized artefact.
|
boolean |
isVirtual(NodeRef nodeRef) |
List<Reference> |
list(Reference reference)
Lists all immediate children of the referred virtualized artefact.
Note: this could be a long list (and will be trimmed at a pre-configured maximum). |
PagingResults<Reference> |
list(Reference ref,
boolean actual,
boolean virtual,
boolean files,
boolean folders,
String pattern,
Set<QName> ignoreTypeQNames,
Set<QName> ignoreAspectQNames,
List<Pair<QName,Boolean>> sortProps,
PagingRequest pagingRequest)
Lists page of immediate children of the referred virtualized artefact
with optional filtering (exclusion of certain child file/folder subtypes,
actual-virtual filtering) and sorting.
|
PagingResults<Reference> |
list(Reference ref,
boolean actual,
boolean virtual,
boolean files,
boolean folders,
String pattern,
Set<QName> searchTypeQNames,
Set<QName> ignoreTypeQNames,
Set<QName> ignoreAspectQNames,
List<Pair<QName,Boolean>> sortProps,
PagingRequest pagingRequest)
Lists page of immediate children of the referred virtualized artefact
with optional filtering (exclusion of certain child file/folder subtypes,
actual-virtual filtering) and sorting.
Pattern uses '*' as a wildcard |
PagingResults<Reference> |
list(Reference ref,
boolean actual,
boolean virtual,
Set<QName> searchTypeQNames,
Set<QName> ignoreTypeQNames,
Set<QName> ignoreAspectQNames,
List<Pair<QName,Boolean>> sortProps,
PagingRequest pagingRequest)
Lists page of immediate children of the referred virtualized artefact
with optional filtering (exclusion of certain child file/folder subtypes,
actual-virtual filtering) and sorting.
|
NodeRef |
materialize(Reference reference) |
Collection<NodeRef> |
materializeIfPossible(Collection<NodeRef> nodeRefs) |
NodeRef |
materializeIfPossible(NodeRef nodeRef) |
List<Reference> |
search(Reference reference,
String namePattern,
boolean fileSearch,
boolean folderSearch,
boolean includeSubFolders)
Deprecated.
FileFolderService.search(NodeRef, String, boolean, boolean, boolean)
alignment : for shallow search use list, listFolders,
listFiles, searchSimple. For deep listing use
listDeepFolders. Avoid calling this method with any name
pattern except for "*". |
Reference |
virtualize(NodeRef nodeRef) |
static final int MATERIAL_ADHERENCE
static final int FILING_OR_MATERIAL_ADHERENCE
Collection<NodeRef> materializeIfPossible(Collection<NodeRef> nodeRefs) throws VirtualizationException
VirtualizationExceptionNodeRef materializeIfPossible(NodeRef nodeRef) throws VirtualizationException
VirtualizationExceptionboolean isVirtual(NodeRef nodeRef) throws VirtualizationException
VirtualizationExceptionboolean canVirtualize(NodeRef nodeRef) throws VirtualizationException
VirtualizationExceptionReference virtualize(NodeRef nodeRef) throws VirtualizationException
VirtualizationExceptionNodeRef materialize(Reference reference) throws VirtualizationException
VirtualizationExceptionNodeRef adhere(Reference reference, int mode) throws VirtualizationException
VirtualizationExceptionboolean canMaterialize(Reference reference) throws VirtualizationException
VirtualizationExceptionPath getPath(Reference reference) throws VirtualizationException
VirtualizationExceptionMap<QName,Serializable> getProperties(Reference reference) throws VirtualizationException
reference - VirtualizationExceptionReference getChildByName(Reference parentReference, QName assocTypeQName, String childName) throws VirtualizationException
parentReference - parent ReferenceassocTypeQName - childName - VirtualizationExceptionNodeService.getChildByName(org.alfresco.service.cmr.repository.NodeRef,
QName, String)List<ChildAssociationRef> getChildAssocs(Reference parentReference, Set<QName> childNodeTypeQNames)
parentReference - the parent node - usually a containerchildNodeTypeQNames - the types that the children may be. Subtypes
are not automatically calculated and the list must therefore
be exhaustive.ChildAssociationRef instances.List<ChildAssociationRef> getChildAssocs(Reference parentReference, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) throws InvalidNodeRefException
parentReference - the parent node - usually a containertypeQNamePattern - the qualified name of the association (
null to ignore)qnamePattern - the path qualified name (null to ignore)maxResults - the number of results to getpreload - true if the nodes must be preloaded into the
cacheChildAssociationRef instancesInvalidNodeRefException - if the node could not be foundQNameList<ChildAssociationRef> getChildAssocsByPropertyValue(Reference parentReference, QName propertyQName, Serializable value)
If the property to be searched is multi-valued then will match on any one values.
Please note, the following system maintained properties that cannot be used with this method.
parentReference - the parent reference - usually a containerpropertyQName - the fully qualified name of the propertyvalue - the value to search for. Must be a simple type such as
String, Number, Date or Boolean, it cannot be a collection, a
content property, MLText or a float.ChildAssociationRef instances.Collection<ChildAssociationRef> getChildAssocsWithoutParentAssocsOfType(Reference parentReference, QName assocTypeQName)
parent - the parent referenceassocTypeQName - the association type QNameCollection of child associationsPagingResults<Reference> list(Reference ref, boolean actual, boolean virtual, boolean files, boolean folders, String pattern, Set<QName> searchTypeQNames, Set<QName> ignoreTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) throws VirtualizationException
ref - actual - virtual - files - folders - pattern - ignoreQNames - searchTypeQNames - ignoreAspectQNames - sortProps - pagingRequest - VirtualizationExceptionPagingResults<Reference> list(Reference ref, boolean actual, boolean virtual, boolean files, boolean folders, String pattern, Set<QName> ignoreTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) throws VirtualizationException
ref - actual - virtual - files - folders - pattern - ignoreQNames - sortProps - pagingRequest - VirtualizationExceptionPagingResults<Reference> list(Reference ref, boolean actual, boolean virtual, Set<QName> searchTypeQNames, Set<QName> ignoreTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) throws VirtualizationException
VirtualizationExceptionList<Reference> list(Reference reference) throws VirtualizationException
reference - VirtualizationExceptionList<Reference> search(Reference reference, String namePattern, boolean fileSearch, boolean folderSearch, boolean includeSubFolders) throws VirtualizationException
FileFolderService.search(NodeRef, String, boolean, boolean, boolean)
alignment : for shallow search use list, listFolders,
listFiles, searchSimple. For deep listing use
listDeepFolders. Avoid calling this method with any name
pattern except for "*".Reference hierarchy. reference - namePattern - fileSearch - folderSearch - includeSubFolders - VirtualizationExceptionQName getType(Reference reference) throws VirtualizationException
reference - VirtualizationExceptionFilingData createFilingData(Reference reference, QName assocTypeQName, QName assocQName, QName nodeTypeQName, Map<QName,Serializable> properties) throws VirtualizationException
reference - assocTypeQName - assocQName - nodeTypeQName - properties - FilingData of the given parent locationVirtualizationExceptionAccessStatus hasPermission(Reference reference, String perm) throws VirtualizationException
reference - perm - AccessStatusVirtualizationExceptionAccessStatus hasPermission(Reference reference, PermissionReference perm) throws VirtualizationException
reference - perm - AccessStatusVirtualizationExceptionNodePermissionEntry getSetPermissions(Reference reference) throws VirtualizationException
VirtualizationExceptionSet<AccessPermission> getAllSetPermissions(Reference reference)
Copyright © 2005–2020 Alfresco Software. All rights reserved.