public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extensible, org.alfresco.service.cmr.repository.NodeService
Modifier and Type | Field and Description |
---|---|
static String |
KEY_PENDING_DELETE_NODES |
dictionaryService, storesToIgnorePolicies, tenantService, transactionService
Constructor and Description |
---|
DbNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName,
Map<org.alfresco.service.namespace.QName,Serializable> aspectProperties) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
addChild(Collection<org.alfresco.service.cmr.repository.NodeRef> parentRefs,
org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
addChild(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName) |
void |
addProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
int |
countChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean isPrimary) |
org.alfresco.service.cmr.repository.AssociationRef |
createAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.cmr.repository.NodeRef targetRef,
org.alfresco.service.namespace.QName assocTypeQName) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
createNode(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.namespace.QName nodeTypeQName) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
createNode(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.namespace.QName nodeTypeQName,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
org.alfresco.service.cmr.repository.StoreRef |
createStore(String protocol,
String identifier)
Defers to the typed service
|
void |
deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Delete Node
|
void |
deleteStore(org.alfresco.service.cmr.repository.StoreRef storeRef) |
boolean |
exists(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
boolean |
exists(org.alfresco.service.cmr.repository.StoreRef storeRef) |
List<org.alfresco.service.cmr.repository.NodeRef> |
findNodes(org.alfresco.service.cmr.repository.NodeService.FindNodeParameters params) |
Set<org.alfresco.service.cmr.repository.NodeRef> |
getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef) |
Set<org.alfresco.service.namespace.QName> |
getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.cmr.repository.AssociationRef |
getAssoc(Long id) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Defers to the pattern matching overload
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern)
Filters out any associations if their qname is not a match to the given pattern.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern,
boolean preload)
Filters out any associations if their qname is not a match to the given pattern.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern,
int maxResults,
boolean preload)
Fetches the first n child associations in an efficient manner
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<org.alfresco.service.namespace.QName> childNodeTypeQNames) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
Serializable value) |
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocsWithoutParentAssocsOfType(org.alfresco.service.cmr.repository.NodeRef parent,
org.alfresco.service.namespace.QName assocTypeQName) |
org.alfresco.service.cmr.repository.NodeRef |
getChildByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
String childName) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildrenByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
Collection<String> childNames) |
Long |
getNodeAclId(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(Long nodeId) |
org.alfresco.service.cmr.repository.NodeRef.Status |
getNodeStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Defers to the pattern matching overload
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern)
Filters out any associations if their qname is not a match to the given pattern.
|
Collection<org.alfresco.service.cmr.repository.NodeRef> |
getParents(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.cmr.repository.Path |
getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<org.alfresco.service.cmr.repository.Path> |
getPaths(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean primaryOnly)
When searching for
primaryOnly == true , checks that there is exactly
one path. |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Map<org.alfresco.service.namespace.QName,Serializable> |
getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qname) |
org.alfresco.service.cmr.repository.NodeRef |
getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef) |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getSourceAssocs(org.alfresco.service.cmr.repository.NodeRef targetRef,
org.alfresco.service.namespace.QNamePattern qnamePattern) |
org.alfresco.service.cmr.repository.NodeRef |
getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef storeRef) |
List<org.alfresco.service.cmr.repository.StoreRef> |
getStores() |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getTargetAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QNamePattern qnamePattern) |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getTargetAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QNamePattern qnamePattern,
org.alfresco.service.namespace.QName propertyQName,
Serializable propertyValue) |
<M extends Trait> |
getTrait(Class<? extends M> traitAPI) |
org.alfresco.service.namespace.QName |
getType(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
boolean |
hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectQName)
Performs a check on the set of node aspects
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
moveNode(org.alfresco.service.cmr.repository.NodeRef nodeToMoveRef,
org.alfresco.service.cmr.repository.NodeRef newParentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Move Node
Drops the old primary association and creates a new one
|
void |
removeAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName) |
void |
removeAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.cmr.repository.NodeRef targetRef,
org.alfresco.service.namespace.QName assocTypeQName) |
void |
removeChild(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.cmr.repository.NodeRef childRef) |
boolean |
removeChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
void |
removeProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qname) |
boolean |
removeSecondaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
org.alfresco.service.cmr.repository.NodeRef |
restoreNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef,
org.alfresco.service.cmr.repository.NodeRef destinationParentNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Archives the node without the cm:auditable aspect behaviour
|
void |
setAssociations(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QName assocTypeQName,
List<org.alfresco.service.cmr.repository.NodeRef> targetRefs) |
void |
setChildAssociationIndex(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
int index) |
void |
setEnableTimestampPropagation(boolean enableTimestampPropagation)
Set whether cm:auditable timestamps should be propagated to parent nodes
where the parent-child relationship has been marked using propagateTimestamps.
|
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setNodeIndexer(NodeIndexer nodeIndexer) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) |
void |
setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Ensures that all required properties are present on the node and copies the
property values to the
Node . |
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qname,
Serializable value)
Gets the properties map, sets the value (null is allowed) and checks that the new set
of properties is valid.
|
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setStoreArchiveMap(StoreArchiveMap storeArchiveMap) |
void |
setType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName typeQName) |
equals, generateGuid, getDefaultProperties, getDefaultProperties, getTypeAndAspectQNames, hashCode, init, invokeBeforeAddAspect, invokeBeforeArchiveNode, invokeBeforeCreateNode, invokeBeforeCreateStore, invokeBeforeDeleteAssociation, invokeBeforeDeleteChildAssociation, invokeBeforeDeleteNode, invokeBeforeMoveNode, invokeBeforeRemoveAspect, invokeBeforeSetType, invokeBeforeUpdateNode, invokeOnAddAspect, invokeOnCreateAssociation, invokeOnCreateChildAssociation, invokeOnCreateNode, invokeOnCreateStore, invokeOnDeleteAssociation, invokeOnDeleteChildAssociation, invokeOnDeleteNode, invokeOnMoveNode, invokeOnRemoveAspect, invokeOnRestoreNode, invokeOnSetType, invokeOnUpdateNode, invokeOnUpdateProperties, removeSeconaryChildAssociation, setDictionaryService, setPolicyComponent, setStoresToIgnorePolicies, setTenantService, setTransactionService
public static final String KEY_PENDING_DELETE_NODES
public void setQnameDAO(QNameDAO qnameDAO)
public void setNodeDAO(NodeDAO nodeDAO)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setStoreArchiveMap(StoreArchiveMap storeArchiveMap)
public void setNodeIndexer(NodeIndexer nodeIndexer)
nodeIndexer
- the indexer that will be notified of node additions,
modifications and deletionspublic void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
policyBehaviourFilter
- component used to enable and disable behaviourspublic void setEnableTimestampPropagation(boolean enableTimestampPropagation)
enableTimestampPropagation
- true to propagate timestamps to the parent
node where appropriatepublic boolean exists(org.alfresco.service.cmr.repository.StoreRef storeRef)
exists
in interface org.alfresco.service.cmr.repository.NodeService
public boolean exists(org.alfresco.service.cmr.repository.NodeRef nodeRef)
exists
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef.Status getNodeStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getNodeStatus
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(Long nodeId)
getNodeRef
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.StoreRef> getStores()
getStores
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.StoreRef createStore(String protocol, String identifier)
createStore
in interface org.alfresco.service.cmr.repository.NodeService
public void deleteStore(org.alfresco.service.cmr.repository.StoreRef storeRef) throws org.alfresco.service.cmr.repository.InvalidStoreRefException
deleteStore
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- Alwaysorg.alfresco.service.cmr.repository.InvalidStoreRefException
public org.alfresco.service.cmr.repository.NodeRef getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef) throws org.alfresco.service.cmr.repository.InvalidStoreRefException
getRootNode
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidStoreRefException
public Set<org.alfresco.service.cmr.repository.NodeRef> getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef)
getAllRootNodes
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.ChildAssociationRef createNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName)
createNode
in interface org.alfresco.service.cmr.repository.NodeService
createNode(NodeRef, QName, QName, QName, Map)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
AbstractNodeServiceImpl
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
getChildAssocs
in class AbstractNodeServiceImpl
org.alfresco.service.cmr.repository.InvalidNodeRefException
RegexQNamePattern.MATCH_ALL
,
NodeService.getChildAssocs(NodeRef, QNamePattern, QNamePattern)
public 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
findNodes
in class AbstractNodeServiceImpl
public org.alfresco.service.cmr.repository.ChildAssociationRef createNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName, Map<org.alfresco.service.namespace.QName,Serializable> properties)
createNode
in interface org.alfresco.service.cmr.repository.NodeService
public void setChildAssociationIndex(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, int index)
setChildAssociationIndex
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.namespace.QName getType(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getType
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void setType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName typeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
setType
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
NodeService.setType(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName)
public void addAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName, Map<org.alfresco.service.namespace.QName,Serializable> aspectProperties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
addAspect
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public int countChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean isPrimary) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
countChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void removeAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
removeAspect
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public boolean hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
hasAspect
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public Set<org.alfresco.service.namespace.QName> getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getAspects
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
deleteNode
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.ChildAssociationRef addChild(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
addChild
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> addChild(Collection<org.alfresco.service.cmr.repository.NodeRef> parentRefs, org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
addChild
in interface org.alfresco.service.cmr.repository.NodeService
public void removeChild(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.cmr.repository.NodeRef childRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
removeChild
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public boolean removeChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
public boolean removeSecondaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeSecondaryChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
public Serializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getProperty
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public Map<org.alfresco.service.namespace.QName,Serializable> getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getProperties
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public Long getNodeAclId(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getNodeAclId
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qname, Serializable value) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
setProperty
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> properties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
Node
.
To remove a property, remove it from the map before calling this method. Null-valued properties are allowed.
If any of the values are null, a marker object is put in to mimic nulls. They will be turned back into a real nulls when the properties are requested again.
setProperties
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void addProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> properties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
addProperties
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void removeProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
removeProperty
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public Collection<org.alfresco.service.cmr.repository.NodeRef> getParents(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern)
getParentAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
AbstractNodeServiceImpl
getParentAssocs
in interface org.alfresco.service.cmr.repository.NodeService
getParentAssocs
in class AbstractNodeServiceImpl
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, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern)
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern, boolean preload)
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern, int maxResults, boolean preload)
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, Set<org.alfresco.service.namespace.QName> childNodeTypeQNames)
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef getChildByName(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName assocTypeQName, String childName)
getChildByName
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildrenByName(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName assocTypeQName, Collection<String> childNames)
getChildrenByName
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.ChildAssociationRef getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getPrimaryParent
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.AssociationRef createAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.cmr.repository.NodeRef targetRef, org.alfresco.service.namespace.QName assocTypeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.AssociationExistsException
createAssociation
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.AssociationExistsException
public void setAssociations(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QName assocTypeQName, List<org.alfresco.service.cmr.repository.NodeRef> targetRefs)
setAssociations
in interface org.alfresco.service.cmr.repository.NodeService
public Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocsWithoutParentAssocsOfType(org.alfresco.service.cmr.repository.NodeRef parent, org.alfresco.service.namespace.QName assocTypeQName)
getChildAssocsWithoutParentAssocsOfType
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName propertyQName, Serializable value)
getChildAssocsByPropertyValue
in interface org.alfresco.service.cmr.repository.NodeService
public void removeAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.cmr.repository.NodeRef targetRef, org.alfresco.service.namespace.QName assocTypeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
removeAssociation
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.AssociationRef getAssoc(Long id)
getAssoc
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.AssociationRef> getTargetAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QNamePattern qnamePattern)
getTargetAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.AssociationRef> getTargetAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QNamePattern qnamePattern, org.alfresco.service.namespace.QName propertyQName, Serializable propertyValue)
getTargetAssocsByPropertyValue
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.AssociationRef> getSourceAssocs(org.alfresco.service.cmr.repository.NodeRef targetRef, org.alfresco.service.namespace.QNamePattern qnamePattern)
getSourceAssocs
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.Path getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getPath
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
getPaths(NodeRef, boolean)
public List<org.alfresco.service.cmr.repository.Path> getPaths(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean primaryOnly) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
primaryOnly == true
, checks that there is exactly
one path.getPaths
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.NodeRef restoreNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef, org.alfresco.service.cmr.repository.NodeRef destinationParentNodeRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
restoreNode
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.ChildAssociationRef moveNode(org.alfresco.service.cmr.repository.NodeRef nodeToMoveRef, org.alfresco.service.cmr.repository.NodeRef newParentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
moveNode
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
getStoreArchiveNode
in interface org.alfresco.service.cmr.repository.NodeService
public <M extends Trait> ExtendedTrait<M> getTrait(Class<? extends M> traitAPI)
getTrait
in interface Extensible
Copyright © 2005–2017 Alfresco Software. All rights reserved.