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
|
import java.util.Set;
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.service.dto.RegistrationDTO;
|
16
|
import eu.etaxonomy.cdm.api.service.exception.RegistrationValidationException;
|
17
|
import eu.etaxonomy.cdm.api.service.pager.Pager;
|
18
|
import eu.etaxonomy.cdm.model.common.User;
|
19
|
import eu.etaxonomy.cdm.model.name.RegistrationStatus;
|
20
|
import eu.etaxonomy.cdm.model.name.TypeDesignationStatusBase;
|
21
|
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
|
22
|
|
23
|
/**
|
24
|
* @author a.kohlbecker
|
25
|
* @since May 4, 2017
|
26
|
*
|
27
|
*/
|
28
|
public interface IRegistrationWorkingSetService {
|
29
|
|
30
|
/**
|
31
|
* @param id the CDM Entity id
|
32
|
* @return
|
33
|
*/
|
34
|
public RegistrationDTO loadDtoById(Integer id);
|
35
|
|
36
|
public RegistrationDTO loadDtoByUuid(UUID uuid);
|
37
|
|
38
|
public Pager<RegistrationDTO> pageDTOs(Integer pageSize, Integer pageIndex);
|
39
|
|
40
|
public Pager<RegistrationDTO> pageDTOs(User submitter, Collection<RegistrationStatus> includedStatus,
|
41
|
String identifierFilterPattern, String taxonNameFilterPattern, Set<TypeDesignationStatusBase> typeStatusFilter,
|
42
|
Integer pageSize, Integer pageIndex);
|
43
|
|
44
|
/**
|
45
|
* @param referenceID
|
46
|
* @param resolveSections resolve the higher publication unit and build the RegistrationWorkingSet for that reference. E.e. For journal sections the
|
47
|
* use the inReference which is the journal article.
|
48
|
*
|
49
|
* @return
|
50
|
*/
|
51
|
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID, boolean resolveSections) throws RegistrationValidationException;
|
52
|
|
53
|
/**
|
54
|
* @param referenceID
|
55
|
* @param resolveSections resolve the higher publication unit and build the RegistrationWorkingSet for that reference. E.e. For journal sections the
|
56
|
* use the inReference which is the journal article.
|
57
|
* @return
|
58
|
*/
|
59
|
public RegistrationWorkingSet loadWorkingSetByReferenceUuid(UUID referenceUuid, boolean resolveSections) throws RegistrationValidationException;
|
60
|
|
61
|
public Set<RegistrationDTO> loadBlockingRegistrations(UUID blockedRegistrationUuid);
|
62
|
|
63
|
}
|