2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.persistence
.dao
.common
;
12 import java
.util
.List
;
14 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
15 import eu
.etaxonomy
.cdm
.model
.common
.OriginalSource
;
16 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
18 public interface IIdentifiableDao
<T
extends IdentifiableEntity
> extends IAnnotatableDao
<T
>, ITitledDao
<T
>{
21 * Return a count of the sources for this identifiable entity
23 * @param identifiableEntity The identifiable entity
24 * @return a count of OriginalSource instances
26 public int countSources(T identifiableEntity
);
29 * Return a List of the sources for this identifiable entity
31 * @param identifiableEntity The identifiable entity
32 * @param pageSize The maximum number of sources returned (can be null for all sources)
33 * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
34 * @return a List of OriginalSource instances
36 public List
<OriginalSource
> getSources(T identifiableEntity
, Integer pageSize
, Integer pageNumber
);
39 * Return a count of the rights for this identifiable entity
41 * @param identifiableEntity The identifiable entity
42 * @return a count of Rights instances
44 public int countRights(T identifiableEntity
);
47 * Return a List of the rights for this identifiable entity
49 * @param identifiableEntity The identifiable entity
50 * @param pageSize The maximum number of rights returned (can be null for all rights)
51 * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
52 * @return a List of Rights instances
54 public List
<Rights
> getRights(T identifiableEntity
, Integer pageSize
, Integer pageNumber
);
56 // TODO Migrated from IOriginalSourceDao
57 public List
<T
> findOriginalSourceByIdInSource(String idInSource
, String idNamespace
);