Commit 3c1c46dda84fb8514b28dade0d418f899fbf3e76

Authored by Derek Hulley
1 parent 4f7a1d0d38
Exists in master

Remove deprecated ContentStore.getUrls methods and related ContentUrlHandler

src/main/java/org/alfresco/repo/content/ContentStore.java
... ... @@ -25,8 +25,6 @@
25 25 */
26 26 package org.alfresco.repo.content;
27 27  
28   -import java.util.Date;
29   -
30 28 import org.alfresco.api.AlfrescoPublicApi;
31 29 import org.alfresco.service.cmr.repository.ContentAccessor;
32 30 import org.alfresco.service.cmr.repository.ContentIOException;
... ... @@ -215,41 +213,6 @@ public interface ContentStore
215 213 public ContentWriter getWriter(ContentContext context);
216 214  
217 215 /**
218   - * Get all URLs for the store, regardless of creation time.
219   - * @throws ContentIOException
220   - * if an IO error occurs
221   - * @throws UnsupportedOperationException
222   - * if the store is unable to provide the information
223   - *
224   - * @see #getUrls(Date, Date, ContentUrlHandler)
225   - *
226   - * @deprecated in 5.0. The API is no longer used by Alfresco;
227   - * efficient APIs can be provided by the implementations, if required
228   - */
229   - @Deprecated
230   - public void getUrls(ContentUrlHandler handler) throws ContentIOException;
231   -
232   - /**
233   - * Get a set of all content URLs in the store. This indicates all content available for reads.
234   - *
235   - * @param createdAfter
236   - * all URLs returned must have been created after this date. May be null.
237   - * @param createdBefore
238   - * all URLs returned must have been created before this date. May be null.
239   - * @param handler
240   - * the callback that will passed each URL
241   - * @throws ContentIOException
242   - * if an error occurs
243   - * @throws UnsupportedOperationException
244   - * if the store is unable to provide the information
245   - *
246   - * @deprecated in 5.0. The API is no longer used by Alfresco;
247   - * efficient APIs can be provided by the implementations, if required
248   - */
249   - @Deprecated
250   - public void getUrls(Date createdAfter, Date createdBefore, ContentUrlHandler handler) throws ContentIOException;
251   -
252   - /**
253 216 * Deletes the content at the given URL.
254 217 * <p>
255 218 * A delete cannot be forced since it is much better to have the
... ... @@ -268,17 +231,4 @@ public interface ContentStore
268 231 * if an IO error occurs
269 232 */
270 233 public boolean delete(String contentUrl);
271   -
272   - /**
273   - * Iterface for to use during iteration over content URLs.
274   - *
275   - * @author Derek Hulley
276   - * @since 2.0
277   - * @deprecated in 5.0
278   - */
279   - @Deprecated
280   - public interface ContentUrlHandler
281   - {
282   - void handle(String contentUrl);
283   - }
284 234 }
... ...