Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2015-01-29 19:12:38 -0500
committerRoberto E. Escobar2015-01-29 19:12:38 -0500
commitfd6670c77d78c221429af2a9f4c303481944ed43 (patch)
treec74fce72d6420cc2950b6cc7aecf788055244710 /plugins/org.eclipse.osee.disposition.rest.model
parent5a9899fc63f0a4ea821dabba8052ea6285f69d01 (diff)
downloadorg.eclipse.osee-fd6670c77d78c221429af2a9f4c303481944ed43.tar.gz
org.eclipse.osee-fd6670c77d78c221429af2a9f4c303481944ed43.tar.xz
org.eclipse.osee-fd6670c77d78c221429af2a9f4c303481944ed43.zip
feature[ats_ATS144393]: Add Copy Set Functionality for Dispo tool
Diffstat (limited to 'plugins/org.eclipse.osee.disposition.rest.model')
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParamOption.java47
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParams.java58
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java5
3 files changed, 105 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParamOption.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParamOption.java
new file mode 100644
index 0000000000..cb77175e73
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParamOption.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.disposition.model;
+
+/**
+ * @author Angel Avila
+ */
+public enum CopySetParamOption {
+ NONE(0),
+ OVERRIDE(1),
+ OVERRIDE_EMPTY(2),
+ MERGE(3);
+
+ private final int value;
+
+ CopySetParamOption(int value) {
+ this.value = value;
+ }
+
+ public final int getValue() {
+ return value;
+ }
+
+ public boolean isOverride() {
+ return this == CopySetParamOption.OVERRIDE;
+ }
+
+ public boolean isEmptyOverride() {
+ return this == CopySetParamOption.OVERRIDE_EMPTY;
+ }
+
+ public boolean isMerge() {
+ return this == CopySetParamOption.MERGE;
+ }
+
+ public boolean isNone() {
+ return this == CopySetParamOption.NONE;
+ }
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParams.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParams.java
new file mode 100644
index 0000000000..06167a0403
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/CopySetParams.java
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.disposition.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author Angel Avila
+ */
+@XmlRootElement(name = "CopySetParams")
+public class CopySetParams {
+
+ private CopySetParamOption annotationParam;
+ private CopySetParamOption categoryParam;
+ private CopySetParamOption noteParam;
+ private CopySetParamOption assigneeParam;
+
+ public CopySetParamOption getAnnotationParam() {
+ return annotationParam;
+ }
+
+ public CopySetParamOption getCategoryParam() {
+ return categoryParam;
+ }
+
+ public CopySetParamOption getNoteParam() {
+ return noteParam;
+ }
+
+ public CopySetParamOption getAssigneeParam() {
+ return assigneeParam;
+ }
+
+ public void setAnnotationParam(CopySetParamOption annotationParam) {
+ this.annotationParam = annotationParam;
+ }
+
+ public void setCategoryParam(CopySetParamOption categoryParam) {
+ this.categoryParam = categoryParam;
+ }
+
+ public void setNoteParam(CopySetParamOption noteParam) {
+ this.noteParam = noteParam;
+ }
+
+ public void setAssigneeParam(CopySetParamOption assigneeParam) {
+ this.assigneeParam = assigneeParam;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java
index bc3958beef..0c9ab9a2f6 100644
--- a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java
@@ -39,7 +39,6 @@ public class DispoItemData implements DispoItem {
private String elapsedTime;
private Boolean aborted;
private String itemNotes;
- private Boolean needsReview;
public DispoItemData() {
@@ -189,10 +188,6 @@ public class DispoItemData implements DispoItem {
this.itemNotes = itemNotes;
}
- public void setNeedsReview(Boolean needsReview) {
- this.needsReview = needsReview;
- }
-
@Override
public boolean matches(Identity<?>... identities) {
for (Identity<?> identity : identities) {

Back to the top