public interface RelationsService
| Modifier and Type | Method and Description |
|---|---|
void |
addRelation(javax.jcr.Node node,
String relationPath,
String workspaceName)
Inserts a new relation is specified by relationPath params to the given node
|
List<javax.jcr.Node> |
getRelations(javax.jcr.Node node,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Gets all node that has relation to the given node
|
boolean |
hasRelations(javax.jcr.Node node)
Returns true is the given node has relation
|
void |
init()
Initial the root of relation node and its sub node
|
void |
removeRelation(javax.jcr.Node node,
String relationPath)
Removes the relation to the given node by specified the relationPath params
|
boolean hasRelations(javax.jcr.Node node)
throws Exception
node - Specify the node wants to check relationExceptionNodeList<javax.jcr.Node> getRelations(javax.jcr.Node node, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
node - Specify the node wants to get all node relative to itprovider - The SessionProvider object is used to managed SessionsExceptionNode,
SessionProvidervoid removeRelation(javax.jcr.Node node,
String relationPath)
throws Exception
node - Specify the node wants to remove a relationrelationPath - The path of relationExceptionNodevoid addRelation(javax.jcr.Node node,
String relationPath,
String workspaceName)
throws Exception
node - Specify the node wants to insert a new relationrelationPath - The path of relationworkspaceName - The name of workspaceExceptionNodeCopyright © 2003–2019 eXo Platform SAS. All rights reserved.