Package org.alfresco.repo.virtual.bundle
Class VirtualNodeServiceExtension
- java.lang.Object
-
- org.alfresco.traitextender.SingletonExtension<E,T>
-
- org.alfresco.traitextender.SpringBeanExtension<E,T>
-
- org.alfresco.repo.virtual.bundle.VirtualSpringBeanExtension<NodeServiceExtension,NodeServiceTrait>
-
- org.alfresco.repo.virtual.bundle.VirtualNodeServiceExtension
-
- All Implemented Interfaces:
NodeServiceExtension,NodeService
public class VirtualNodeServiceExtension extends VirtualSpringBeanExtension<NodeServiceExtension,NodeServiceTrait> implements NodeServiceExtension
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.NodeService
NodeService.FindNodeParameters
-
-
Constructor Summary
Constructors Constructor Description VirtualNodeServiceExtension()
-
Method Summary
-
Methods inherited from class org.alfresco.repo.virtual.bundle.VirtualSpringBeanExtension
isVirtualContextFolder
-
Methods inherited from class org.alfresco.traitextender.SpringBeanExtension
register, setExtensionPoint
-
Methods inherited from class org.alfresco.traitextender.SingletonExtension
acceptsTrait, acceptsTraitClass, getTrait
-
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(ActualEnvironment environment)
-
setSmartStore
public void setSmartStore(VirtualStore smartStore)
-
hasAspect
public boolean hasAspect(NodeRef nodeRef, QName aspectQName)
- Specified by:
hasAspectin interfaceNodeService
-
getType
public QName getType(NodeRef nodeRef)
- Specified by:
getTypein interfaceNodeService
-
getProperties
public Map<QName,Serializable> getProperties(NodeRef nodeRef)
- Specified by:
getPropertiesin interfaceNodeService
-
getProperty
public Serializable getProperty(NodeRef nodeRef, QName qname)
- Specified by:
getPropertyin interfaceNodeService
-
getAspects
public Set<QName> getAspects(NodeRef nodeRef)
- Specified by:
getAspectsin interfaceNodeService
-
getPath
public Path getPath(NodeRef nodeRef)
- Specified by:
getPathin interfaceNodeService
-
getPaths
public List<Path> getPaths(NodeRef nodeRef, boolean primaryOnly)
- Specified by:
getPathsin interfaceNodeService
-
exists
public boolean exists(NodeRef nodeRef)
- Specified by:
existsin interfaceNodeService
-
createNode
public ChildAssociationRef createNode(NodeRef parentRef, QName assocTypeQName, QName assocQName, QName nodeTypeQName)
- Specified by:
createNodein interfaceNodeService
-
createNode
public ChildAssociationRef createNode(NodeRef parentRef, QName assocTypeQName, QName assocQName, QName nodeTypeQName, Map<QName,Serializable> properties)
- Specified by:
createNodein interfaceNodeService
-
getParentAssocs
public List<ChildAssociationRef> getParentAssocs(NodeRef nodeRef)
- Specified by:
getParentAssocsin interfaceNodeService
-
getParentAssocs
public List<ChildAssociationRef> getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)
- Specified by:
getParentAssocsin interfaceNodeService
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef)
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload)
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, boolean preload)
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, Set<QName> childNodeTypeQNames)
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocsByPropertyValue
public List<ChildAssociationRef> getChildAssocsByPropertyValue(NodeRef nodeRef, QName propertyQName, Serializable value)
- Specified by:
getChildAssocsByPropertyValuein interfaceNodeService
-
getChildByName
public NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName)
- Specified by:
getChildByNamein interfaceNodeService
-
getPrimaryParent
public ChildAssociationRef getPrimaryParent(NodeRef nodeRef)
- Specified by:
getPrimaryParentin interfaceNodeService
-
setDownloadAssociationsFolder
public void setDownloadAssociationsFolder(NodeRefExpression downloadAssocaiationsFolder)
-
getTargetAssocs
public List<AssociationRef> getTargetAssocs(NodeRef sourceRef, QNamePattern qnamePattern)
- Specified by:
getTargetAssocsin interfaceNodeService
-
getSourceAssocs
public List<AssociationRef> getSourceAssocs(NodeRef targetRef, QNamePattern qnamePattern)
- Specified by:
getSourceAssocsin interfaceNodeService
-
moveNode
public ChildAssociationRef moveNode(NodeRef nodeToMoveRef, NodeRef newParentRef, QName assocTypeQName, QName assocQName)
- Specified by:
moveNodein interfaceNodeService
-
addProperties
public void addProperties(NodeRef nodeRef, Map<QName,Serializable> properties)
- Specified by:
addPropertiesin interfaceNodeService
-
createAssociation
public AssociationRef createAssociation(NodeRef sourceRef, NodeRef targetRef, QName assocTypeQName)
- Specified by:
createAssociationin interfaceNodeService
-
getStores
public List<StoreRef> getStores()
- Specified by:
getStoresin interfaceNodeService
-
createStore
public StoreRef createStore(String protocol, String identifier) throws StoreExistsException
- Specified by:
createStorein interfaceNodeService- Throws:
StoreExistsException
-
deleteStore
public void deleteStore(StoreRef storeRef)
- Specified by:
deleteStorein interfaceNodeService
-
exists
public boolean exists(StoreRef storeRef)
- Specified by:
existsin interfaceNodeService
-
getNodeStatus
public NodeRef.Status getNodeStatus(NodeRef nodeRef)
- Specified by:
getNodeStatusin interfaceNodeService
-
getNodeRef
public NodeRef getNodeRef(Long nodeId)
- Specified by:
getNodeRefin interfaceNodeService
-
getRootNode
public NodeRef getRootNode(StoreRef storeRef) throws InvalidStoreRefException
- Specified by:
getRootNodein interfaceNodeService- Throws:
InvalidStoreRefException
-
getAllRootNodes
public Set<NodeRef> getAllRootNodes(StoreRef storeRef)
- Specified by:
getAllRootNodesin interfaceNodeService
-
setChildAssociationIndex
public void setChildAssociationIndex(ChildAssociationRef childAssocRef, int index) throws InvalidChildAssociationRefException
- Specified by:
setChildAssociationIndexin interfaceNodeService- Throws:
InvalidChildAssociationRefException
-
setType
public void setType(NodeRef nodeRef, QName typeQName) throws InvalidNodeRefException
- Specified by:
setTypein interfaceNodeService- Throws:
InvalidNodeRefException
-
addAspect
public void addAspect(NodeRef nodeRef, QName aspectTypeQName, Map<QName,Serializable> aspectProperties) throws InvalidNodeRefException, InvalidAspectException
- Specified by:
addAspectin interfaceNodeService- Throws:
InvalidNodeRefExceptionInvalidAspectException
-
removeAspect
public void removeAspect(NodeRef nodeRef, QName aspectTypeQName) throws InvalidNodeRefException, InvalidAspectException
- Specified by:
removeAspectin interfaceNodeService- Throws:
InvalidNodeRefExceptionInvalidAspectException
-
deleteNode
public void deleteNode(NodeRef nodeRef) throws InvalidNodeRefException
- Specified by:
deleteNodein interfaceNodeService- Throws:
InvalidNodeRefException
-
addChild
public ChildAssociationRef addChild(NodeRef parentRef, NodeRef childRef, QName assocTypeQName, QName qname) throws InvalidNodeRefException
- Specified by:
addChildin interfaceNodeService- Throws:
InvalidNodeRefException
-
addChild
public List<ChildAssociationRef> addChild(Collection<NodeRef> parentRefs, NodeRef childRef, QName assocTypeQName, QName qname) throws InvalidNodeRefException
- Specified by:
addChildin interfaceNodeService- Throws:
InvalidNodeRefException
-
removeChild
public void removeChild(NodeRef parentRef, NodeRef childRef) throws InvalidNodeRefException
- Specified by:
removeChildin interfaceNodeService- Throws:
InvalidNodeRefException
-
removeChildAssociation
public boolean removeChildAssociation(ChildAssociationRef childAssocRef)
- Specified by:
removeChildAssociationin interfaceNodeService
-
removeSeconaryChildAssociation
public boolean removeSeconaryChildAssociation(ChildAssociationRef childAssocRef)
- Specified by:
removeSeconaryChildAssociationin interfaceNodeService
-
removeSecondaryChildAssociation
public boolean removeSecondaryChildAssociation(ChildAssociationRef childAssocRef)
- Specified by:
removeSecondaryChildAssociationin interfaceNodeService
-
getNodeAclId
public Long getNodeAclId(NodeRef nodeRef) throws InvalidNodeRefException
- Specified by:
getNodeAclIdin interfaceNodeService- Throws:
InvalidNodeRefException
-
setProperties
public void setProperties(NodeRef nodeRef, Map<QName,Serializable> properties) throws InvalidNodeRefException
- Specified by:
setPropertiesin interfaceNodeService- Throws:
InvalidNodeRefException
-
setProperty
public void setProperty(NodeRef nodeRef, QName qname, Serializable value) throws InvalidNodeRefException
- Specified by:
setPropertyin interfaceNodeService- Throws:
InvalidNodeRefException
-
removeProperty
public void removeProperty(NodeRef nodeRef, QName qname) throws InvalidNodeRefException
- Specified by:
removePropertyin interfaceNodeService- Throws:
InvalidNodeRefException
-
getChildrenByName
public List<ChildAssociationRef> getChildrenByName(NodeRef nodeRef, QName assocTypeQName, Collection<String> childNames)
- Specified by:
getChildrenByNamein interfaceNodeService
-
getChildAssocsWithoutParentAssocsOfType
public Collection<ChildAssociationRef> getChildAssocsWithoutParentAssocsOfType(NodeRef nodeRef, QName assocTypeQName)
- Specified by:
getChildAssocsWithoutParentAssocsOfTypein interfaceNodeService
-
removeAssociation
public void removeAssociation(NodeRef sourceRef, NodeRef targetRef, QName assocTypeQName) throws InvalidNodeRefException
- Specified by:
removeAssociationin interfaceNodeService- Throws:
InvalidNodeRefException
-
setAssociations
public void setAssociations(NodeRef sourceRef, QName assocTypeQName, List<NodeRef> targetRefs)
- Specified by:
setAssociationsin interfaceNodeService
-
getAssoc
public AssociationRef getAssoc(Long id)
- Specified by:
getAssocin interfaceNodeService
-
getStoreArchiveNode
public NodeRef getStoreArchiveNode(StoreRef storeRef)
- Specified by:
getStoreArchiveNodein interfaceNodeService
-
restoreNode
public NodeRef restoreNode(NodeRef archivedNodeRef, NodeRef destinationParentNodeRef, QName assocTypeQName, QName assocQName)
- Specified by:
restoreNodein interfaceNodeService
-
findNodes
public List<NodeRef> findNodes(NodeService.FindNodeParameters params)
- Specified by:
findNodesin interfaceNodeService
-
countChildAssocs
public int countChildAssocs(NodeRef nodeRef, boolean isPrimary) throws InvalidNodeRefException
- Specified by:
countChildAssocsin interfaceNodeService- Throws:
InvalidNodeRefException
-
getTargetAssocsByPropertyValue
public List<AssociationRef> getTargetAssocsByPropertyValue(NodeRef sourceRef, QNamePattern qnamePattern, QName propertyQName, Serializable propertyValue)
- Specified by:
getTargetAssocsByPropertyValuein interfaceNodeService
-
-