1 package eu
.etaxonomy
.cdm
.odfprint
;
4 import java
.util
.ArrayList
;
8 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
10 public class OdfConfigurator
{
12 //-------- parameters----------
14 private boolean remote
;
17 //TODO find out, what kind of result this parameter should produce
18 private boolean allInOne
;
20 private List
<UUID
> nodesToPublish
= new ArrayList
<UUID
>();
22 private String webserviceUrl
;
24 private String exportFile
;
27 // ------- getters and setters ----------
29 public String
getExportFile() {
33 public void setExportFile(String exportFile
) {
34 this.exportFile
= exportFile
;
37 public boolean isAllInOne() {
41 public boolean isSeprateDocs(){
45 public void setAllInOne() {
49 public boolean setSeprateDocs(){
53 public String
getWebserviceUrl() {
57 public void setNodesToPublish(List
<UUID
> nodesToPublish
) {
58 this.nodesToPublish
= nodesToPublish
;
61 public boolean isRemote() {
65 public void setRemote() {
69 public boolean isLocal() {
74 public void setLocal() {
78 public void setWebserviceUrl(String Url
){
79 this.webserviceUrl
=Url
;
83 //--------------------------------------------------
85 public void addNodesToPublish(UUID taxonNodeUUID
) {
86 this.nodesToPublish
.add(taxonNodeUUID
);
89 public static OdfConfigurator
getDefaultConfigurator(){
91 return new OdfConfigurator();
96 public List
<UUID
> getNodesToPublish() {
97 // TODO Auto-generated method stub
98 return this.nodesToPublish
;
101 public IOdfEntityCollector
getEntityCollector() {
103 return new OdfRemoteEntityCollector();
106 return new OdfLocalEntityCollector();
109 public OdfFactory
newOdfFactory() {
110 return new OdfFactory();