public abstract class AbstractNodeServiceImpl extends Object implements org.alfresco.service.cmr.repository.NodeService
NodeService
implementations.
Some of the overloaded simpler versions of methods are implemented by passing through the defaults as required.
The callback handling is also provided as a convenience for implementations.
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected Set<String> |
storesToIgnorePolicies |
protected org.alfresco.repo.tenant.TenantService |
tenantService |
protected TransactionService |
transactionService |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks equality by type and uuid
|
List<org.alfresco.service.cmr.repository.NodeRef> |
findNodes(org.alfresco.service.cmr.repository.NodeService.FindNodeParameters params) |
protected String |
generateGuid(Map<org.alfresco.service.namespace.QName,Serializable> preCreationProperties)
Fetches any pre-defined node uuid from the properties, but does not generate a new uuid.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Defers to the pattern matching overload
|
protected Map<org.alfresco.service.namespace.QName,Serializable> |
getDefaultProperties(org.alfresco.service.cmr.dictionary.ClassDefinition classDefinition)
Sets the default property values
|
protected Map<org.alfresco.service.namespace.QName,Serializable> |
getDefaultProperties(org.alfresco.service.namespace.QName typeQName) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Defers to the pattern matching overload
|
protected Set<org.alfresco.service.namespace.QName> |
getTypeAndAspectQNames(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get all aspect and node type qualified names
|
int |
hashCode() |
void |
init()
Registers the node policies as well as node indexing behaviour
|
protected void |
invokeBeforeAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName) |
protected void |
invokeBeforeArchiveNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected void |
invokeBeforeCreateNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.namespace.QName childNodeTypeQName) |
protected void |
invokeBeforeCreateStore(org.alfresco.service.namespace.QName nodeTypeQName,
org.alfresco.service.cmr.repository.StoreRef storeRef) |
protected void |
invokeBeforeDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef) |
protected void |
invokeBeforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
protected void |
invokeBeforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected void |
invokeBeforeMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.NodeRef newParentRef) |
protected void |
invokeBeforeRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName) |
protected void |
invokeBeforeSetType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName oldType,
org.alfresco.service.namespace.QName newType) |
protected void |
invokeBeforeUpdateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected void |
invokeOnAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName) |
protected void |
invokeOnCreateAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef) |
protected void |
invokeOnCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNewNode) |
protected void |
invokeOnCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
protected void |
invokeOnCreateStore(org.alfresco.service.cmr.repository.NodeRef rootNodeRef) |
protected void |
invokeOnDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef) |
protected void |
invokeOnDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
protected void |
invokeOnDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
org.alfresco.service.namespace.QName childNodeTypeQName,
Set<org.alfresco.service.namespace.QName> childAspectQnames,
boolean isArchivedNode) |
protected void |
invokeOnMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef) |
protected void |
invokeOnRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName) |
protected void |
invokeOnRestoreNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
protected void |
invokeOnSetType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName oldType,
org.alfresco.service.namespace.QName newType) |
protected void |
invokeOnUpdateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected void |
invokeOnUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after) |
boolean |
removeSeconaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setStoresToIgnorePolicies(Set<String> storesToIgnorePolicies) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTransactionService(TransactionService transactionService) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAspect, addChild, addChild, addProperties, countChildAssocs, createAssociation, createNode, createNode, createStore, deleteNode, deleteStore, exists, exists, getAllRootNodes, getAspects, getAssoc, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocsByPropertyValue, getChildAssocsWithoutParentAssocsOfType, getChildByName, getChildrenByName, getNodeAclId, getNodeRef, getNodeStatus, getParentAssocs, getPath, getPaths, getPrimaryParent, getProperties, getProperty, getRootNode, getSourceAssocs, getStoreArchiveNode, getStores, getTargetAssocs, getTargetAssocsByPropertyValue, getType, hasAspect, moveNode, removeAspect, removeAssociation, removeChild, removeChildAssociation, removeProperty, removeSecondaryChildAssociation, restoreNode, setAssociations, setChildAssociationIndex, setProperties, setProperty, setType
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected TransactionService transactionService
protected org.alfresco.repo.tenant.TenantService tenantService
public void setPolicyComponent(PolicyComponent policyComponent)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setTransactionService(TransactionService transactionService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public boolean equals(Object obj)
public void init()
protected void invokeBeforeCreateStore(org.alfresco.service.namespace.QName nodeTypeQName, org.alfresco.service.cmr.repository.StoreRef storeRef)
protected void invokeOnCreateStore(org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
protected void invokeBeforeCreateNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName childNodeTypeQName)
protected void invokeOnCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
protected void invokeBeforeMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef, org.alfresco.service.cmr.repository.NodeRef newParentRef)
protected void invokeOnMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef, org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
protected void invokeBeforeUpdateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void invokeOnUpdateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void invokeOnSetType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName oldType, org.alfresco.service.namespace.QName newType)
protected void invokeBeforeSetType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName oldType, org.alfresco.service.namespace.QName newType)
protected void invokeOnUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
protected void invokeBeforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void invokeBeforeArchiveNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void invokeOnDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, org.alfresco.service.namespace.QName childNodeTypeQName, Set<org.alfresco.service.namespace.QName> childAspectQnames, boolean isArchivedNode)
protected void invokeOnRestoreNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
protected void invokeBeforeAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
protected void invokeOnAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
protected void invokeBeforeRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
protected void invokeOnRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
protected void invokeOnCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNewNode)
protected void invokeBeforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
protected void invokeOnDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
protected void invokeOnCreateAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
protected void invokeBeforeDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
protected void invokeOnDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
protected Set<org.alfresco.service.namespace.QName> getTypeAndAspectQNames(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node we are interested inprotected String generateGuid(Map<org.alfresco.service.namespace.QName,Serializable> preCreationProperties)
preCreationProperties
- the properties that will be applied to the nodepublic List<org.alfresco.service.cmr.repository.ChildAssociationRef> getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getParentAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
RegexQNamePattern.MATCH_ALL
,
NodeService.getParentAssocs(NodeRef, QNamePattern, QNamePattern)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
RegexQNamePattern.MATCH_ALL
,
NodeService.getChildAssocs(NodeRef, QNamePattern, QNamePattern)
protected Map<org.alfresco.service.namespace.QName,Serializable> getDefaultProperties(org.alfresco.service.namespace.QName typeQName)
protected Map<org.alfresco.service.namespace.QName,Serializable> getDefaultProperties(org.alfresco.service.cmr.dictionary.ClassDefinition classDefinition)
classDefinition
- the model type definition for which to get defaultspublic List<org.alfresco.service.cmr.repository.NodeRef> findNodes(org.alfresco.service.cmr.repository.NodeService.FindNodeParameters params)
findNodes
in interface org.alfresco.service.cmr.repository.NodeService
public final boolean removeSeconaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeSeconaryChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
Copyright © 2005–2017 Alfresco Software. All rights reserved.