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 Detail

      • createDocumentLink

        NodeRef createDocumentLink​(NodeRef source,
                                   NodeRef destination)
        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

        NodeRef getLinkDestination​(NodeRef linkNodeRef)
        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

        List<Long> getNodeLinksIds​(NodeRef nodeRef)
        Returns the associated link ids for a node, from all stores
        Parameters:
        nodeRef -
        Returns:
        A list of link nodeIds for given node
      • deleteLinksToDocument

        DeleteLinksStatusReport deleteLinksToDocument​(NodeRef document)
        Deletes all links having the provided node as destination.
        Parameters:
        document - The destination of the links to be deleted.