Revision 1e201891
Added by Patrick Plitzner almost 8 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/presenter/dbstatus/DistributionTablePresenter.java | ||
---|---|---|
175 | 175 |
|
176 | 176 |
@Override |
177 | 177 |
public List<TaxonNode> getAllNodes(int start, int end){ |
178 |
TaxonNode taxonNode = getChosenClassification();
|
|
178 |
TaxonNode taxonNode = getChosenTaxonNode();
|
|
179 | 179 |
List<TaxonNode> nodes = new ArrayList<TaxonNode>(); |
180 | 180 |
if(taxonNode.getTaxon()!=null){ |
181 | 181 |
nodes.add(taxonNode); |
... | ... | |
186 | 186 |
|
187 | 187 |
|
188 | 188 |
@Override |
189 |
public TaxonNode getChosenClassification() {
|
|
189 |
public TaxonNode getChosenTaxonNode() {
|
|
190 | 190 |
VaadinSession session = VaadinSession.getCurrent(); |
191 |
UUID classificationUUID = (UUID) session.getAttribute("classificationUUID");
|
|
192 |
TaxonNode classificationNode = taxonNodeService.load(classificationUUID);
|
|
191 |
UUID taxonNodeUUID = (UUID) session.getAttribute("taxonNodeUUID");
|
|
192 |
TaxonNode classificationNode = taxonNodeService.load(taxonNodeUUID);
|
|
193 | 193 |
return classificationNode; |
194 | 194 |
} |
195 | 195 |
|
196 | 196 |
@Override |
197 |
public int getSizeOfClassification(){
|
|
198 |
TaxonNode taxonNode = getChosenClassification();
|
|
197 |
public int getSizeOfTaxonNode(){
|
|
198 |
TaxonNode taxonNode = getChosenTaxonNode();
|
|
199 | 199 |
return taxonNodeService.loadChildNodesOfTaxonNode(taxonNode, null, true, null).size(); |
200 | 200 |
} |
201 | 201 |
|
Also available in: Unified diff
Renaming #5458