cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/component/taxon/IStatusComposite.java @ 4cfb3625
1 |
/**
|
---|---|
2 |
* Copyright (C) 2015 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.component.taxon; |
10 |
|
11 |
import java.sql.SQLException; |
12 |
|
13 |
import eu.etaxonomy.cdm.vaadin.container.CdmSQLContainer; |
14 |
import eu.etaxonomy.cdm.vaadin.container.LeafNodeTaxonContainer; |
15 |
|
16 |
/**
|
17 |
* @author cmathew
|
18 |
* @date 10 Mar 2015
|
19 |
*
|
20 |
*/
|
21 |
public interface IStatusComposite { |
22 |
|
23 |
public interface StatusComponentListener { |
24 |
public LeafNodeTaxonContainer loadTaxa(int classificationId) throws SQLException; |
25 |
|
26 |
public LeafNodeTaxonContainer getCurrentLeafNodeTaxonContainer(); |
27 |
|
28 |
public CdmSQLContainer loadClassifications() throws SQLException; |
29 |
/**
|
30 |
*
|
31 |
*/
|
32 |
public void setUnplacedFilter(); |
33 |
/**
|
34 |
*
|
35 |
*/
|
36 |
public void setUnpublishedFilter(); |
37 |
/**
|
38 |
*
|
39 |
*/
|
40 |
public void removeUnplacedFilter(); |
41 |
/**
|
42 |
*
|
43 |
*/
|
44 |
public void removeUnpublishedFilter(); |
45 |
|
46 |
/**
|
47 |
* @param filterString
|
48 |
*/
|
49 |
public void setNameFilter(String filterString); |
50 |
/**
|
51 |
*
|
52 |
*/
|
53 |
public void removeNameFilter(); |
54 |
|
55 |
/**
|
56 |
* @return
|
57 |
*/
|
58 |
public int getCurrentNoOfTaxa(); |
59 |
|
60 |
/**
|
61 |
* @return
|
62 |
*/
|
63 |
public int getTotalNoOfTaxa(); |
64 |
/**
|
65 |
*
|
66 |
*/
|
67 |
public void refresh(); |
68 |
/**
|
69 |
*
|
70 |
*/
|
71 |
public void removeFilters(); |
72 |
|
73 |
/**
|
74 |
* @param pb
|
75 |
* @param itemId
|
76 |
*/
|
77 |
public void updatePublished(boolean pb, Object itemId); |
78 |
/**
|
79 |
* @param itemId
|
80 |
* @return
|
81 |
*/
|
82 |
public boolean isSynonym(Object itemId); |
83 |
|
84 |
/**
|
85 |
* @return
|
86 |
*/
|
87 |
public CdmSQLContainer getClassificationContainer(); |
88 |
|
89 |
/**
|
90 |
*
|
91 |
*/
|
92 |
public void removeDynamicFilters(); |
93 |
|
94 |
/**
|
95 |
* @param itemId
|
96 |
*/
|
97 |
public void setIdFilter(Object itemId); |
98 |
|
99 |
/**
|
100 |
*
|
101 |
*/
|
102 |
public void removeIdFilter(); |
103 |
|
104 |
/**
|
105 |
*
|
106 |
*/
|
107 |
public void refreshSynonymCache(); |
108 |
|
109 |
/**
|
110 |
* @param classification
|
111 |
* @return
|
112 |
*/
|
113 |
public Object getClassificationId(String classification); |
114 |
}
|
115 |
|
116 |
public void setListener(StatusComponentListener listener); |
117 |
|
118 |
}
|