|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeDAO
DAO services for alf_node and related tables
Nested Class Summary | |
---|---|
static interface |
NodeDAO.ChildAssocRefQueryCallback
Interface used to iterate over results from child association queries |
static interface |
NodeDAO.NodeRefQueryCallback
Interface used to iterate over pure node results |
Method Summary | |
---|---|
boolean |
addNodeAspects(java.lang.Long nodeId,
java.util.Set aspectQNames)
|
boolean |
addNodeProperties(java.lang.Long nodeId,
java.util.Map properties)
|
boolean |
addNodeProperty(java.lang.Long nodeId,
org.alfresco.service.namespace.QName qname,
java.io.Serializable value)
|
void |
cycleCheck(org.alfresco.util.Pair nodePair)
Potentially cheaper than evaluating all of a node's paths to check for child association cycles. |
void |
deleteChildAssoc(java.lang.Long assocId)
|
void |
deleteNode(java.lang.Long nodeId)
Deletes the node and all entities. |
boolean |
exists(java.lang.Long nodeId)
|
boolean |
exists(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Find out if a node exists. |
boolean |
exists(org.alfresco.service.cmr.repository.StoreRef storeRef)
Find out if a store exists or not |
java.util.Set |
getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef)
|
org.alfresco.util.Pair |
getChildAssoc(java.lang.Long assocId)
Get a specific association |
org.alfresco.util.Pair |
getChildAssoc(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Get a specific child association given all the determining data. |
org.alfresco.util.Pair |
getChildAssoc(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
java.lang.String childName)
Get a child association for given parent node, association type and child node name (cm:name). |
void |
getChildAssocs(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
java.lang.Boolean isPrimary,
java.lang.Boolean sameStore,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Get the child associations of a given parent node, optionally filtering on association QName and association type QName. |
void |
getChildAssocs(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
java.util.Collection childNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Get the child associations of a given parent node, filtering on type QName and the cm:name of the child nodes. |
java.util.List |
getChildAssocs(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
int maxResults,
boolean preload)
Gets the first n child associations of a given parent node, optionally filtering on association QName and association type QName. |
void |
getChildAssocs(java.lang.Long parentNodeId,
java.util.Set assocTypeQNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Get the child associations of a given parent node, optionally filtering on type QName. |
void |
getChildAssocsByChildTypes(java.lang.Long parentNodeId,
java.util.Set childNodeTypeQNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
|
void |
getChildAssocsByPropertyValue(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName propertyQName,
java.io.Serializable nodeValue,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
|
void |
getChildAssocsWithoutParentAssocsOfType(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Gets the set of child associations of a certain parent node without parent associations of a certain type to other nodes with the same parent! In effect the 'orphans' with respect to a certain association type. |
java.lang.Long |
getCurrentTransactionId()
|
java.lang.Long |
getMaxTxnCommitTime()
|
java.lang.Long |
getMaxTxnIdByCommitTime(long maxCommitTime)
Retrieves the maximum transaction ID for which the commit time is less than the given time. |
java.lang.Long |
getMinTxnCommitTime()
|
java.lang.Long |
getNodeAclId(java.lang.Long nodeId)
|
java.util.Set |
getNodeAspects(java.lang.Long nodeId)
|
org.alfresco.util.Pair |
getNodeAssoc(java.lang.Long assocId)
|
org.alfresco.util.Pair |
getNodeAssocOrNull(java.lang.Long assocId)
|
org.alfresco.util.Pair |
getNodePair(java.lang.Long nodeId)
|
org.alfresco.util.Pair |
getNodePair(org.alfresco.service.cmr.repository.NodeRef nodeRef)
|
java.util.Map |
getNodeProperties(java.lang.Long nodeId)
|
java.io.Serializable |
getNodeProperty(java.lang.Long nodeId,
org.alfresco.service.namespace.QName propertyQName)
|
org.alfresco.service.cmr.repository.NodeRef.Status |
getNodeRefStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the current status of the node, including deleted nodes. |
void |
getNodesWithAspects(java.util.Set aspectQNames,
java.lang.Long minNodeId,
java.lang.Long maxNodeId,
NodeDAO.NodeRefQueryCallback resultsCallback)
Get nodes with aspects between the given ranges |
org.alfresco.service.namespace.QName |
getNodeType(java.lang.Long nodeId)
|
void |
getParentAssocs(java.lang.Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
java.lang.Boolean isPrimary,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Get the parent association of a given parent node, optionally filtering on association QName and association type QName. |
java.util.List |
getPaths(org.alfresco.util.Pair nodePair,
boolean primaryOnly)
Build the paths for a node. |
java.util.List |
getPrimaryChildrenAcls(java.lang.Long nodeId)
Fetch all primary child node IDs and corresponding ACL IDs. |
org.alfresco.util.Pair |
getPrimaryParentAssoc(java.lang.Long childNodeId)
Finds the association between the node's primary parent and the node itself |
org.alfresco.util.Pair |
getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
|
java.util.Collection |
getSourceNodeAssocs(java.lang.Long targetNodeId,
org.alfresco.service.namespace.QName typeQName)
|
java.util.List |
getStores()
Fetch a list of all stores in the repository |
java.util.Collection |
getTargetNodeAssocs(java.lang.Long sourceNodeId,
org.alfresco.service.namespace.QName typeQName)
|
int |
getTransactionCount()
|
Transaction |
getTxnById(java.lang.Long txnId)
Retrieves a specific transaction. |
java.util.List |
getTxnChanges(java.lang.Long txnId)
|
java.util.List |
getTxnChangesForStore(org.alfresco.service.cmr.repository.StoreRef storeRef,
java.lang.Long txnId)
|
int |
getTxnDeleteCount(java.lang.Long txnId)
|
java.util.List |
getTxnsByCommitTimeAscending(java.util.List includeTxnIds)
Get a specific list of transactions ordered by commit time. |
java.util.List |
getTxnsByCommitTimeAscending(java.lang.Long fromTimeInclusive,
java.lang.Long toTimeExclusive,
int count,
java.util.List excludeTxnIds,
boolean remoteOnly)
Get all transactions in a given time range. |
java.util.List |
getTxnsByCommitTimeDescending(java.lang.Long fromTimeInclusive,
java.lang.Long toTimeExclusive,
int count,
java.util.List excludeTxnIds,
boolean remoteOnly)
Get all transactions in a given time range. |
java.util.List |
getTxnsUnused(java.lang.Long minTxnId,
long maxCommitTime,
int count)
|
int |
getTxnUpdateCount(java.lang.Long txnId)
|
boolean |
hasNodeAspect(java.lang.Long nodeId,
org.alfresco.service.namespace.QName aspectQName)
|
boolean |
isInCurrentTxn(java.lang.Long nodeId)
|
org.alfresco.util.Pair |
moveNode(java.lang.Long childNodeId,
java.lang.Long newParentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Update a node's primary association, giving it a new parent and new association parameters. |
void |
moveStore(org.alfresco.service.cmr.repository.StoreRef oldStoreRef,
org.alfresco.service.cmr.repository.StoreRef newStoreRef)
Changes the old store reference to the new store reference. |
org.alfresco.util.Pair |
newChildAssoc(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
java.lang.String childNodeName)
Create a new child association. |
ChildAssocEntity |
newNode(java.lang.Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.cmr.repository.StoreRef storeRef,
java.lang.String uuid,
org.alfresco.service.namespace.QName nodeTypeQName,
java.util.Locale nodeLocale,
java.lang.String childNodeName,
java.util.Map auditableProperties)
Create a new node. |
java.lang.Long |
newNodeAssoc(java.lang.Long sourceNodeId,
java.lang.Long targetNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
int assocIndex)
Create a new association |
org.alfresco.util.Pair |
newStore(org.alfresco.service.cmr.repository.StoreRef storeRef)
Creates a unique store for the given protocol and identifier combination. |
int |
purgeNodes(long maxTxnCommitTimeMs)
Purge deleted nodes where their participating transactions are older than a given time. |
void |
purgeTxn(java.lang.Long txnId)
|
boolean |
removeNodeAspects(java.lang.Long nodeId)
|
boolean |
removeNodeAspects(java.lang.Long nodeId,
java.util.Set aspectQNames)
|
int |
removeNodeAssoc(java.lang.Long sourceNodeId,
java.lang.Long targetNodeId,
org.alfresco.service.namespace.QName assocTypeQName)
Remove a specific node association |
int |
removeNodeAssocs(java.util.List ids)
Remove all node associations of given IDs |
int |
removeNodeAssocsToAndFrom(java.lang.Long nodeId)
Remove all node associations that share the given node. |
int |
removeNodeAssocsToAndFrom(java.lang.Long nodeId,
java.util.Set assocTypeQNames)
Remove all node associations of given types that share the given node. |
boolean |
removeNodeProperties(java.lang.Long nodeId,
java.util.Set propertyQNames)
|
java.util.List |
selectProperties(java.util.Collection propertyDefs)
Used by the re-encryptor to re-encrypt encryptable properties with a new encryption key. |
int |
setChildAssocIndex(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
int index)
Sets the association index ordering. |
void |
setChildAssocsUniqueName(java.lang.Long childNodeId,
java.lang.String childName)
Bulk-update all unique name (cm:name) index for parent associations of a given node. |
boolean |
setModifiedDate(java.lang.Long nodeId,
java.util.Date date)
Pull the cm:modified up to the current time without changing any other cm:auditable properties. |
void |
setNodeAclId(java.lang.Long nodeId,
java.lang.Long aclId)
|
void |
setNodeAssocIndex(java.lang.Long id,
int assocIndex)
Update an existing assoc's index. |
void |
setNodeDefiningAclId(java.lang.Long nodeId,
long id)
Used in ACL upgrade only to set the acl id with mimimal overhead |
boolean |
setNodeProperties(java.lang.Long nodeId,
java.util.Map properties)
|
void |
setPrimaryChildrenSharedAclId(java.lang.Long primaryParentNodeId,
java.lang.Long optionalOldSharedAlcIdInAdditionToNull,
java.lang.Long newSharedAclId)
|
boolean |
updateNode(java.lang.Long nodeId,
org.alfresco.service.namespace.QName nodeTypeQName,
java.util.Locale nodeLocale)
|
Methods inherited from interface org.alfresco.repo.node.NodeBulkLoader |
---|
cacheNodes, cacheNodesById, clear |
Method Detail |
---|
java.lang.Long getCurrentTransactionId()
java.util.List getStores()
boolean exists(org.alfresco.service.cmr.repository.StoreRef storeRef)
storeRef
- the store
org.alfresco.util.Pair newStore(org.alfresco.service.cmr.repository.StoreRef storeRef)
org.alfresco.service.cmr.repository.StoreExistsException
- if the store already existsvoid moveStore(org.alfresco.service.cmr.repository.StoreRef oldStoreRef, org.alfresco.service.cmr.repository.StoreRef newStoreRef)
oldStoreRef
- the existing storenewStoreRef
- the new storeorg.alfresco.util.Pair getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
java.util.Set getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef)
boolean exists(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the potentially valid node reference
boolean exists(java.lang.Long nodeId)
boolean isInCurrentTxn(java.lang.Long nodeId)
org.alfresco.service.cmr.repository.InvalidNodeRefException
- if there is no record of the node, past or presentorg.alfresco.service.cmr.repository.NodeRef.Status getNodeRefStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node reference
org.alfresco.util.Pair getNodePair(org.alfresco.service.cmr.repository.NodeRef nodeRef)
org.alfresco.util.Pair getNodePair(java.lang.Long nodeId)
org.alfresco.service.namespace.QName getNodeType(java.lang.Long nodeId)
java.lang.Long getNodeAclId(java.lang.Long nodeId)
ChildAssocEntity newNode(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String uuid, org.alfresco.service.namespace.QName nodeTypeQName, java.util.Locale nodeLocale, java.lang.String childNodeName, java.util.Map auditableProperties) throws org.alfresco.service.cmr.dictionary.InvalidTypeException
parentNodeId
- the ID of the parent node (may not be null)assocTypeQName
- the primary association (may not be null)assocQName
- the association path (may not be null)storeRef
- the store to which the node must belonguuid
- the node store-unique identifier, or null to assign a GUIDnodeTypeQName
- the type of the nodechildNodeName
- the cm:name of the child node or null to use the node's UUIDauditableProperties
- a map containing any cm:auditable properties for the node
org.alfresco.service.cmr.dictionary.InvalidTypeException
- if the node type is invalid or if the node type
is not a valid real node
NodeExistsException
- if the target reference is already taken by a live nodeorg.alfresco.util.Pair moveNode(java.lang.Long childNodeId, java.lang.Long newParentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
childNodeId
- the child node that is movingnewParentNodeId
- the new parent node (may not be null)assocTypeQName
- the new association type or null to keep the existing typeassocQName
- the new association qname or null to keep the existing name
NodeExistsException
- if the target UUID of the move (in case of a store move) already existsboolean updateNode(java.lang.Long nodeId, org.alfresco.service.namespace.QName nodeTypeQName, java.util.Locale nodeLocale)
nodeTypeQName
- the new type QName for the node or null to keep the existing onenodeLocale
- the new locale for the node or null to keep the existing one
void setNodeAclId(java.lang.Long nodeId, java.lang.Long aclId)
void setPrimaryChildrenSharedAclId(java.lang.Long primaryParentNodeId, java.lang.Long optionalOldSharedAlcIdInAdditionToNull, java.lang.Long newSharedAclId)
void deleteNode(java.lang.Long nodeId)
int purgeNodes(long maxTxnCommitTimeMs)
maxTxnCommitTimeMs
- ignore transactions created after this time
java.io.Serializable getNodeProperty(java.lang.Long nodeId, org.alfresco.service.namespace.QName propertyQName)
java.util.Map getNodeProperties(java.lang.Long nodeId)
boolean setNodeProperties(java.lang.Long nodeId, java.util.Map properties)
boolean addNodeProperty(java.lang.Long nodeId, org.alfresco.service.namespace.QName qname, java.io.Serializable value)
boolean addNodeProperties(java.lang.Long nodeId, java.util.Map properties)
boolean removeNodeProperties(java.lang.Long nodeId, java.util.Set propertyQNames)
boolean setModifiedDate(java.lang.Long nodeId, java.util.Date date)
nodeId
- the node to changemodifiedDate
- the date to set for cm:modified
java.util.Set getNodeAspects(java.lang.Long nodeId)
boolean hasNodeAspect(java.lang.Long nodeId, org.alfresco.service.namespace.QName aspectQName)
boolean addNodeAspects(java.lang.Long nodeId, java.util.Set aspectQNames)
boolean removeNodeAspects(java.lang.Long nodeId)
boolean removeNodeAspects(java.lang.Long nodeId, java.util.Set aspectQNames)
void getNodesWithAspects(java.util.Set aspectQNames, java.lang.Long minNodeId, java.lang.Long maxNodeId, NodeDAO.NodeRefQueryCallback resultsCallback)
aspectQNames
- the aspects that must be on the nodesminNodeId
- the minimum node ID (inclusive)maxNodeId
- the maximum node ID (exclusive)resultsCallback
- callback to process resultsjava.lang.Long newNodeAssoc(java.lang.Long sourceNodeId, java.lang.Long targetNodeId, org.alfresco.service.namespace.QName assocTypeQName, int assocIndex)
sourceNodeId
- the association sourcetargetNodeId
- the association targetassocTypeQName
- the type of the association (will be resolved to an ID)assocIndex
- the index of the new association (-1 indicates next value)void setNodeAssocIndex(java.lang.Long id, int assocIndex)
id
- the association IDassocIndex
- the new index (greater than 0)int removeNodeAssoc(java.lang.Long sourceNodeId, java.lang.Long targetNodeId, org.alfresco.service.namespace.QName assocTypeQName)
assocId
- the node association ID to remove
int removeNodeAssocsToAndFrom(java.lang.Long nodeId)
nodeId
- the source or target of the associations
int removeNodeAssocsToAndFrom(java.lang.Long nodeId, java.util.Set assocTypeQNames)
nodeId
- the source or target of the associationsassocTypeQNames
- the types that should be deleted
int removeNodeAssocs(java.util.List ids)
ids
- the IDs of the associations to remove
java.util.Collection getSourceNodeAssocs(java.lang.Long targetNodeId, org.alfresco.service.namespace.QName typeQName)
targetNodeId
- the target of the associationtypeQName
- the type of the association (optional)
java.util.Collection getTargetNodeAssocs(java.lang.Long sourceNodeId, org.alfresco.service.namespace.QName typeQName)
sourceNodeId
- the source of the associationtypeQName
- the type of the association (optional)
org.alfresco.util.Pair getNodeAssocOrNull(java.lang.Long assocId)
org.alfresco.util.Pair getNodeAssoc(java.lang.Long assocId)
org.springframework.dao.ConcurrencyFailureException
- if the association ID is invalidorg.alfresco.util.Pair newChildAssoc(java.lang.Long parentNodeId, java.lang.Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, java.lang.String childNodeName)
childNodeName
- the cm:name to apply to the association
void deleteChildAssoc(java.lang.Long assocId)
assocId
- the ID of the child association to deleteint setChildAssocIndex(java.lang.Long parentNodeId, java.lang.Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int index)
parentNodeId
- the parent node IDchildNodeId
- the child node IDassocTypeQName
- the association typeassocQName
- the association path qualified namenewIndex
- the new index
void setChildAssocsUniqueName(java.lang.Long childNodeId, java.lang.String childName)
childNodeId
- the child node who's name is changingchildName
- the new cm:name valueorg.alfresco.util.Pair getChildAssoc(java.lang.Long assocId)
assocId
- the ID of the association
org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId, java.lang.Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
The implementation may find multiple entries (there is no constraint to prevent it) although the cm:name constraint will normally prevent the association from being created twice. The lowest ID association will always be returned and the others will be cleaned up if the transaction is read-write.
void getChildAssocs(java.lang.Long parentNodeId, java.lang.Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, java.lang.Boolean isPrimary, java.lang.Boolean sameStore, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
parentNodeId
- the parent node IDchildNodeId
- the child node ID to filter on; null for no filteringassocTypeQName
- the association type qname to filter on; null for no filteringassocQName
- the association qname to filter on; null for no filteringisPrimary
- filter for primary (true) or secondary associations;
null for no filtering.sameStore
- null to ignore, true to only get children that are in the
same store as the parent, or false to only get children that are in
a different store from the parent.resultsCallback
- the callback that will be called with the resultsjava.util.List getChildAssocs(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int maxResults, boolean preload)
parentNodeId
- the parent node IDassocTypeQName
- the association type qname to filter on; null for no filteringassocQName
- the association qname to filter on; null for no filteringmaxResults
- the maximum number of results to return. The query will be terminated efficiently
after that number of resultspreload
- should the child nodes be batch loaded?
void getChildAssocs(java.lang.Long parentNodeId, java.util.Set assocTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
parentNodeId
- the parent node IDassocTypeQNames
- the association type qnames to filter on; null for no filteringresultsCallback
- the callback that will be called with the resultsorg.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, java.lang.String childName)
parentNodeId
- the parent Node IDassocTypeQName
- the association type to filter onchildName
- the cm:name value to filter on
void getChildAssocs(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, java.util.Collection childNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
NOTE: This method only works if the association type fundamentally supports unique-name enforcement.
parentNodeId
- the parent nodeassocTypeQName
- the type of the association to check; or null for no filtering.
If the association type is not specified, then the same child node may be
included several times.childNames
- the names of the child nodes (cm:name). These will be matched exactly.resultsCallback
- the callback that will be called with the resultsvoid getChildAssocsByChildTypes(java.lang.Long parentNodeId, java.util.Set childNodeTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
void getChildAssocsWithoutParentAssocsOfType(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
parentNodeId
- the parent node IDassocTypeQName
- the association type QNameresultsCallback
- the callback that will be called with the resultsorg.alfresco.util.Pair getPrimaryParentAssoc(java.lang.Long childNodeId)
void getParentAssocs(java.lang.Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, java.lang.Boolean isPrimary, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
childNodeId
- the child node IDassocTypeQName
- the association type qname to filter on; null for no filteringassocQName
- the association qname to filter on; null for no filteringisPrimary
- filter for primary (true) or secondary associations;
null for no filtering.resultsCallback
- the callback that will be called with the resultsjava.util.List getPrimaryChildrenAcls(java.lang.Long nodeId)
nodeId
- the parent node ID
java.util.List getPaths(org.alfresco.util.Pair nodePair, boolean primaryOnly) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
primaryOnly == true
, checks that there is exactly
one path.
currentNodePair
- the leave or child node to start withprimaryOnly
- true to follow only primary parent associations
org.alfresco.service.cmr.repository.InvalidNodeRefException
void cycleCheck(org.alfresco.util.Pair nodePair)
nodePair
- the node to checkjava.lang.Long getMaxTxnIdByCommitTime(long maxCommitTime)
maxCommitTime
- the max commit time (ms)
Transaction getTxnById(java.lang.Long txnId)
txnId
- the unique transaction ID.
java.util.List getTxnsByCommitTimeAscending(java.lang.Long fromTimeInclusive, java.lang.Long toTimeExclusive, int count, java.util.List excludeTxnIds, boolean remoteOnly)
excludeTxnIds
- a list of txn IDs to ignore. null is allowed.remoteOnly
- true if locally-written transactions must be ignoredjava.util.List getTxnsByCommitTimeDescending(java.lang.Long fromTimeInclusive, java.lang.Long toTimeExclusive, int count, java.util.List excludeTxnIds, boolean remoteOnly)
excludeTxnIds
- a list of txn IDs to ignore. null is allowed.remoteOnly
- true if locally-written transactions must be ignoredjava.util.List getTxnsByCommitTimeAscending(java.util.List includeTxnIds)
includeTxnIds
- a list of transaction IDs to search for
int getTxnUpdateCount(java.lang.Long txnId)
int getTxnDeleteCount(java.lang.Long txnId)
int getTransactionCount()
java.util.List getTxnChangesForStore(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.Long txnId)
java.util.List getTxnChanges(java.lang.Long txnId)
java.util.List getTxnsUnused(java.lang.Long minTxnId, long maxCommitTime, int count)
void purgeTxn(java.lang.Long txnId)
java.lang.Long getMinTxnCommitTime()
java.lang.Long getMaxTxnCommitTime()
void getChildAssocsByPropertyValue(java.lang.Long parentNodeId, org.alfresco.service.namespace.QName propertyQName, java.io.Serializable nodeValue, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
parentNodeId
- childNodeTypeQNames
- value
- resultsCallback
- void setNodeDefiningAclId(java.lang.Long nodeId, long id)
nodeId
- id
- java.util.List selectProperties(java.util.Collection propertyDefs)
propertyDefs
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |