1 package eu
.etaxonomy
.cdm
.api
.service
.config
;
4 * Copyright (C) 2017 EDIT
5 * European Distributed Institute of Taxonomy
6 * http://www.e-taxonomy.eu
8 * The contents of this file are subject to the Mozilla Public License Version 1.1
9 * See LICENSE.TXT at the top of this package for the full license terms.
13 import java
.util
.UUID
;
15 import eu
.etaxonomy
.cdm
.common
.monitor
.IRemotingProgressMonitor
;
16 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
19 * Configurator for the setSecundumForSubtree operation.
24 public class SecundumForSubtreeConfigurator
extends ForSubtreeConfiguratorBase
{
26 private static final long serialVersionUID
= -5181147074062916234L;
28 private Reference newSecundum
;
29 private boolean overwriteExistingAccepted
= true;
30 private boolean overwriteExistingSynonyms
= true;
31 private boolean emptySecundumDetail
= true;
35 * @return the emptySecundumDetail
37 public boolean isEmptySecundumDetail() {
38 return emptySecundumDetail
;
43 public SecundumForSubtreeConfigurator(UUID subtreeUuid
, Reference newSecundum
, IRemotingProgressMonitor monitor
) {
44 super(subtreeUuid
, monitor
);
45 this.newSecundum
= newSecundum
;
50 public SecundumForSubtreeConfigurator(UUID subtreeUuid
) {
54 public Reference
getNewSecundum() {
59 public void setNewSecundum(Reference newSecundum
) {
60 this.newSecundum
= newSecundum
;
65 public void setEmptySecundumDetail(boolean emptySecundumDetail
) {
66 this.emptySecundumDetail
= emptySecundumDetail
;
70 public boolean isOverwriteExistingAccepted() {
71 return overwriteExistingAccepted
;
75 public void setOverwriteExistingAccepted(boolean overwriteExistingAccepted
) {
76 this.overwriteExistingAccepted
= overwriteExistingAccepted
;
80 public boolean isOverwriteExistingSynonyms() {
81 return overwriteExistingSynonyms
;
85 public void setOverwriteExistingSynonyms(boolean overwriteExistingSynonyms
) {
86 this.overwriteExistingSynonyms
= overwriteExistingSynonyms
;