mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
121917 jkaabimofrad: RA-778: Added support for QuickShare service to email users notifying them that a content has been shared with them. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126436 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,7 +20,9 @@ package org.alfresco.rest.api.quicksharelinks;
|
||||
|
||||
import org.alfresco.rest.api.QuickShareLinks;
|
||||
import org.alfresco.rest.api.model.QuickShareLink;
|
||||
import org.alfresco.rest.api.model.QuickShareLinkEmailRequest;
|
||||
import org.alfresco.rest.framework.BinaryProperties;
|
||||
import org.alfresco.rest.framework.Operation;
|
||||
import org.alfresco.rest.framework.WebApiDescription;
|
||||
import org.alfresco.rest.framework.WebApiNoAuth;
|
||||
import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException;
|
||||
@@ -38,6 +40,7 @@ import java.util.List;
|
||||
* An implementation of an Entity Resource for Shared Links.
|
||||
*
|
||||
* @author janv
|
||||
* @author Jamal Kaabi-Mofrad
|
||||
*/
|
||||
@EntityResource(name="shared-links", title = "Shared Links")
|
||||
public class QuickShareLinkEntityResource implements EntityResourceAction.ReadById<QuickShareLink>,
|
||||
@@ -46,10 +49,10 @@ public class QuickShareLinkEntityResource implements EntityResourceAction.ReadBy
|
||||
{
|
||||
private QuickShareLinks quickShareLinks;
|
||||
|
||||
public void setQuickShareLinks(QuickShareLinks quickShareLinks)
|
||||
{
|
||||
this.quickShareLinks = quickShareLinks;
|
||||
}
|
||||
public void setQuickShareLinks(QuickShareLinks quickShareLinks)
|
||||
{
|
||||
this.quickShareLinks = quickShareLinks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet()
|
||||
@@ -121,4 +124,11 @@ public class QuickShareLinkEntityResource implements EntityResourceAction.ReadBy
|
||||
{
|
||||
return quickShareLinks.create(nodeIds, parameters);
|
||||
}
|
||||
|
||||
@Operation("email")
|
||||
@WebApiDescription(title = "Email shared link", description = "Email the shared link")
|
||||
public void email(String nodeId, QuickShareLinkEmailRequest emailRequest, Parameters parameters)
|
||||
{
|
||||
quickShareLinks.emailSharedLink(nodeId, emailRequest, parameters);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user