org.alfresco.repo.node.db
Interface NodeDaoService

All Known Implementing Classes:
HibernateNodeDaoServiceImpl

public interface NodeDaoService

Service layer accessing persistent node entities directly


Nested Class Summary
static interface NodeDaoService.ChildAssocRefQueryCallback
          Interface used to iterate over results from child association queries
static interface NodeDaoService.ChildAssocRefQueryCallbackFilter
          Interface used to iterate over results from child association queries
static interface NodeDaoService.NodePropertyHandler
          Iterface to handle callbacks when iterating over properties
static interface NodeDaoService.NodeRefQueryCallback
          Interface used to iterate over pure node results
static interface NodeDaoService.ObjectArrayQueryCallback
          Interface used to iterate over object array results
 
Method Summary
 void addNodeAspects(java.lang.Long nodeId, java.util.Set aspectQNames)
           
 void addNodeProperties(java.lang.Long nodeId, java.util.Map properties)
           
 void addNodeProperty(java.lang.Long nodeId, QName qname, java.io.Serializable value)
           
 org.alfresco.util.Pair createStore(StoreRef storeRef)
          Creates a unique store for the given protocol and identifier combination.
 void deleteChildAssoc(java.lang.Long childAssocId)
           
 boolean deleteChildAssoc(java.lang.Long parentNodeId, java.lang.Long childNodeId, QName assocTypeQName, QName qname)
          Deletes an explicit child association.
 void deleteNode(java.lang.Long nodeId)
          Deletes the node and all entities.
 void deleteNodeAssoc(java.lang.Long assocId)
           
 void flush()
          Flush the data changes to the persistence layer.
 org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId, java.lang.Long childNodeId, QName assocTypeQName, QName qname)
           
 org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId, QName assocTypeQName, java.lang.String childName)
           
 void getChildAssocs(java.lang.Long parentNodeId, NodeDaoService.ChildAssocRefQueryCallback resultsCallback, boolean recurse)
          Get a collection of all child association references for a given parent node.
 void getChildAssocs(java.lang.Long parentNodeId, QName assocTypeQName, java.util.Collection childNames, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
          Get a collection of all child associations references where the child name is an exact match.
 void getChildAssocs(java.lang.Long parentNodeId, QName assocQName, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
          Get a collection of all child association references for a given parent node.
 void getChildAssocsByChildTypes(java.lang.Long parentNodeId, java.util.Set childNodeTypeQNames, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
           
 void getChildAssocsByTypeQNameAndQName(java.lang.Long parentNodeId, QName assocTypeQName, QName assocQName, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
           
 void getChildAssocsByTypeQNames(java.lang.Long parentNodeId, java.util.List assocTypeQNames, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
           
 void getChildAssocsWithoutParentAssocsOfType(java.lang.Long parentNodeId, QName assocTypeQName, NodeDaoService.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.
 void getContentUrlsForStore(StoreRef storeRef, NodeDaoService.ObjectArrayQueryCallback resultsCallback)
          Iterate over all content nodes to get owner/creator and content url (in order to extract content size)
 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 getNodeAccessControlList(java.lang.Long nodeId)
           
 java.util.Set getNodeAspects(java.lang.Long nodeId)
           
 org.alfresco.util.Pair getNodeAssoc(java.lang.Long sourceNodeId, java.lang.Long targetNodeId, QName assocTypeQName)
           
 AssociationRef getNodeAssocOrNull(java.lang.Long assocId)
          Gets a node association by ID.
 java.util.Collection getNodeAssocsToAndFrom(java.lang.Long nodeId)
           
 org.alfresco.util.Pair getNodePair(java.lang.Long nodeId)
           
 org.alfresco.util.Pair getNodePair(NodeRef nodeRef)
           
 java.util.Map getNodeProperties(java.lang.Long nodeId)
           
 java.util.Map getNodePropertiesRaw(java.lang.Long nodeId)
           
 java.io.Serializable getNodeProperty(java.lang.Long nodeId, QName propertyQName)
           
 NodeRef.Status getNodeRefStatus(NodeRef nodeRef)
           
 void getNodesDeletedInOldTxns(java.lang.Long minNodeId, long maxCommitTime, int count, NodeDaoService.NodeRefQueryCallback resultsCallback)
          Gets a batch of deleted nodes in old transactions.
 void getNodesWithAspect(QName aspectQName, java.lang.Long minNodeId, int count, NodeDaoService.NodeRefQueryCallback resultsCallback)
           
 void getNodesWithChildrenInDifferentStore(java.lang.Long storeId, java.lang.Long minNodeId, int count, NodeDaoService.NodeRefQueryCallback resultsCallback)
          Deprecated. Since 2.2SP6, 3.1SP2, 3.2: not performant and not relevant to any use-cases
 QName getNodeType(java.lang.Long nodeId)
           
 java.util.Collection getParentAssocs(java.lang.Long childNodeId)
          Get all parent associations for the node.
 void getPrimaryChildAssocs(java.lang.Long parentNodeId, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
           
 void getPrimaryChildAssocsNotInSameStore(java.lang.Long parentNodeId, NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
           
 org.alfresco.util.Pair getPrimaryParentAssoc(java.lang.Long childNodeId)
          Finds the association between the node's primary parent and the node itself
 void getPropertyValuesByActualType(DataTypeDefinition actualDataTypeDefinition, NodeDaoService.NodePropertyHandler handler)
          Iterate over all property values for the given type definition.
 void getPropertyValuesByPropertyAndValue(StoreRef storeRef, QName propertyQName, java.lang.String value, NodeDaoService.NodePropertyHandler handler)
          Iterate over all nodes that have a given property type with a given string value.
 org.alfresco.util.Pair getRootNode(StoreRef storeRef)
           
 java.util.Collection getSourceNodeAssocs(java.lang.Long targetNodeId)
           
 java.util.List getStores()
          Fetch a list of all stores in the repository
 java.util.Collection getTargetNodeAssocs(java.lang.Long sourceNodeId)
           
 int getTransactionCount()
           
 Transaction getTxnById(long txnId)
          Retrieves a specific transaction.
 java.util.List getTxnChanges(long txnId)
           
 java.util.List getTxnChangesForStore(StoreRef storeRef, long txnId)
           
 int getTxnDeleteCount(long txnId)
           
 java.util.List getTxnsByCommitTimeAscending(long fromTimeInclusive, long toTimeExclusive, int count, java.util.List excludeTxnIds, boolean remoteOnly)
          Get all transactions in a given time range.
 java.util.List getTxnsByCommitTimeDescending(long fromTimeInclusive, long toTimeExclusive, int count, java.util.List excludeTxnIds, boolean remoteOnly)
          Get all transactions in a given time range.
 java.util.List getTxnsByMinCommitTime(java.util.List includeTxnIds)
          Get the lowest commit time for a set of transactions
 java.util.List getTxnsUnused(java.lang.Long minTxnId, long maxCommitTime, int count)
           
 int getTxnUpdateCount(long txnId)
           
 void getUsersWithoutUsage(StoreRef storeRef, NodeDaoService.ObjectArrayQueryCallback resultsCallback)
          Iterate over all person nodes to get users without a calculated usage
 void getUsersWithoutUsageProp(StoreRef storeRef, NodeDaoService.ObjectArrayQueryCallback resultsCallback)
          Iterate over all person nodes with missing usage property (for one-off patch)
 void getUsersWithUsage(StoreRef storeRef, NodeDaoService.ObjectArrayQueryCallback resultsCallback)
          Iterate over all person nodes to get users with a calculated usage
 boolean hasNodeAspect(java.lang.Long nodeId, QName aspectQName)
           
 boolean isDirty()
          Are there any pending changes which must be synchronized with the store?
 org.alfresco.util.Pair moveNodeToStore(java.lang.Long nodeId, StoreRef storeRef)
           
 org.alfresco.util.Pair newChildAssoc(java.lang.Long parentNodeId, java.lang.Long childNodeId, boolean isPrimary, QName assocTypeQName, QName qname, java.lang.String name)
           
 org.alfresco.util.Pair newNode(StoreRef storeRef, java.lang.String uuid, QName nodeTypeQName)
          Create a new node.
 org.alfresco.util.Pair newNodeAssoc(java.lang.Long sourceNodeId, java.lang.Long targetNodeId, QName assocTypeQName)
           
 void prependPaths(org.alfresco.util.Pair currentNodePair, org.alfresco.util.Pair currentRootNodePair, Path currentPath, java.util.Collection completedPaths, java.util.Stack assocIdStack, boolean primaryOnly)
           
 void purgeNode(java.lang.Long nodeId)
          Remove all traces of the node.
 void purgeTxn(java.lang.Long txnId)
           
 void removeNodeAspects(java.lang.Long nodeId, java.util.Set aspectQNames)
           
 void removeNodeProperties(java.lang.Long nodeId, java.util.Set propertyQNames)
           
 void setChildNameUnique(java.lang.Long assocId, java.lang.String childName)
          Change the name of the child node.
 void setNodeAccessControlList(java.lang.Long nodeId, java.lang.Long aclId)
           
 void setNodeProperties(java.lang.Long nodeId, java.util.Map properties)
           
 void setNodeStatus(java.lang.Long nodeId)
           
 org.alfresco.util.Pair updateChildAssoc(java.lang.Long childAssocId, java.lang.Long parentNodeId, java.lang.Long childNodeId, QName assocTypeQName, QName qname, int index, java.lang.String childName)
           
 void updateNode(java.lang.Long nodeId, StoreRef storeRef, java.lang.String uuid, QName nodeTypeQName)
           
 

Method Detail

isDirty

boolean isDirty()
Are there any pending changes which must be synchronized with the store?

Returns:
true => changes are pending

flush

void flush()
Flush the data changes to the persistence layer.


getStores

java.util.List getStores()
Fetch a list of all stores in the repository

Returns:
Returns a list of stores

getRootNode

org.alfresco.util.Pair getRootNode(StoreRef storeRef)

createStore

org.alfresco.util.Pair createStore(StoreRef storeRef)
Creates a unique store for the given protocol and identifier combination. The root node is created with the "root" aspect.

Returns:
Returns the root node, which is added automatically.
Throws:
StoreExistsException - if the store already exists

getNodeRefStatus

NodeRef.Status getNodeRefStatus(NodeRef nodeRef)

newNode

org.alfresco.util.Pair newNode(StoreRef storeRef,
                               java.lang.String uuid,
                               QName nodeTypeQName)
                               throws InvalidTypeException
Create a new node. Note that allowing the uuid to be assigned by passing in a null is more efficient.

Parameters:
storeRef - the store to which the node must belong
uuid - the node store-unique identifier, or null to assign a GUID
nodeTypeQName - the type of the node
Returns:
Returns a new node Id of the given type and attached to the store
Throws:
InvalidTypeException - if the node type is invalid or if the node type is not a valid real node

moveNodeToStore

org.alfresco.util.Pair moveNodeToStore(java.lang.Long nodeId,
                                       StoreRef storeRef)

getNodePair

org.alfresco.util.Pair getNodePair(NodeRef nodeRef)
Parameters:
nodeRef - the node reference
Returns:
Returns the node entity ID

getNodePair

org.alfresco.util.Pair getNodePair(java.lang.Long nodeId)

getNodeType

QName getNodeType(java.lang.Long nodeId)

setNodeStatus

void setNodeStatus(java.lang.Long nodeId)

getNodeAccessControlList

java.lang.Long getNodeAccessControlList(java.lang.Long nodeId)

setNodeAccessControlList

void setNodeAccessControlList(java.lang.Long nodeId,
                              java.lang.Long aclId)

updateNode

void updateNode(java.lang.Long nodeId,
                StoreRef storeRef,
                java.lang.String uuid,
                QName nodeTypeQName)
Parameters:
storeRef - the new store or null to keep the existing one
uuid - the new UUID for the node or null to keep it the same
nodeTypeQName - the new type QName for the node or null to keep the existing one

getNodeProperty

java.io.Serializable getNodeProperty(java.lang.Long nodeId,
                                     QName propertyQName)

getNodePropertiesRaw

java.util.Map getNodePropertiesRaw(java.lang.Long nodeId)
Parameters:
nodeId - the node's ID
Returns:
Returns a copy of the low-level properties including auditable properties
Throws:
ObjectNotFoundException - if the node ID is invalid
See Also:
NodeDaoService.getNodePair(NodeRef)

getNodeProperties

java.util.Map getNodeProperties(java.lang.Long nodeId)

addNodeProperty

void addNodeProperty(java.lang.Long nodeId,
                     QName qname,
                     java.io.Serializable value)

addNodeProperties

void addNodeProperties(java.lang.Long nodeId,
                       java.util.Map properties)

removeNodeProperties

void removeNodeProperties(java.lang.Long nodeId,
                          java.util.Set propertyQNames)

setNodeProperties

void setNodeProperties(java.lang.Long nodeId,
                       java.util.Map properties)

getNodeAspects

java.util.Set getNodeAspects(java.lang.Long nodeId)

addNodeAspects

void addNodeAspects(java.lang.Long nodeId,
                    java.util.Set aspectQNames)

removeNodeAspects

void removeNodeAspects(java.lang.Long nodeId,
                       java.util.Set aspectQNames)

hasNodeAspect

boolean hasNodeAspect(java.lang.Long nodeId,
                      QName aspectQName)

deleteNode

void deleteNode(java.lang.Long nodeId)
Deletes the node and all entities. Note that the node entry will still exist and be associated with a live transaction.


purgeNode

void purgeNode(java.lang.Long nodeId)
Remove all traces of the node. This assumes that the node has been marked for deletion using NodeDaoService.deleteNode(Long).


newChildAssoc

org.alfresco.util.Pair newChildAssoc(java.lang.Long parentNodeId,
                                     java.lang.Long childNodeId,
                                     boolean isPrimary,
                                     QName assocTypeQName,
                                     QName qname,
                                     java.lang.String name)
Parameters:
name - the cm:name to apply to the association
Returns:
Returns the persisted and filled association's ID
See Also:
ChildAssoc

setChildNameUnique

void setChildNameUnique(java.lang.Long assocId,
                        java.lang.String childName)
Change the name of the child node.

Parameters:
childId - the child association to change
childName - the name to put on the association

updateChildAssoc

org.alfresco.util.Pair updateChildAssoc(java.lang.Long childAssocId,
                                        java.lang.Long parentNodeId,
                                        java.lang.Long childNodeId,
                                        QName assocTypeQName,
                                        QName qname,
                                        int index,
                                        java.lang.String childName)
Parameters:
index - the association index. -1 to keep the existing value

getChildAssocs

void getChildAssocs(java.lang.Long parentNodeId,
                    NodeDaoService.ChildAssocRefQueryCallback resultsCallback,
                    boolean recurse)
Get a collection of all child association references for a given parent node.

WARNING: Be sure selective when doing this call recursively.

Parameters:
parentNodeId - the parent node
resultsCallback - the callback that will be called with the results
recurse - if true then iterate over the entire tree of nodes. Resursion is done top-down i.e. the first level children are all enumerated first, followed by all second level children and so on.

getChildAssocs

void getChildAssocs(java.lang.Long parentNodeId,
                    QName assocQName,
                    NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
Get a collection of all child association references for a given parent node.

Parameters:
parentNodeId - the parent node
resultsCallback - the callback that will be called with the results

getChildAssocs

void getChildAssocs(java.lang.Long parentNodeId,
                    QName assocTypeQName,
                    java.util.Collection childNames,
                    NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
Get a collection of all child associations references where the child name is an exact match. This method only works if the association type fundamentally supports unique-name enforcement.

Parameters:
parentNodeId - the parent node
assocTypeQName - the type of the association to check.
childNames - the names of the child nodes (cm:name). These will be matched exactly.
resultsCallback - the callback that will be called with the results

getChildAssocsByTypeQNames

void getChildAssocsByTypeQNames(java.lang.Long parentNodeId,
                                java.util.List assocTypeQNames,
                                NodeDaoService.ChildAssocRefQueryCallback resultsCallback)

getChildAssocsByTypeQNameAndQName

void getChildAssocsByTypeQNameAndQName(java.lang.Long parentNodeId,
                                       QName assocTypeQName,
                                       QName assocQName,
                                       NodeDaoService.ChildAssocRefQueryCallback resultsCallback)

getChildAssocsByChildTypes

void getChildAssocsByChildTypes(java.lang.Long parentNodeId,
                                java.util.Set childNodeTypeQNames,
                                NodeDaoService.ChildAssocRefQueryCallback resultsCallback)

getPrimaryChildAssocs

void getPrimaryChildAssocs(java.lang.Long parentNodeId,
                           NodeDaoService.ChildAssocRefQueryCallback resultsCallback)

getPrimaryChildAssocsNotInSameStore

void getPrimaryChildAssocsNotInSameStore(java.lang.Long parentNodeId,
                                         NodeDaoService.ChildAssocRefQueryCallback resultsCallback)

getNodesWithChildrenInDifferentStore

void getNodesWithChildrenInDifferentStore(java.lang.Long storeId,
                                          java.lang.Long minNodeId,
                                          int count,
                                          NodeDaoService.NodeRefQueryCallback resultsCallback)
Deprecated. Since 2.2SP6, 3.1SP2, 3.2: not performant and not relevant to any use-cases

Gets a set of nodes that have parents in the given store, but are themselves located in a different store.

Parameters:
storeId - the store of the parent nodes
minNodeId - the min node ID to return
count - the maximum number of results
resultsCallback - the node callback

getNodesWithAspect

void getNodesWithAspect(QName aspectQName,
                        java.lang.Long minNodeId,
                        int count,
                        NodeDaoService.NodeRefQueryCallback resultsCallback)

getChildAssocsWithoutParentAssocsOfType

void getChildAssocsWithoutParentAssocsOfType(java.lang.Long parentNodeId,
                                             QName assocTypeQName,
                                             NodeDaoService.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.

Parameters:
parentNodeId - the parent node ID
assocTypeQName - the association type QName
resultsCallback - the callback that will be called with the results

getChildAssoc

org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId,
                                     QName assocTypeQName,
                                     java.lang.String childName)
Returns:
Returns an association matching the given parent, type and child name (cm:name) - or null if not found

getChildAssoc

org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId,
                                     java.lang.Long childNodeId,
                                     QName assocTypeQName,
                                     QName qname)
Returns:
Returns a matching association or null if one was not found
See Also:
ChildAssoc

deleteChildAssoc

boolean deleteChildAssoc(java.lang.Long parentNodeId,
                         java.lang.Long childNodeId,
                         QName assocTypeQName,
                         QName qname)
Deletes an explicit child association.

Returns:
Returns true if the association was deleted, otherwise false

deleteChildAssoc

void deleteChildAssoc(java.lang.Long childAssocId)
Parameters:
assoc - the child association to remove

getPrimaryParentAssoc

org.alfresco.util.Pair getPrimaryParentAssoc(java.lang.Long childNodeId)
Finds the association between the node's primary parent and the node itself


getParentAssocs

java.util.Collection getParentAssocs(java.lang.Long childNodeId)
Get all parent associations for the node. This methods includes a cache safety check.

Parameters:
childNode - the child node
Returns:
Returns all parent associations for the node.

newNodeAssoc

org.alfresco.util.Pair newNodeAssoc(java.lang.Long sourceNodeId,
                                    java.lang.Long targetNodeId,
                                    QName assocTypeQName)
Returns:
Returns the persisted and filled association
See Also:
NodeAssoc

getNodeAssocsToAndFrom

java.util.Collection getNodeAssocsToAndFrom(java.lang.Long nodeId)
Returns:
Returns a list of all node associations associated with the given node

getNodeAssoc

org.alfresco.util.Pair getNodeAssoc(java.lang.Long sourceNodeId,
                                    java.lang.Long targetNodeId,
                                    QName assocTypeQName)
Returns:
Returns the node association or null if not found

getNodeAssocOrNull

AssociationRef getNodeAssocOrNull(java.lang.Long assocId)
Gets a node association by ID.

Parameters:
assocId - the association id
Returns:
the node association, or null if it does not exist

getTargetNodeAssocs

java.util.Collection getTargetNodeAssocs(java.lang.Long sourceNodeId)
Returns:
Returns all the node associations where the node is the source

getSourceNodeAssocs

java.util.Collection getSourceNodeAssocs(java.lang.Long targetNodeId)
Returns:
Returns all the node associations where the node is the target

deleteNodeAssoc

void deleteNodeAssoc(java.lang.Long assocId)
Parameters:
assoc - the node association to remove

getPropertyValuesByPropertyAndValue

void getPropertyValuesByPropertyAndValue(StoreRef storeRef,
                                         QName propertyQName,
                                         java.lang.String value,
                                         NodeDaoService.NodePropertyHandler handler)
Iterate over all nodes that have a given property type with a given string value.

Parameters:
storeRef - the store to search in
propertyQName - the qualified name of the property
value - the string value to match
handler - the callback to use while iterating over the URLs

getContentUrlsForStore

void getContentUrlsForStore(StoreRef storeRef,
                            NodeDaoService.ObjectArrayQueryCallback resultsCallback)
Iterate over all content nodes to get owner/creator and content url (in order to extract content size)

Parameters:
storeRef - the store to search in
handler - the callback to use while iterating over the URLs

getUsersWithoutUsageProp

void getUsersWithoutUsageProp(StoreRef storeRef,
                              NodeDaoService.ObjectArrayQueryCallback resultsCallback)
Iterate over all person nodes with missing usage property (for one-off patch)

Parameters:
storeRef - the store to search in
handler - the callback to use while iterating over the people

getUsersWithoutUsage

void getUsersWithoutUsage(StoreRef storeRef,
                          NodeDaoService.ObjectArrayQueryCallback resultsCallback)
Iterate over all person nodes to get users without a calculated usage

Parameters:
storeRef - the store to search in
handler - the callback to use while iterating over the people

getUsersWithUsage

void getUsersWithUsage(StoreRef storeRef,
                       NodeDaoService.ObjectArrayQueryCallback resultsCallback)
Iterate over all person nodes to get users with a calculated usage

Parameters:
storeRef - the store to search in
handler - the callback to use while iterating over the people

getPropertyValuesByActualType

void getPropertyValuesByActualType(DataTypeDefinition actualDataTypeDefinition,
                                   NodeDaoService.NodePropertyHandler handler)
Iterate over all property values for the given type definition. This will also dig out values that were persisted as type d:any.

Parameters:
actualDataTypeDefinition - the persisted type to retrieve
handler - the callback to use while iterating over the URLs

getNodesDeletedInOldTxns

void getNodesDeletedInOldTxns(java.lang.Long minNodeId,
                              long maxCommitTime,
                              int count,
                              NodeDaoService.NodeRefQueryCallback resultsCallback)
Gets a batch of deleted nodes in old transactions.

Parameters:
minNodeId - the minimum node ID
maxCommitTime - the maximum commit time (to set a minimum transaction age)
count - the maximum number of results (for batching)
resultsCallback - the callback to pass results back

getMaxTxnIdByCommitTime

java.lang.Long getMaxTxnIdByCommitTime(long maxCommitTime)
Retrieves the maximum transaction ID for which the commit time is less than the given time.

Parameters:
maxCommitTime - the max commit time (ms)
Returns:
the last transaction on or before the given time

getTxnById

Transaction getTxnById(long txnId)
Retrieves a specific transaction.

Parameters:
txnId - the unique transaction ID.
Returns:
the requested transaction or null

getTxnsByCommitTimeAscending

java.util.List getTxnsByCommitTimeAscending(long fromTimeInclusive,
                                            long toTimeExclusive,
                                            int count,
                                            java.util.List excludeTxnIds,
                                            boolean remoteOnly)
Get all transactions in a given time range. Since time-based retrieval doesn't guarantee uniqueness for any given millisecond, a list of optional exclusions may be provided.

Parameters:
excludeTxnIds - a list of txn IDs to ignore. null is allowed.
remoteOnly - true if locally-written transactions must be ignored

getTxnsByCommitTimeDescending

java.util.List getTxnsByCommitTimeDescending(long fromTimeInclusive,
                                             long toTimeExclusive,
                                             int count,
                                             java.util.List excludeTxnIds,
                                             boolean remoteOnly)
Get all transactions in a given time range. Since time-based retrieval doesn't guarantee uniqueness for any given millisecond, a list of optional exclusions may be provided.

Parameters:
excludeTxnIds - a list of txn IDs to ignore. null is allowed.
remoteOnly - true if locally-written transactions must be ignored

getTxnsByMinCommitTime

java.util.List getTxnsByMinCommitTime(java.util.List includeTxnIds)
Get the lowest commit time for a set of transactions

Parameters:
includeTxnIds - a list of transaction IDs to search for
Returns:
Returns the transactions by commit time for the given IDs

getTxnUpdateCount

int getTxnUpdateCount(long txnId)

getTxnDeleteCount

int getTxnDeleteCount(long txnId)

getTransactionCount

int getTransactionCount()

getTxnChangesForStore

java.util.List getTxnChangesForStore(StoreRef storeRef,
                                     long txnId)

getTxnChanges

java.util.List getTxnChanges(long txnId)

getTxnsUnused

java.util.List getTxnsUnused(java.lang.Long minTxnId,
                             long maxCommitTime,
                             int count)

purgeTxn

void purgeTxn(java.lang.Long txnId)

getMinTxnCommitTime

java.lang.Long getMinTxnCommitTime()

getMaxTxnCommitTime

java.lang.Long getMaxTxnCommitTime()

prependPaths

void prependPaths(org.alfresco.util.Pair currentNodePair,
                  org.alfresco.util.Pair currentRootNodePair,
                  Path currentPath,
                  java.util.Collection completedPaths,
                  java.util.Stack assocIdStack,
                  boolean primaryOnly)
                  throws CyclicChildRelationshipException
Throws:
CyclicChildRelationshipException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.