JBoss.orgCommunity Documentation
Supply API to work with the linked node or the link included in a node.
Package org.exoplatform.services.cms.link.LinkManager
Method | Param | Return | Description |
---|---|---|---|
createLink(Node parent, String linkType, Node target)throws RepositoryException; |
| Node | Create a new link that is added to the parent node and return the link. |
createLink(Node parent, Node target)throws RepositoryException; |
| Node | Create a new node of type exo:symlink, then add it to the parent node and return the link node. |
createLink(Node parent, String linkType, Node target, String linkName) throws RepositoryException; |
| Node | Create a new link that is added to the parent node and return the link. |
updateLink(Node link, Node target)throws RepositoryException; |
| Node | Update the target node of the given link. |
getTarget(Node link, boolean system) throws ItemNotFoundException, RepositoryException; |
| Node | Get the target node of the given link. |
getTarget(Node link)throws ItemNotFoundException, RepositoryException; |
link : The node of type exo:symlink. | Node | Get the target node of the given link using the user. |
isTargetReachable(Node link) throws RepositoryException; | link : The node of type exo:symlink. | boolean | Check if the target node of the given link can be reached using the user session. |
isTargetReachable(Node link, boolean system)throws RepositoryException; |
| boolean | Check if the target node of the given link can be reached using the user session. |
isLink(Item item) throws RepositoryException; |
item : The item to test. | boolean | Indicate whether the given item is a link. @return <code>true</code>: if the node is a link, <code>false</code> otherwise. |
getTargetPrimaryNodeType(Node link)throws RepositoryException; | link : The node of type exo:symlink. | string | Return the primary node type of the target. |
getAllLinks(Node targetNode, String linkType, String repoName)throws Exception |
|
List<Node> - the list of link of the target node with given type. | Return all links of the given node. (Deprecated) |
getAllLinks(Node targetNode, String linkType, SessionProvider sessionProvider) throws Exception; |
| List<Node> - the list of link of the target node with given type. | Return all links of the given node. |