Merged HEAD (5.2) to 5.2.N (5.2.1)

127316 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      127312 jkaabimofrad: SFS-577, SFS-581: Fixed the shared-link no-auth APIs issue with multi-tenancy.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Raluca Munteanu
2016-05-24 14:59:05 +00:00
parent 337f5bc8a3
commit 94215263cf
7 changed files with 239 additions and 16 deletions

View File

@@ -30,6 +30,7 @@ import org.alfresco.rest.api.model.Rendition;
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.service.cmr.repository.NodeRef;
/**
* Renditions API
@@ -38,6 +39,8 @@ import org.alfresco.rest.framework.resource.parameters.Parameters;
*/
public interface Renditions
{
String PARAM_STATUS = "status";
/**
* Lists all available renditions includes those that have been created and those that are yet to be created.
*
@@ -77,5 +80,13 @@ public interface Renditions
*/
BinaryResource getContent(String nodeId, String renditionId, Parameters parameters);
String PARAM_STATUS = "status";
/**
* Downloads rendition.
*
* @param sourceNodeRef the source nodeRef
* @param renditionId the rendition id
* @param parameters the {@link Parameters} object to get the parameters passed into the request
* @return the rendition stream
*/
BinaryResource getContent(NodeRef sourceNodeRef, String renditionId, Parameters parameters);
}