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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddProperties(NodeRef nodeRef, Map<QName, Serializable> properties) intcountChildAssocs(NodeRef nodeRef, boolean isPrimary) createAssociation(NodeRef sourceRef, NodeRef targetRef, QName assocTypeQName) createNode(NodeRef parentRef, QName assocTypeQName, QName assocQName, QName nodeTypeQName) createNode(NodeRef parentRef, QName assocTypeQName, QName assocQName, QName nodeTypeQName, Map<QName, Serializable> properties) createStore(String protocol, String identifier) voiddeleteNode(NodeRef nodeRef) voiddeleteStore(StoreRef storeRef) booleanbooleangetAllRootNodes(StoreRef storeRef) getAspects(NodeRef nodeRef) getChildAssocs(NodeRef nodeRef) getChildAssocs(NodeRef nodeRef, Set<QName> childNodeTypeQNames) getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern) getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, boolean preload) getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) getChildAssocsByPropertyValue(NodeRef nodeRef, QName propertyQName, Serializable value) getChildAssocsWithoutParentAssocsOfType(NodeRef nodeRef, QName assocTypeQName) getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName) getChildrenByName(NodeRef nodeRef, QName assocTypeQName, Collection<String> childNames) getNodeAclId(NodeRef nodeRef) getNodeRef(Long nodeId) getNodeStatus(NodeRef nodeRef) getParentAssocs(NodeRef nodeRef) getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern) getPrimaryParent(NodeRef nodeRef) getProperties(NodeRef nodeRef) getProperty(NodeRef nodeRef, QName qname) getRootNode(StoreRef storeRef) getSourceAssocs(NodeRef targetRef, QNamePattern qnamePattern) getStoreArchiveNode(StoreRef storeRef) getTargetAssocs(NodeRef sourceRef, QNamePattern qnamePattern) getTargetAssocsByPropertyValue(NodeRef sourceRef, QNamePattern qnamePattern, QName propertyQName, Serializable propertyValue) booleanvoidremoveAspect(NodeRef nodeRef, QName aspectTypeQName) voidremoveAssociation(NodeRef sourceRef, NodeRef targetRef, QName assocTypeQName) voidremoveChild(NodeRef parentRef, NodeRef childRef) booleanremoveChildAssociation(ChildAssociationRef childAssocRef) voidremoveProperty(NodeRef nodeRef, QName qname) booleanremoveSeconaryChildAssociation(ChildAssociationRef childAssocRef) booleanremoveSecondaryChildAssociation(ChildAssociationRef childAssocRef) restoreNode(NodeRef archivedNodeRef, NodeRef destinationParentNodeRef, QName assocTypeQName, QName assocQName) voidsetAssociations(NodeRef sourceRef, QName assocTypeQName, List<NodeRef> targetRefs) voidsetChildAssociationIndex(ChildAssociationRef childAssocRef, int index) voidsetDownloadAssociationsFolder(NodeRefExpression downloadAssocaiationsFolder) voidsetEnvironment(ActualEnvironment environment) voidsetProperties(NodeRef nodeRef, Map<QName, Serializable> properties) voidsetProperty(NodeRef nodeRef, QName qname, Serializable value) voidsetSmartStore(VirtualStore smartStore) voidMethods inherited from class org.alfresco.repo.virtual.bundle.VirtualSpringBeanExtension
isVirtualContextFolderMethods inherited from class org.alfresco.traitextender.SpringBeanExtension
register, setExtensionPointMethods inherited from class org.alfresco.traitextender.SingletonExtension
acceptsTrait, acceptsTraitClass, getTrait
-
Constructor Details
-
VirtualNodeServiceExtension
public VirtualNodeServiceExtension()
-
-
Method Details
-
setEnvironment
-
setSmartStore
-
hasAspect
- Specified by:
hasAspectin interfaceNodeService
-
getType
- Specified by:
getTypein interfaceNodeService
-
getProperties
- Specified by:
getPropertiesin interfaceNodeService
-
getProperty
- Specified by:
getPropertyin interfaceNodeService
-
getAspects
- Specified by:
getAspectsin interfaceNodeService
-
getPath
- Specified by:
getPathin interfaceNodeService
-
getPaths
- Specified by:
getPathsin interfaceNodeService
-
exists
- 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
- Specified by:
getParentAssocsin interfaceNodeService
-
getParentAssocs
public List<ChildAssociationRef> getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern) - Specified by:
getParentAssocsin interfaceNodeService
-
getChildAssocs
- 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
- Specified by:
getChildAssocsin interfaceNodeService
-
getChildAssocsByPropertyValue
public List<ChildAssociationRef> getChildAssocsByPropertyValue(NodeRef nodeRef, QName propertyQName, Serializable value) - Specified by:
getChildAssocsByPropertyValuein interfaceNodeService
-
getChildByName
- Specified by:
getChildByNamein interfaceNodeService
-
getPrimaryParent
- Specified by:
getPrimaryParentin interfaceNodeService
-
setDownloadAssociationsFolder
-
getTargetAssocs
- Specified by:
getTargetAssocsin interfaceNodeService
-
getSourceAssocs
- Specified by:
getSourceAssocsin interfaceNodeService
-
moveNode
public ChildAssociationRef moveNode(NodeRef nodeToMoveRef, NodeRef newParentRef, QName assocTypeQName, QName assocQName) - Specified by:
moveNodein interfaceNodeService
-
addProperties
- Specified by:
addPropertiesin interfaceNodeService
-
createAssociation
- Specified by:
createAssociationin interfaceNodeService
-
getStores
- Specified by:
getStoresin interfaceNodeService
-
createStore
- Specified by:
createStorein interfaceNodeService- Throws:
StoreExistsException
-
deleteStore
- Specified by:
deleteStorein interfaceNodeService
-
exists
- Specified by:
existsin interfaceNodeService
-
getNodeStatus
- Specified by:
getNodeStatusin interfaceNodeService
-
getNodeRef
- Specified by:
getNodeRefin interfaceNodeService
-
getRootNode
- Specified by:
getRootNodein interfaceNodeService- Throws:
InvalidStoreRefException
-
getAllRootNodes
- Specified by:
getAllRootNodesin interfaceNodeService
-
setChildAssociationIndex
public void setChildAssociationIndex(ChildAssociationRef childAssocRef, int index) throws InvalidChildAssociationRefException - Specified by:
setChildAssociationIndexin interfaceNodeService- Throws:
InvalidChildAssociationRefException
-
setType
- 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
- 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
- Specified by:
removeChildin interfaceNodeService- Throws:
InvalidNodeRefException
-
removeChildAssociation
- Specified by:
removeChildAssociationin interfaceNodeService
-
removeSeconaryChildAssociation
- Specified by:
removeSeconaryChildAssociationin interfaceNodeService
-
removeSecondaryChildAssociation
- Specified by:
removeSecondaryChildAssociationin interfaceNodeService
-
getNodeAclId
- 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
- 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
-
findAssocsNotLinkedByTwoOtherAssocs
- Specified by:
findAssocsNotLinkedByTwoOtherAssocsin interfaceNodeService
-
removeAssociation
public void removeAssociation(NodeRef sourceRef, NodeRef targetRef, QName assocTypeQName) throws InvalidNodeRefException - Specified by:
removeAssociationin interfaceNodeService- Throws:
InvalidNodeRefException
-
setAssociations
- Specified by:
setAssociationsin interfaceNodeService
-
getAssoc
- Specified by:
getAssocin interfaceNodeService
-
getStoreArchiveNode
- Specified by:
getStoreArchiveNodein interfaceNodeService
-
restoreNode
public NodeRef restoreNode(NodeRef archivedNodeRef, NodeRef destinationParentNodeRef, QName assocTypeQName, QName assocQName) - Specified by:
restoreNodein interfaceNodeService
-
findNodes
- Specified by:
findNodesin interfaceNodeService
-
countChildAssocs
- Specified by:
countChildAssocsin interfaceNodeService- Throws:
InvalidNodeRefException
-
getTargetAssocsByPropertyValue
public List<AssociationRef> getTargetAssocsByPropertyValue(NodeRef sourceRef, QNamePattern qnamePattern, QName propertyQName, Serializable propertyValue) - Specified by:
getTargetAssocsByPropertyValuein interfaceNodeService
-