public interface DocumentLinkService
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createDocumentLink(org.alfresco.service.cmr.repository.NodeRef source,
org.alfresco.service.cmr.repository.NodeRef destination)
Creates a link node as child of the destination node
|
DeleteLinksStatusReport |
deleteLinksToDocument(org.alfresco.service.cmr.repository.NodeRef document)
Deletes all links having the provided node as destination.
|
org.alfresco.service.cmr.repository.NodeRef |
getLinkDestination(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
Returns the destination node of the provided link
|
List<Long> |
getNodeLinksIds(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Returns the associated link ids for a node, from all stores
|
org.alfresco.service.cmr.repository.NodeRef createDocumentLink(org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef destination)
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.org.alfresco.service.cmr.repository.NodeRef getLinkDestination(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
linkNodeRef
- The link node.List<Long> getNodeLinksIds(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- DeleteLinksStatusReport deleteLinksToDocument(org.alfresco.service.cmr.repository.NodeRef document)
document
- The destination of the links to be deleted.Copyright © 2005–2017 Alfresco Software. All rights reserved.