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:
Derek Hulley
2011-06-09 14:19:10 +00:00
parent ae765f91d9
commit eb64645c97
17 changed files with 425 additions and 60 deletions

View File

@@ -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