Class DocumentLinkServiceImpl

    • Field Detail

      • CANNED_QUERY_GET_DOC_LINKS

        protected static final java.lang.String CANNED_QUERY_GET_DOC_LINKS
        See Also:
        Constant Field Values
    • Constructor Detail

      • DocumentLinkServiceImpl

        public DocumentLinkServiceImpl()
    • Method Detail

      • init

        public void init()
        The initialise method. Register our policies.
      • createDocumentLink

        public org.alfresco.service.cmr.repository.NodeRef createDocumentLink​(org.alfresco.service.cmr.repository.NodeRef source,
                                                                              org.alfresco.service.cmr.repository.NodeRef destination)
        Description copied from interface: DocumentLinkService
        Creates a link node as child of the destination node
        Specified by:
        createDocumentLink in interface DocumentLinkService
        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

        public org.alfresco.service.cmr.repository.NodeRef getLinkDestination​(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
        Description copied from interface: DocumentLinkService
        Returns the destination node of the provided link
        Specified by:
        getLinkDestination in interface DocumentLinkService
        Parameters:
        linkNodeRef - The link node.
        Returns:
        A reference to the destination of the provided link node
      • getNodeLinksIds

        public java.util.List<java.lang.Long> getNodeLinksIds​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Description copied from interface: DocumentLinkService
        Returns the associated link ids for a node, from all stores
        Specified by:
        getNodeLinksIds in interface DocumentLinkService
        Returns:
        A list of link nodeIds for given node
      • beforeDeleteLinkNode

        public void beforeDeleteLinkNode​(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • setCheckOutCheckInService

        public void setCheckOutCheckInService​(CheckOutCheckInService checkOutCheckInService)
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
      • setPermissionService

        public void setPermissionService​(org.alfresco.service.cmr.security.PermissionService permissionService)
      • setCannedQueryDAO

        public void setCannedQueryDAO​(CannedQueryDAO cannedQueryDAO)
      • setQnameDAO

        public void setQnameDAO​(QNameDAO qnameDAO)