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.view.distributionStatus.settings;
|
10
|
|
11
|
import eu.etaxonomy.cdm.vaadin.component.distributionStatus.AreaAndTaxonSettingsConfigWindow;
|
12
|
import eu.etaxonomy.cdm.vaadin.component.distributionStatus.DistributionStatusSettingsConfigWindow;
|
13
|
|
14
|
/**
|
15
|
* Note: This presenter is used for {@link DistributionStatusSettingsConfigWindow} AND {@link AreaAndTaxonSettingsConfigWindow}
|
16
|
*
|
17
|
* @author alex
|
18
|
* @since 22.04.2015
|
19
|
*
|
20
|
*
|
21
|
*/
|
22
|
public abstract class SettingsPresenterBase {
|
23
|
|
24
|
// private Container distributionContainer;
|
25
|
// private UUID vocUUID;
|
26
|
|
27
|
|
28
|
|
29
|
public SettingsPresenterBase(){
|
30
|
// Object selectedVocabularyUuidString = VaadinSession.getCurrent().getAttribute(DistributionEditorUtil.SATTR_SELECTED_AREA_VOCABULARY_UUID);
|
31
|
// if(selectedVocabularyUuidString!=null){
|
32
|
// vocUUID = UUID.fromString(selectedVocabularyUuidString.toString());
|
33
|
// }
|
34
|
// distributionContainer = new IndexedContainer(getNamedAreaList());
|
35
|
// distributionStatusContainer = new IndexedContainer(getPresenceAbsenceVocabulary());
|
36
|
}
|
37
|
//
|
38
|
// public List<TaxonNode> getChosenTaxonNodes(){
|
39
|
// List<UUID> nodeUuids = (List<UUID>) VaadinSession.getCurrent().getAttribute(DistributionEditorUtil.SATTR_TAXON_NODES_UUID);
|
40
|
// if(nodeUuids!=null){
|
41
|
// return CdmSpringContextHelper.getTaxonNodeService().load(nodeUuids, null);
|
42
|
// }
|
43
|
// return Collections.emptyList();
|
44
|
// }
|
45
|
//
|
46
|
// public Classification getChosenClassification(){
|
47
|
// UUID uuid = (UUID) VaadinSession.getCurrent().getAttribute(DistributionEditorUtil.SATTR_CLASSIFICATION);
|
48
|
// if(uuid!=null){
|
49
|
// return CdmSpringContextHelper.getClassificationService().load(uuid);
|
50
|
// }
|
51
|
// return null;
|
52
|
// }
|
53
|
//
|
54
|
// public TermVocabulary getChosenAreaVoc(){
|
55
|
// return CdmSpringContextHelper.getVocabularyService().load(vocUUID);
|
56
|
// }
|
57
|
|
58
|
|
59
|
|
60
|
|
61
|
|
62
|
|
63
|
|
64
|
}
|