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:
Jamal Kaabi-Mofrad
2016-05-10 10:54:46 +00:00
parent 4e8926ccf3
commit aa9a557f4d
6 changed files with 873 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2012 Alfresco Software Limited.
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -20,6 +20,7 @@ package org.alfresco.service.cmr.quickshare;
import java.util.Map;
import org.alfresco.repo.quickshare.QuickShareServiceImpl.QuickShareEmailRequest;
import org.alfresco.service.cmr.repository.InvalidNodeRefException;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.Pair;
@@ -77,4 +78,11 @@ public interface QuickShareService
* Determine if the current user has permission to read the shared content.
*/
public boolean canRead(String sharedId);
/**
* Notifies users by email that a content has been shared with them, and the details of it.
*
* @param emailRequest The email details including its template details
*/
public void sendEmailNotification(QuickShareEmailRequest emailRequest);
}