Interface DocumentLinkService
- All Known Implementing Classes:
DocumentLinkServiceImpl
public interface DocumentLinkService
Provides methods specific to manipulating links of documents
- Since:
- 5.1
- Author:
- Ana Bozianu
-
Method Summary
Modifier and TypeMethodDescriptioncreateDocumentLink(NodeRef source, NodeRef destination) Creates a link node as child of the destination nodedeleteLinksToDocument(NodeRef document) Deletes all links having the provided node as destination.getLinkDestination(NodeRef linkNodeRef) Returns the destination node of the provided linkgetNodeLinksIds(NodeRef nodeRef) Returns the associated link ids for a node, from all stores
-
Method Details
-
createDocumentLink
Creates a link node as child of the destination node- Parameters:
source- Node to create a link for. Can be a file or a folder.destination- Destination to create the link in. Must be a folder.- Returns:
- A reference to the created link node
-
getLinkDestination
Returns the destination node of the provided link- Parameters:
linkNodeRef- The link node.- Returns:
- A reference to the destination of the provided link node
-
getNodeLinksIds
Returns the associated link ids for a node, from all stores- Parameters:
nodeRef-- Returns:
- A list of link nodeIds for given node
-
deleteLinksToDocument
Deletes all links having the provided node as destination.- Parameters:
document- The destination of the links to be deleted.
-