1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.service;
|
10
|
|
11
|
import java.util.Collection;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.common.User;
|
14
|
import eu.etaxonomy.cdm.model.name.RegistrationStatus;
|
15
|
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
|
16
|
import eu.etaxonomy.cdm.vaadin.view.registration.RegistrationDTO;
|
17
|
import eu.etaxonomy.cdm.vaadin.view.registration.RegistrationValidationException;
|
18
|
|
19
|
/**
|
20
|
* @author a.kohlbecker
|
21
|
* @since May 4, 2017
|
22
|
*
|
23
|
*/
|
24
|
public interface IRegistrationWorkingSetService {
|
25
|
|
26
|
/**
|
27
|
* @param id the CDM Entity id
|
28
|
* @return
|
29
|
*/
|
30
|
public RegistrationDTO loadDtoById(Integer id);
|
31
|
|
32
|
|
33
|
public Collection<RegistrationDTO> listDTOs();
|
34
|
|
35
|
public Collection<RegistrationDTO> listDTOs(User submitter, Collection<RegistrationStatus> includedStatus);
|
36
|
|
37
|
/**
|
38
|
* @param id the CDM Entity id
|
39
|
* @return
|
40
|
* @throws RegistrationValidationException
|
41
|
* @deprecated Use {@link #loadWorkingSetByReferenceID(Integer) instead
|
42
|
*/
|
43
|
@Deprecated
|
44
|
public RegistrationWorkingSet loadWorkingSetByCitationID(Integer id) throws RegistrationValidationException;
|
45
|
|
46
|
/**
|
47
|
* @param referenceID
|
48
|
* @return
|
49
|
*/
|
50
|
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID) throws RegistrationValidationException;
|
51
|
|
52
|
}
|