mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added a raw download servlet at URL http://.../alfresco/dr?contentUrl=...?ticket=...
Added ContentService.getRawReader to get content directly using a content URL. To access this, you need to be admin. Fixed EHCacheAdapter to handle non-Serializable values. Added tests for above and for AbstractRoutingContentStore. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5841 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,6 +54,21 @@ import org.alfresco.service.namespace.QName;
|
||||
@PublicService
|
||||
public interface ContentService
|
||||
{
|
||||
/**
|
||||
* Fetch content from the low-level stores using a content URL. None of the
|
||||
* metadata associated with the content will be populated. This method should
|
||||
* be used only to stream the binary data out when no other metadata is
|
||||
* required.
|
||||
* <p>
|
||||
* <tt>null</tt> is never returned, but the reader should always be checked for
|
||||
* {@link ContentReader#exists() existence}.
|
||||
*
|
||||
* @param contentUrl a content store URL
|
||||
* @return Returns a reader for the URL that needs to be checked.
|
||||
*/
|
||||
@Auditable(key = Auditable.Key.ARG_0, parameters = {"contentUrl"})
|
||||
public ContentReader getRawReader(String contentUrl);
|
||||
|
||||
/**
|
||||
* Gets a reader for the content associated with the given node property.
|
||||
* <p>
|
||||
|
Reference in New Issue
Block a user