Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2015-05-05 20:30:37 -0400
committerjmisinco2015-05-05 20:30:37 -0400
commit7ae7fb070e2fb87aa78f2de42d121486513d66d8 (patch)
tree6aa5db02d400d2be1581fbee31d841d1e79c3149 /plugins/org.eclipse.osee.disposition.rest.model
parent2caf1e00827189849e630c6f54a80e084ac92f1b (diff)
downloadorg.eclipse.osee-7ae7fb070e2fb87aa78f2de42d121486513d66d8.tar.gz
org.eclipse.osee-7ae7fb070e2fb87aa78f2de42d121486513d66d8.tar.xz
org.eclipse.osee-7ae7fb070e2fb87aa78f2de42d121486513d66d8.zip
feature[ats_ATS197282]: Create Dispo Config
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/DispoConfig.java62
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfigData.java35
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/ResolutionMethod.java52
3 files changed, 91 insertions, 58 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfig.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfig.java
index ee00495b30..398b707ed5 100644
--- a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfig.java
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfig.java
@@ -10,68 +10,14 @@
*******************************************************************************/
package org.eclipse.osee.disposition.model;
+import java.util.List;
+
/**
* @author Angel Avila
*/
-public class DispoConfig {
-
- private String type;
- private String name;
- private String resolutionType;
- private String resolutionTitle;
- private String peerNotes;
- private String customerNotes;
-
- public DispoConfig() {
-
- }
-
- public String getType() {
- return type;
- }
-
- public String getName() {
- return name;
- }
-
- public String getResolutionType() {
- return resolutionType;
- }
-
- public String getResolutionTitle() {
- return resolutionTitle;
- }
-
- public String getPeerNotes() {
- return peerNotes;
- }
-
- public String getCustomerNotes() {
- return customerNotes;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public void setResolutionType(String resolutionType) {
- this.resolutionType = resolutionType;
- }
-
- public void setResolutionTitle(String resolutionTitle) {
- this.resolutionTitle = resolutionTitle;
- }
+public interface DispoConfig {
- public void setPeerNotes(String peerNotes) {
- this.peerNotes = peerNotes;
- }
+ List<ResolutionMethod> getValidResolutions();
- public void setCustomerNotes(String customerNotes) {
- this.customerNotes = customerNotes;
- }
}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfigData.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfigData.java
new file mode 100644
index 0000000000..719c49ea52
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoConfigData.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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 java.util.List;
+
+/**
+ * @author Angel Avila
+ */
+public class DispoConfigData implements DispoConfig {
+
+ List<ResolutionMethod> validResolutions;
+
+ public DispoConfigData() {
+
+ }
+
+ public void setValidResolutions(List<ResolutionMethod> validResolutions) {
+ this.validResolutions = validResolutions;
+ }
+
+ @Override
+ public List<ResolutionMethod> getValidResolutions() {
+ return validResolutions;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/ResolutionMethod.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/ResolutionMethod.java
new file mode 100644
index 0000000000..504a321f0d
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/ResolutionMethod.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * 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 = "ResolutionMethod")
+public class ResolutionMethod {
+
+ private String value;
+ private String text;
+ private boolean isDefault;
+
+ public ResolutionMethod() {
+
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public void setText(String name) {
+ this.text = name;
+ }
+
+ public void setIsDefault(boolean isDefault) {
+ this.isDefault = isDefault;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public boolean getIsDefault() {
+ return isDefault;
+ }
+}

Back to the top