Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)

126104 jvonka: Node (Peer) Associations - initial wip
   - /nodes/{srcId}/targets (GET, POST)
   - /nodes/{srcId}/targets/{tgtId} (DELETE)
   - /nodes/{tgtId}/sources (GET)
   - TODO ... assoc tests !
   - RA-742, RA-918, RA-919


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127568 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-06-02 21:39:26 +00:00
parent 355ae575ef
commit f3b786ec57
7 changed files with 492 additions and 1 deletions

View File

@@ -418,6 +418,21 @@ public class Node implements Comparable<Node>
return this.contentInfo;
}
// when appropriate, can be used to show association (in the context of a listing), for example
// GET /nodes/parentId/children, /nodes/parentId/secondary-children, /nodes/childId/parents
// GET /nodes/sourceId/targets, /nodes/targetId/sources
protected Assoc association;
public Assoc getAssociation()
{
return association;
}
public void setAssociation(Assoc association)
{
this.association = association;
}
// TODO for backwards compat' - set explicitly when needed (ie. favourites) (note: we could choose to have separate old Node/NodeImpl etc)