public class DocumentLinkServiceImpl extends Object implements DocumentLinkService, NodeServicePolicies.BeforeDeleteNodePolicy
Policy.Arg
Modifier and Type | Field and Description |
---|---|
protected static String |
CANNED_QUERY_GET_DOC_LINKS |
QNAME
Constructor and Description |
---|
DocumentLinkServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDeleteLinkNode(org.alfresco.service.cmr.repository.NodeRef linkNodeRef) |
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted.
|
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
|
void |
init()
The initialise method.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setCannedQueryDAO(CannedQueryDAO cannedQueryDAO) |
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
protected static final String CANNED_QUERY_GET_DOC_LINKS
public void init()
public org.alfresco.service.cmr.repository.NodeRef createDocumentLink(org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef destination)
DocumentLinkService
createDocumentLink
in interface DocumentLinkService
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.public org.alfresco.service.cmr.repository.NodeRef getLinkDestination(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
DocumentLinkService
getLinkDestination
in interface DocumentLinkService
linkNodeRef
- The link node.public List<Long> getNodeLinksIds(org.alfresco.service.cmr.repository.NodeRef nodeRef)
DocumentLinkService
getNodeLinksIds
in interface DocumentLinkService
public DeleteLinksStatusReport deleteLinksToDocument(org.alfresco.service.cmr.repository.NodeRef document)
DocumentLinkService
deleteLinksToDocument
in interface DocumentLinkService
document
- The destination of the links to be deleted.public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referencepublic void beforeDeleteLinkNode(org.alfresco.service.cmr.repository.NodeRef linkNodeRef)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
public void setQnameDAO(QNameDAO qnameDAO)
Copyright © 2005–2017 Alfresco Software. All rights reserved.