public class QuickShareServiceImpl extends java.lang.Object implements QuickShareService, NodeServicePolicies.BeforeDeleteNodePolicy, CopyServicePolicies.OnCopyNodePolicy
Policy.ArgQNAMEARG_0, ARG_1, QNAME| Constructor and Description |
|---|
QuickShareServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef beforeDeleteNodeRef)
Called before a node is deleted.
|
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
java.util.Map |
getMetaData(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get QuickShare related metadata for the given node.
|
java.util.Map |
getMetaData(java.lang.String sharedId)
Get QuickShare related metadata for the given shareId.
|
org.alfresco.util.Pair |
getTenantNodeRefFromSharedId(java.lang.String sharedId)
Get the tenant domain and node reference for the the given share id.
|
void |
init()
The initialise method.
|
void |
setAttributeService(AttributeService attributeService)
Set the attribute service
|
void |
setEnabled(boolean enabled)
Enable or disable this service.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPersonService(PersonService personService)
Set the person service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service
|
void |
setThumbnailService(ThumbnailService thumbnailService)
Set the thumbnail service
|
QuickShareDTO |
shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Share content identified by nodeRef.
|
void |
unshareContent(java.lang.String sharedId)
Unshare the content identified by sharedId
|
public void setEnabled(boolean enabled)
public void setAttributeService(AttributeService attributeService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPersonService(PersonService personService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setThumbnailService(ThumbnailService thumbnailService)
public void init()
public QuickShareDTO shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
QuickShareServiceshareContent in interface QuickShareServicenodeRef - The NodeRef of the content to sharepublic java.util.Map getMetaData(org.alfresco.service.cmr.repository.NodeRef nodeRef)
QuickShareServicegetMetaData in interface QuickShareServicepublic org.alfresco.util.Pair getTenantNodeRefFromSharedId(java.lang.String sharedId)
QuickShareServicegetTenantNodeRefFromSharedId in interface QuickShareServicepublic java.util.Map getMetaData(java.lang.String sharedId)
QuickShareServicegetMetaData in interface QuickShareServicepublic void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef beforeDeleteNodeRef)
NodeServicePolicies.BeforeDeleteNodePolicybeforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicybeforeDeleteNodeRef - the node referencepublic void unshareContent(java.lang.String sharedId)
QuickShareServiceunshareContent in interface QuickShareServicesharedId - The shared id of the content to unshare.public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicygetCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyCopyServicePoliciesCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.