mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-304 : ACS Repository: support for content direct access urls (#260)
- add default implementation for direct access url feature
This commit is contained in:
@@ -235,4 +235,27 @@ public interface ContentStore
|
|||||||
* if an IO error occurs
|
* if an IO error occurs
|
||||||
*/
|
*/
|
||||||
public boolean delete(String contentUrl);
|
public boolean delete(String contentUrl);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a presigned URL to directly access a binary content.
|
||||||
|
*
|
||||||
|
* @param contentUrl A content store URL
|
||||||
|
* @return A direct access URL for a binary content
|
||||||
|
* @throws UnsupportedOperationException if the store is unable to provide the information
|
||||||
|
*/
|
||||||
|
default String getDirectAccessUrl(String contentUrl)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"Retrieving direct access URLs is not supported by this content store.");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the store supports the retrieving of direct access URLs.
|
||||||
|
*
|
||||||
|
* @return true if direct access URLs retrieving is supported, false otherwise
|
||||||
|
*/
|
||||||
|
default boolean isDirectAccessSupported()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user