From 3fcc2885c8a0f82ad265f40d2ced11bda386cb50 Mon Sep 17 00:00:00 2001 From: cturlica Date: Wed, 17 Jun 2020 09:55:21 +0300 Subject: [PATCH] ACS-306: ACS Repository: V1 Rest API for content direct access urls - change expiryTime type to long --- src/main/java/org/alfresco/repo/content/ContentStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/alfresco/repo/content/ContentStore.java b/src/main/java/org/alfresco/repo/content/ContentStore.java index c60755782e..1b6eb5143d 100644 --- a/src/main/java/org/alfresco/repo/content/ContentStore.java +++ b/src/main/java/org/alfresco/repo/content/ContentStore.java @@ -241,11 +241,11 @@ public interface ContentStore * implementation if it can fulfil this request with an expiry time or not. * * @param contentUrl A content store URL - * @param expiryTime Expiration time in milliseconds + * @param expiryTime Expiration time in milliseconds. This is the length of time in milliseconds that the link is valid for. * @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, int expiryTime) + default String getDirectAccessUrl(String contentUrl, long expiryTime) { throw new UnsupportedOperationException( "Retrieving direct access URLs is not supported by this content store.");