|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.version.NodeServiceImpl
org.alfresco.repo.version.Node2ServiceImpl
public class Node2ServiceImpl
The version2 store node service implementation
Field Summary |
---|
Fields inherited from class org.alfresco.repo.version.NodeServiceImpl |
---|
contentDataDAO, dbNodeService, dicitionaryService, MSG_UNSUPPORTED |
Fields inherited from interface org.alfresco.repo.version.VersionBaseModel |
---|
ASPECT_LOCALNAME_VERSION_STORE_ROOT, ASSOC_LOCALNAME_ROOT_VERSION, CHILD_VERSION_HISTORIES, CHILD_VERSIONS, PROP_CREATED_DATE, PROP_CREATOR, PROP_DESCRIPTION, PROP_TRANSLATION_VERSIONS, PROP_VERSION_LABEL, PROP_VERSION_NUMBER, PROP_VERSIONED_NODE_ID, STORE_PROTOCOL, TYPE_VERSION_HISTORY |
Constructor Summary | |
---|---|
Node2ServiceImpl()
|
Method Summary | |
---|---|
java.util.Set |
getAspects(NodeRef nodeRef)
Translation for version store |
java.util.List |
getChildAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern)
Performs conversion from version store properties to real associations |
java.util.List |
getParentAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern)
The node will apprear to be attached to the root of the version store |
ChildAssociationRef |
getPrimaryParent(NodeRef nodeRef)
Simulates the node begin attached to the root node of the version store. |
java.util.Map |
getProperties(NodeRef nodeRef)
Property translation for version store |
java.io.Serializable |
getProperty(NodeRef nodeRef,
QName qname)
Property translation for version store |
java.util.List |
getTargetAssocs(NodeRef sourceRef,
QNamePattern qnamePattern)
Fetches all associations from the given source where the associations' qualified names match the pattern provided. |
QName |
getType(NodeRef nodeRef)
Type translation for version store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.service.cmr.repository.NodeService |
---|
addAspect, addChild, addChild, addProperties, createAssociation, createNode, createNode, createStore, deleteNode, deleteStore, exists, exists, getAssoc, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocsWithoutParentAssocsOfType, getChildByName, getChildrenByName, getNodeStatus, getParentAssocs, getPath, getPaths, getRootNode, getSourceAssocs, getStoreArchiveNode, getStores, hasAspect, moveNode, removeAspect, removeAssociation, removeChild, removeChildAssociation, removeProperty, removeSeconaryChildAssociation, restoreNode, setChildAssociationIndex, setProperties, setProperty, setType |
Constructor Detail |
---|
public Node2ServiceImpl()
Method Detail |
---|
public QName getType(NodeRef nodeRef) throws InvalidNodeRefException
getType
in interface NodeService
getType
in class NodeServiceImpl
InvalidNodeRefException
- if the node could not be foundDictionaryService
public java.util.Set getAspects(NodeRef nodeRef) throws InvalidNodeRefException
getAspects
in interface NodeService
getAspects
in class NodeServiceImpl
InvalidNodeRefException
- if the node could not be foundpublic java.util.Map getProperties(NodeRef nodeRef) throws InvalidNodeRefException
getProperties
in interface NodeService
getProperties
in class NodeServiceImpl
InvalidNodeRefException
- if the node could not be foundpublic java.io.Serializable getProperty(NodeRef nodeRef, QName qname) throws InvalidNodeRefException
getProperty
in interface NodeService
getProperty
in class NodeServiceImpl
qname
- the qualified name of the property
InvalidNodeRefException
- if the node could not be foundpublic java.util.List getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)
getParentAssocs
in interface NodeService
getParentAssocs
in class NodeServiceImpl
nodeRef
- the child nodetypeQNamePattern
- the pattern that the type qualified name of the association must matchqnamePattern
- the pattern that the qnames of the assocs must match
NodeService.getParentAssocs(NodeRef, QNamePattern, QNamePattern)
public java.util.List getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern) throws InvalidNodeRefException
getChildAssocs
in interface NodeService
getChildAssocs
in class NodeServiceImpl
nodeRef
- the parent node - usually a containertypeQNamePattern
- the pattern that the type qualified name of the association must matchqnamePattern
- the pattern that the qnames of the assocs must match
ChildAssociationRef
instances. If the
node is not a container then the result will be empty.
InvalidNodeRefException
- if the node could not be foundQName
,
RegexQNamePattern.MATCH_ALL
public ChildAssociationRef getPrimaryParent(NodeRef nodeRef) throws InvalidNodeRefException
getPrimaryParent
in interface NodeService
getPrimaryParent
in class NodeServiceImpl
InvalidNodeRefException
- if the node could not be foundpublic java.util.List getTargetAssocs(NodeRef sourceRef, QNamePattern qnamePattern)
NodeService
getTargetAssocs
in interface NodeService
getTargetAssocs
in class NodeServiceImpl
sourceRef
- the association sourceqnamePattern
- the association qname pattern to match against
QName
,
RegexQNamePattern.MATCH_ALL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |