mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77148: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 73957: ContentStore API cleanup - Removed previously-deprecated ContentStore.getWriter(ContentReader existingContentReader, String newContentUrl) - Removed previously-deprecated getSpaceUsed() - Removed previously-deprecated getTotalSize() - Deprecated optional and unused getUrls() and variants - Clean up of implementations to ignore relevant deprecations, etc git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78004 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -251,23 +251,6 @@ public abstract class AbstractRoutingContentStore implements ContentStore
|
||||
return ".";
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses {@link #getSpaceUsed()}, which is the equivalent method. This method is now
|
||||
* final in order to catch any implementations that should switch over to {@link #getSpaceUsed()}.
|
||||
*/
|
||||
public final long getTotalSize()
|
||||
{
|
||||
return getSpaceUsed();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns <tt>-1</tt> always
|
||||
*/
|
||||
public long getSpaceUsed()
|
||||
{
|
||||
return -1L;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns <tt>-1</tt> always
|
||||
*/
|
||||
@@ -406,6 +389,7 @@ public abstract class AbstractRoutingContentStore implements ContentStore
|
||||
/**
|
||||
* @see #getUrls(Date, Date, ContentUrlHandler)
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public void getUrls(ContentUrlHandler handler) throws ContentIOException
|
||||
{
|
||||
getUrls(null, null, handler);
|
||||
@@ -416,6 +400,7 @@ public abstract class AbstractRoutingContentStore implements ContentStore
|
||||
*
|
||||
* @see ContentStore#getUrls(Date, Date, ContentUrlHandler)
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public void getUrls(Date createdAfter, Date createdBefore, ContentUrlHandler handler) throws ContentIOException
|
||||
{
|
||||
List<ContentStore> stores = getAllStores();
|
||||
|
Reference in New Issue
Block a user