mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
126661 jvonka: RA-1045: As requested for SFS, allow rendition details (available/created renditions only) for shared link to be listed via no auth. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126689 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,13 +20,16 @@ package org.alfresco.rest.api.quicksharelinks;
|
||||
|
||||
import org.alfresco.rest.api.QuickShareLinks;
|
||||
import org.alfresco.rest.api.Renditions;
|
||||
import org.alfresco.rest.api.model.Rendition;
|
||||
import org.alfresco.rest.api.nodes.NodesEntityResource;
|
||||
import org.alfresco.rest.framework.BinaryProperties;
|
||||
import org.alfresco.rest.framework.WebApiDescription;
|
||||
import org.alfresco.rest.framework.WebApiNoAuth;
|
||||
import org.alfresco.rest.framework.resource.RelationshipResource;
|
||||
import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction;
|
||||
import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceBinaryAction;
|
||||
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;
|
||||
@@ -38,6 +41,7 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
*/
|
||||
@RelationshipResource(name = "renditions", entityResource = QuickShareLinkEntityResource.class, title = "Node renditions via shared link")
|
||||
public class QuickShareLinkRenditionsRelation implements
|
||||
RelationshipResourceAction.Read<Rendition>,
|
||||
RelationshipResourceBinaryAction.Read,
|
||||
InitializingBean
|
||||
{
|
||||
@@ -62,4 +66,12 @@ public class QuickShareLinkRenditionsRelation implements
|
||||
{
|
||||
return quickShareLinks.readProperty(sharedId, renditionId, parameters);
|
||||
}
|
||||
|
||||
@WebApiDescription(title = "List renditions", description = "List available (created) renditions")
|
||||
@WebApiNoAuth
|
||||
@Override
|
||||
public CollectionWithPagingInfo<Rendition> readAll(String sharedId, Parameters parameters)
|
||||
{
|
||||
return quickShareLinks.getRenditions(sharedId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user