Fixed AR-207: Added older than and younger than support to ContentStore#getUrls

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2402 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-16 00:18:57 +00:00
parent d57dda657d
commit 9474498ca1
4 changed files with 45 additions and 6 deletions

View File

@@ -16,6 +16,7 @@
*/
package org.alfresco.repo.content;
import java.util.Date;
import java.util.Set;
import org.alfresco.service.cmr.repository.ContentIOException;
@@ -108,13 +109,23 @@ public interface ContentStore
public ContentWriter getWriter(ContentReader existingContentReader, String newContentUrl) throws ContentIOException;
/**
* Get a set of all content in the store
* Get all URLs for the store, regardless of creation time.
*
* @see #getUrls(Date, Date)
*/
public Set<String> getUrls() throws ContentIOException;
/**
* Get a set of all content URLs in the store. This indicates all content
* available for reads.
*
* @param createdAfter all URLs returned must have been created after this date. May be null.
* @param createdBefore all URLs returned must have been created before this date. May be null.
* @return Returns a complete set of the unique URLs of all available content
* in the store
* @throws ContentIOException
*/
public Set<String> getUrls() throws ContentIOException;
public Set<String> getUrls(Date createdAfter, Date createdBefore) throws ContentIOException;
/**
* Deletes the content at the given URL.