adapt vaadin to new package structure for persistence.permission
[cdm-vaadin.git] / src / main / java / eu / etaxonomy / cdm / vaadin / view / registration / ListView.java
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.vaadin.view.registration;
10
11 import java.util.List;
12 import java.util.UUID;
13
14 import com.vaadin.ui.AbstractSelect;
15 import com.vaadin.ui.NativeSelect;
16 import com.vaadin.ui.TextField;
17
18 import eu.etaxonomy.cdm.api.service.dto.RegistrationDTO;
19 import eu.etaxonomy.cdm.api.service.pager.Pager;
20 import eu.etaxonomy.cdm.vaadin.component.registration.RegistrationItem;
21 import eu.etaxonomy.vaadin.mvp.ApplicationView;
22
23 /**
24 * @author a.kohlbecker
25 * @since Mar 3, 2017
26 *
27 */
28 public interface ListView extends ApplicationView<ListPresenter>{
29
30 enum Mode {
31 all,
32 inProgress
33 }
34
35 /**
36 * @param page
37 */
38 void populate(Pager<RegistrationDTO> registrations);
39
40 /**
41 * @param messages
42 */
43 void openDetailsPopup(String caption, List<String> messages);
44
45 /**
46 * @return the identifierFilter
47 */
48 public TextField getIdentifierFilter();
49
50 /**
51 * @return the taxonNameFilter
52 */
53 public TextField getTaxonNameFilter();
54
55 /**
56 * @return the referenceFilter
57 */
58 public TextField getReferenceFilter();
59
60 /**
61 * @return the statusFilter
62 */
63 public NativeSelect getRegistrationStatusFilter();
64
65 /**
66 * @return the submitterFilter
67 */
68 public NativeSelect getSubmitterFilter();
69
70 /**
71 * @param optionInProgress
72 */
73 void setViewMode(Mode mode);
74
75 /**
76 * @return
77 */
78 Mode getViewMode();
79
80 public RegistrationItem getRegistrationItem(UUID registrationUuid);
81
82 AbstractSelect getStatusTypeFilter();
83
84
85 }