|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.NodePropertyHandler
Iterface to handle callbacks when iterating over properties |
static interface |
NodeDaoService.NodeRefQueryCallback
Interface used to iterate over pure node 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 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)
|
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)
|
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.io.Serializable |
getNodeProperty(java.lang.Long nodeId,
QName propertyQName)
|
NodeRef.Status |
getNodeRefStatus(NodeRef nodeRef)
|
void |
getNodesWithAspect(QName aspectQName,
java.lang.Long minNodeId,
int count,
NodeDaoService.NodeRefQueryCallback resultsCallback)
|
void |
getNodesWithChildrenInDifferentStores(java.lang.Long minNodeId,
int count,
NodeDaoService.NodeRefQueryCallback resultsCallback)
|
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 |
getStoreRefs()
Fetch a list of all stores in the repository |
java.util.Collection |
getTargetNodeAssocs(java.lang.Long sourceNodeId)
|
int |
getTransactionCount()
|
Transaction |
getTxnById(long txnId)
|
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 |
int |
getTxnUpdateCount(long txnId)
|
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)
|
org.alfresco.util.Pair |
newNode(StoreRef storeRef,
java.lang.String uuid,
QName nodeTypeQName)
|
org.alfresco.util.Pair |
newNodeAssoc(java.lang.Long sourceNodeId,
java.lang.Long targetNodeId,
QName assocTypeQName)
|
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)
|
void |
updateNode(java.lang.Long nodeId,
StoreRef storeRef,
java.lang.String uuid,
QName nodeTypeQName)
|
| Method Detail |
|---|
boolean isDirty()
void flush()
java.util.List getStoreRefs()
org.alfresco.util.Pair getRootNode(StoreRef storeRef)
org.alfresco.util.Pair createStore(StoreRef storeRef)
StoreExistsException - if the store already existsNodeRef.Status getNodeRefStatus(NodeRef nodeRef)
org.alfresco.util.Pair newNode(StoreRef storeRef,
java.lang.String uuid,
QName nodeTypeQName)
throws InvalidTypeException
storeRef - the store to which the node must belonguuid - the node store-unique identifiernodeTypeQName - the type of the node
InvalidTypeException - if the node type is invalid or if the node type
is not a valid real node
org.alfresco.util.Pair moveNodeToStore(java.lang.Long nodeId,
StoreRef storeRef)
org.alfresco.util.Pair getNodePair(NodeRef nodeRef)
nodeRef - the node reference
org.alfresco.util.Pair getNodePair(java.lang.Long nodeId)
QName getNodeType(java.lang.Long nodeId)
void setNodeStatus(java.lang.Long nodeId)
java.lang.Long getNodeAccessControlList(java.lang.Long nodeId)
void setNodeAccessControlList(java.lang.Long nodeId,
java.lang.Long aclId)
void updateNode(java.lang.Long nodeId,
StoreRef storeRef,
java.lang.String uuid,
QName nodeTypeQName)
storeRef - the new store or null to keep the existing oneuuid - the new UUID for the node or null to keep it the samenodeTypeQName - the new type QName for the node or null to keep the existing one
java.io.Serializable getNodeProperty(java.lang.Long nodeId,
QName propertyQName)
java.util.Map getNodeProperties(java.lang.Long nodeId)
void addNodeProperty(java.lang.Long nodeId,
QName qname,
java.io.Serializable value)
void addNodeProperties(java.lang.Long nodeId,
java.util.Map properties)
void removeNodeProperties(java.lang.Long nodeId,
java.util.Set propertyQNames)
void setNodeProperties(java.lang.Long nodeId,
java.util.Map properties)
java.util.Set getNodeAspects(java.lang.Long nodeId)
void addNodeAspects(java.lang.Long nodeId,
java.util.Set aspectQNames)
void removeNodeAspects(java.lang.Long nodeId,
java.util.Set aspectQNames)
boolean hasNodeAspect(java.lang.Long nodeId,
QName aspectQName)
void deleteNode(java.lang.Long nodeId)
org.alfresco.util.Pair newChildAssoc(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
boolean isPrimary,
QName assocTypeQName,
QName qname)
ChildAssoc
void setChildNameUnique(java.lang.Long assocId,
java.lang.String childName)
childId - the child association to changechildName - the name to put on the association
org.alfresco.util.Pair updateChildAssoc(java.lang.Long childAssocId,
java.lang.Long parentNodeId,
java.lang.Long childNodeId,
QName assocTypeQName,
QName qname,
int index)
index - the association index. -1 to keep the existing value
void getChildAssocs(java.lang.Long parentNodeId,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback,
boolean recurse)
WARNING: Be sure selective when doing this call recursively.
parentNodeId - the parent noderesultsCallback - the callback that will be called with the resultsrecurse - 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.
void getChildAssocs(java.lang.Long parentNodeId,
QName assocQName,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
parentNodeId - the parent noderesultsCallback - the callback that will be called with the results
void getChildAssocsByTypeQNames(java.lang.Long parentNodeId,
java.util.List assocTypeQNames,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
void getChildAssocsByTypeQNameAndQName(java.lang.Long parentNodeId,
QName assocTypeQName,
QName assocQName,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
void getChildAssocsByChildTypes(java.lang.Long parentNodeId,
java.util.Set childNodeTypeQNames,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
void getPrimaryChildAssocs(java.lang.Long parentNodeId,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
void getPrimaryChildAssocsNotInSameStore(java.lang.Long parentNodeId,
NodeDaoService.ChildAssocRefQueryCallback resultsCallback)
void getNodesWithChildrenInDifferentStores(java.lang.Long minNodeId,
int count,
NodeDaoService.NodeRefQueryCallback resultsCallback)
void getNodesWithAspect(QName aspectQName,
java.lang.Long minNodeId,
int count,
NodeDaoService.NodeRefQueryCallback resultsCallback)
org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId,
QName assocTypeQName,
java.lang.String childName)
org.alfresco.util.Pair getChildAssoc(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
QName assocTypeQName,
QName qname)
ChildAssoc
boolean deleteChildAssoc(java.lang.Long parentNodeId,
java.lang.Long childNodeId,
QName assocTypeQName,
QName qname)
void deleteChildAssoc(java.lang.Long childAssocId)
assoc - the child association to removeorg.alfresco.util.Pair getPrimaryParentAssoc(java.lang.Long childNodeId)
java.util.Collection getParentAssocs(java.lang.Long childNodeId)
childNode - the child node
org.alfresco.util.Pair newNodeAssoc(java.lang.Long sourceNodeId,
java.lang.Long targetNodeId,
QName assocTypeQName)
NodeAssocjava.util.Collection getNodeAssocsToAndFrom(java.lang.Long nodeId)
org.alfresco.util.Pair getNodeAssoc(java.lang.Long sourceNodeId,
java.lang.Long targetNodeId,
QName assocTypeQName)
java.util.Collection getTargetNodeAssocs(java.lang.Long sourceNodeId)
java.util.Collection getSourceNodeAssocs(java.lang.Long targetNodeId)
void deleteNodeAssoc(java.lang.Long assocId)
assoc - the node association to remove
void getPropertyValuesByPropertyAndValue(StoreRef storeRef,
QName propertyQName,
java.lang.String value,
NodeDaoService.NodePropertyHandler handler)
storeRef - the store to search inpropertyQName - the qualified name of the propertyvalue - the string value to matchhandler - the callback to use while iterating over the URLs
void getPropertyValuesByActualType(DataTypeDefinition actualDataTypeDefinition,
NodeDaoService.NodePropertyHandler handler)
actualDataTypeDefinition - the persisted type to retrievehandler - the callback to use while iterating over the URLsTransaction getTxnById(long txnId)
java.util.List getTxnsByCommitTimeAscending(long fromTimeInclusive,
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 ignored
java.util.List getTxnsByCommitTimeDescending(long fromTimeInclusive,
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 getTxnsByMinCommitTime(java.util.List includeTxnIds)
includeTxnIds - a list of transaction IDs to search for
int getTxnUpdateCount(long txnId)
int getTxnDeleteCount(long txnId)
int getTransactionCount()
java.util.List getTxnChangesForStore(StoreRef storeRef,
long txnId)
java.util.List getTxnChanges(long txnId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||