mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
CMIS Relationship support in AtomPub binding
- getRelationships - getRelationship - createRelationship - unit tests for above TODO: delete relationship, includeRelationships flag git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14461 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ package org.alfresco.cmis;
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.repository.AssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
|
||||
@@ -86,7 +87,28 @@ public interface CMISServices
|
||||
public NodeRef[] getCheckedOut(String username, NodeRef folder, boolean includeDescendants);
|
||||
|
||||
/**
|
||||
* Get a single property
|
||||
* Query for relationship
|
||||
*
|
||||
* @param relDef
|
||||
* @param source
|
||||
* @param target
|
||||
* @return relationship
|
||||
*/
|
||||
public AssociationRef getRelationship(CMISTypeDefinition relDef, NodeRef source, NodeRef target);
|
||||
|
||||
/**
|
||||
* Query for relationships
|
||||
*
|
||||
* @param item node to query relationships for
|
||||
* @param relDef type of relationship to query (or null, for all relationships)
|
||||
* @param includeSubTypes
|
||||
* @param direction limit direction of relationships to query (or null, for both directions)
|
||||
* @return relationships
|
||||
*/
|
||||
public AssociationRef[] getRelationships(NodeRef node, CMISTypeDefinition relDef, boolean includeSubTypes, CMISRelationshipDirectionEnum direction);
|
||||
|
||||
/**
|
||||
* Get a single property for a node
|
||||
*
|
||||
* @param nodeRef
|
||||
* @param propertyName
|
||||
@@ -94,6 +116,15 @@ public interface CMISServices
|
||||
*/
|
||||
public Serializable getProperty(NodeRef nodeRef, String propertyName);
|
||||
|
||||
/**
|
||||
* Get a single property for an association
|
||||
*
|
||||
* @param assocRef
|
||||
* @param propertyName
|
||||
* @return value
|
||||
*/
|
||||
public Serializable getProperty(AssociationRef assocRef, String propertyName);
|
||||
|
||||
/**
|
||||
* Get all properties
|
||||
*
|
||||
|
Reference in New Issue
Block a user