mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV/SWIFT to HEAD
27584: ALF-8189: RINF 16: Upgrade peer associations - Create scripts and upgrades to add alf_node_assoc.assoc_index for all DBs - Part of ALF-7404: RINF 16: Peer association enhancements 27640: Re-added changes from rev 27125, which were overwritten by 27584 (ALF-8334: RSOLR 013) 28295: (RECORD ONLY) Upgrade Tika and POI to the latest versions git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28309 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -248,10 +248,15 @@ public interface NodeDAO extends NodeBulkLoader
|
||||
* Node Assocs
|
||||
*/
|
||||
|
||||
public Long newNodeAssoc(
|
||||
Long sourceNodeId,
|
||||
Long targetNodeId,
|
||||
QName assocTypeQName);
|
||||
/**
|
||||
* Create a new association
|
||||
*
|
||||
* @param sourceNodeId the association source
|
||||
* @param targetNodeId the association target
|
||||
* @param assocTypeQName the type of the association (will be resolved to an ID)
|
||||
* @param insertAfter ID of the association to preceed the new one (optional - add last)
|
||||
*/
|
||||
public Long newNodeAssoc(Long sourceNodeId, Long targetNodeId, QName assocTypeQName, Long insertAfter);
|
||||
|
||||
/**
|
||||
* Remove a specific node association
|
||||
@@ -279,14 +284,18 @@ public interface NodeDAO extends NodeBulkLoader
|
||||
public int removeNodeAssocsToAndFrom(Long nodeId, Set<QName> assocTypeQNames);
|
||||
|
||||
/**
|
||||
* @param targetNodeId the target of the association
|
||||
* @param typeQName the type of the association (optional)
|
||||
* @return Returns all the node associations where the node is the </b>target</b>
|
||||
*/
|
||||
public Collection<Pair<Long, AssociationRef>> getSourceNodeAssocs(Long targetNodeId);
|
||||
public Collection<Pair<Long, AssociationRef>> getSourceNodeAssocs(Long targetNodeId, QName typeQName);
|
||||
|
||||
/**
|
||||
* @param sourceNodeId the source of the association
|
||||
* @param typeQName the type of the association (optional)
|
||||
* @return Returns all the node associations where the node is the <b>source</b>
|
||||
*/
|
||||
public Collection<Pair<Long, AssociationRef>> getTargetNodeAssocs(Long sourceNodeId);
|
||||
public Collection<Pair<Long, AssociationRef>> getTargetNodeAssocs(Long sourceNodeId, QName typeQName);
|
||||
|
||||
/**
|
||||
* @return Returns a specific node association with the given ID
|
||||
|
Reference in New Issue
Block a user