mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126501 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 122732 jvonka: (Quick) Shared Links API - 1st cut for find shared links (for current user) - TODO filter by shared by user, option to include/select allowableOperations, ... + more tests :-) RA-777 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import org.alfresco.rest.framework.resource.EntityResource;
|
||||
import org.alfresco.rest.framework.resource.actions.interfaces.BinaryResourceAction;
|
||||
import org.alfresco.rest.framework.resource.actions.interfaces.EntityResourceAction;
|
||||
import org.alfresco.rest.framework.resource.content.BinaryResource;
|
||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
@@ -44,8 +45,11 @@ import java.util.List;
|
||||
*/
|
||||
@EntityResource(name="shared-links", title = "Shared Links")
|
||||
public class QuickShareLinkEntityResource implements EntityResourceAction.ReadById<QuickShareLink>,
|
||||
BinaryResourceAction.Read, EntityResourceAction.Delete,
|
||||
EntityResourceAction.Create<QuickShareLink>, InitializingBean
|
||||
BinaryResourceAction.Read,
|
||||
EntityResourceAction.Delete,
|
||||
EntityResourceAction.Create<QuickShareLink>,
|
||||
EntityResourceAction.Read<QuickShareLink>,
|
||||
InitializingBean
|
||||
{
|
||||
private QuickShareLinks quickShareLinks;
|
||||
|
||||
@@ -131,4 +135,16 @@ public class QuickShareLinkEntityResource implements EntityResourceAction.ReadBy
|
||||
{
|
||||
quickShareLinks.emailSharedLink(nodeId, emailRequest, parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find shared links
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
@WebApiDescription(title="Find shared links", description = "Find ('search') & return result set of shared links")
|
||||
public CollectionWithPagingInfo<QuickShareLink> readAll(Parameters parameters)
|
||||
{
|
||||
return quickShareLinks.findLinks(parameters);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user