Revision d9f134f9
Added by Katja Luther about 8 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IMediaService.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
12 | 12 |
|
13 | 13 |
import java.util.List; |
14 | 14 |
import java.util.Set; |
15 |
import java.util.UUID; |
|
15 | 16 |
|
17 |
import eu.etaxonomy.cdm.api.service.config.MediaDeletionConfigurator; |
|
16 | 18 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
17 | 19 |
import eu.etaxonomy.cdm.model.description.MediaKey; |
18 | 20 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
... | ... | |
26 | 28 |
|
27 | 29 |
/** |
28 | 30 |
* Return a List of MediaKeys, optionally filtered by the parameters passed. |
29 |
*
|
|
31 |
* |
|
30 | 32 |
* @param taxonomicScope a Set of Taxon instances that define the taxonomic scope of the key (can be null) |
31 | 33 |
* @param geoScopes a Set of NamedArea instances that define the geospatial scope of the key (can be null) |
32 | 34 |
* @param pageSize The maximum number of keys returned (can be null for all keys) |
... | ... | |
35 | 37 |
* @return a Pager containing MediaKey instances |
36 | 38 |
*/ |
37 | 39 |
public Pager<MediaKey> getMediaKeys(Set<Taxon> taxonomicScope, Set<NamedArea> geoScopes, Integer pageSize, Integer pageNumber, List<String> propertyPaths); |
38 |
|
|
40 |
|
|
39 | 41 |
/** |
40 | 42 |
* Return a Pager of rights belonging to this object |
41 |
*
|
|
43 |
* |
|
42 | 44 |
* @param t The media object |
43 | 45 |
* @param pageSize The maximum number of rights returned (can be null for all rights) |
44 | 46 |
* @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based) |
45 | 47 |
* @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)} |
46 | 48 |
* @return a Pager of Rights entities |
47 | 49 |
*/ |
50 |
@Override |
|
48 | 51 |
public Pager<Rights> getRights(Media t, Integer pageSize, Integer pageNumber, List<String> propertyPaths); |
49 |
|
|
52 |
|
|
50 | 53 |
/** |
51 | 54 |
* Returns a Paged List of Media instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser) |
52 |
*
|
|
55 |
* |
|
53 | 56 |
* @param clazz filter the results by class (or pass null to return all Media instances) |
54 | 57 |
* @param queryString |
55 | 58 |
* @param pageSize The maximum number of media returned (can be null for all matching media) |
... | ... | |
62 | 65 |
* @return a Pager Media instances |
63 | 66 |
* @see <a href="http://lucene.apache.org/java/2_4_0/queryparsersyntax.html">Apache Lucene - Query Parser Syntax</a> |
64 | 67 |
*/ |
65 |
public Pager<Media> search(Class<? extends Media> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
|
68 |
@Override |
|
69 |
public Pager<Media> search(Class<? extends Media> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
|
70 |
|
|
71 |
|
|
72 |
public DeleteResult delete(UUID mediaUuid, MediaDeletionConfigurator config); |
|
66 | 73 |
} |
Also available in: Unified diff
TaxonNodeByNameComparator is not a component anymore and add configurable delete method for media