Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2013-11-20 18:21:21 -0500
committerGerrit Code Review @ Eclipse.org2013-12-03 12:59:08 -0500
commit94a1a53681dcdfddf07d11e37fcb161642cc6da6 (patch)
tree1837cf772f852df19de108b1bf20829c14e9232b /plugins/org.eclipse.osee.disposition.rest.model
parent7ef88c60d5934ad51b99a9f03c931e4c8c716efc (diff)
downloadorg.eclipse.osee-94a1a53681dcdfddf07d11e37fcb161642cc6da6.tar.gz
org.eclipse.osee-94a1a53681dcdfddf07d11e37fcb161642cc6da6.tar.xz
org.eclipse.osee-94a1a53681dcdfddf07d11e37fcb161642cc6da6.zip
feature[ats_VPY6Y]: Implement and test Disposition REST
Diffstat (limited to 'plugins/org.eclipse.osee.disposition.rest.model')
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/.classpath7
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/.project39
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/META-INF/MANIFEST.MF11
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/build.properties4
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/pom.xml17
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Discrepancy.java67
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoAnnotationData.java99
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItem.java35
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java120
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoMessages.java42
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSet.java29
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetData.java92
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetDescriptorData.java42
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/LocationRange.java59
-rw-r--r--plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Note.java52
15 files changed, 715 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/.classpath b/plugins/org.eclipse.osee.disposition.rest.model/.classpath
new file mode 100644
index 0000000000..ad32c83a78
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/.project b/plugins/org.eclipse.osee.disposition.rest.model/.project
new file mode 100644
index 0000000000..d92a4e10e0
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/.project
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.disposition.rest.model</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ds.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.disposition.rest.model/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..8314ee3e15
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: OSEE Disposition REST Model (Incubation)
+Bundle-SymbolicName: org.eclipse.osee.disposition.rest.model
+Bundle-Version: 0.16.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Service-Component: OSGI-INF/*.xml
+Bundle-Vendor: Eclipse Open System Engineering Environment
+Export-Package: org.eclipse.osee.disposition.model
+Import-Package: org.eclipse.osee.framework.jdk.core.type,
+ org.json
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/build.properties b/plugins/org.eclipse.osee.disposition.rest.model/build.properties
new file mode 100644
index 0000000000..34d2e4d2da
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/pom.xml b/plugins/org.eclipse.osee.disposition.rest.model/pom.xml
new file mode 100644
index 0000000000..6d38f98e26
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/pom.xml
@@ -0,0 +1,17 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.osee</groupId>
+ <artifactId>org.eclipse.osee.x.server.parent</artifactId>
+ <version>0.16.0-SNAPSHOT</version>
+ <relativePath>../../plugins/org.eclipse.osee.x.server.parent</relativePath>
+ </parent>
+
+ <artifactId>org.eclipse.osee.disposition.rest.model</artifactId>
+ <packaging>eclipse-plugin</packaging>
+ <name>OSEE Disposition REST Model (Incubation)</name>
+
+</project> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Discrepancy.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Discrepancy.java
new file mode 100644
index 0000000000..d7f0b2b1aa
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Discrepancy.java
@@ -0,0 +1,67 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+@XmlRootElement
+public class Discrepancy {
+ private int id;
+ private String text;
+ private LocationRange locationRange;
+ private JSONArray idsOfCoveringAnnotations;
+
+ public Discrepancy() {
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public LocationRange getLocationRange() {
+ return locationRange;
+ }
+
+ public JSONArray getIdsOfCoveringAnnotations() {
+ return idsOfCoveringAnnotations;
+ }
+
+ // Setters
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public void setLocationRange(LocationRange locationRange) {
+ this.locationRange = locationRange;
+ }
+
+ public void setIdsOfCoveringAnnotations(JSONArray idsOfCoveringAnnotations) {
+ this.idsOfCoveringAnnotations = idsOfCoveringAnnotations;
+ }
+
+ // Utils
+ public void addCoveringAnnotation(DispoAnnotationData annotation) {
+ idsOfCoveringAnnotations.put(annotation.getId());
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoAnnotationData.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoAnnotationData.java
new file mode 100644
index 0000000000..ff356ba940
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoAnnotationData.java
@@ -0,0 +1,99 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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;
+import org.eclipse.osee.framework.jdk.core.type.Identifiable;
+import org.eclipse.osee.framework.jdk.core.type.Identity;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+
+@XmlRootElement(name = "DispoAnnotationData")
+public class DispoAnnotationData implements Identifiable<String> {
+
+ private int id;
+ private JSONArray notesList;
+ private String locationRefs;
+ private boolean isValid;
+ private JSONArray idsOfCoveredDiscrepancies;
+
+ public DispoAnnotationData() {
+
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public JSONArray getNotesList() {
+ return notesList;
+ }
+
+ public String getLocationRefs() {
+ return locationRefs;
+ }
+
+ public JSONArray getIdsOfCoveredDiscrepancies() {
+ return idsOfCoveredDiscrepancies;
+ }
+
+ public boolean getIsValid() {
+ return isValid;
+ }
+
+ public void setLocationRefs(String locationRefs) {
+ this.locationRefs = locationRefs;
+ }
+
+ public void setNotesList(JSONArray notesList) {
+ this.notesList = notesList;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setIsValid(boolean isValid) {
+ this.isValid = isValid;
+ }
+
+ public void setIdsOfCoveredDiscrepancies(JSONArray idsOfCoveredDiscrepancies) {
+ this.idsOfCoveredDiscrepancies = idsOfCoveredDiscrepancies;
+ }
+
+ @Override
+ public String getGuid() {
+ return String.valueOf(id);
+ }
+
+ @Override
+ public String getName() {
+ return locationRefs;
+ }
+
+ public void addCoveredDiscrepancyIndex(Discrepancy discrepancy) {
+ idsOfCoveredDiscrepancies.put(discrepancy.getId());
+ }
+
+ @Override
+ public boolean matches(Identity<?>... identities) {
+ for (Identity<?> identity : identities) {
+ if (equals(identity)) {
+ return true;
+ }
+ }
+ return false;
+ }
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItem.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItem.java
new file mode 100644
index 0000000000..79231b451e
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItem.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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.Date;
+import org.eclipse.osee.framework.jdk.core.type.Identifiable;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+
+public interface DispoItem extends Identifiable<String> {
+
+ String getAssignee();
+
+ Date getCreationDate();
+
+ Date getLastUpdate();
+
+ String getStatus();
+
+ JSONArray getDiscrepanciesList();
+
+ JSONArray getAnnotationsList();
+}
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
new file mode 100644
index 0000000000..389d66f5ca
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoItemData.java
@@ -0,0 +1,120 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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.Date;
+import javax.xml.bind.annotation.XmlRootElement;
+import org.eclipse.osee.framework.jdk.core.type.Identity;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+
+@XmlRootElement(name = "DispoItemData")
+public class DispoItemData implements DispoItem {
+ private String guid;
+ private String name;
+ private String assignee;
+ private Date creationDate;
+ private Date lastUpdate;
+ private String status;
+ private JSONArray discrepanciesList;
+ private JSONArray annotationsList;
+
+ public DispoItemData() {
+
+ }
+
+ @Override
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public String getGuid() {
+ return guid;
+ }
+
+ @Override
+ public String getAssignee() {
+ return assignee;
+ }
+
+ @Override
+ public Date getCreationDate() {
+ return creationDate;
+ }
+
+ @Override
+ public Date getLastUpdate() {
+ return lastUpdate;
+ }
+
+ @Override
+ public String getStatus() {
+ return status;
+ }
+
+ @Override
+ public JSONArray getDiscrepanciesList() {
+ return discrepanciesList;
+ }
+
+ @Override
+ public JSONArray getAnnotationsList() {
+ return annotationsList;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void setDiscrepanciesList(JSONArray discrepanciesList) {
+ this.discrepanciesList = discrepanciesList;
+ }
+
+ public void setAnnotationsList(JSONArray annotationsList) {
+ this.annotationsList = annotationsList;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public void setLastUpdate(Date lastUpdate) {
+ this.lastUpdate = lastUpdate;
+ }
+
+ public void setCreationDate(Date creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public void setGuid(String guid) {
+ this.guid = guid;
+ }
+
+ public void setAssignee(String assignee) {
+ this.assignee = assignee;
+ }
+
+ @Override
+ public boolean matches(Identity<?>... identities) {
+ for (Identity<?> identity : identities) {
+ if (equals(identity)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoMessages.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoMessages.java
new file mode 100644
index 0000000000..8901f7b78f
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoMessages.java
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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 class DispoMessages {
+
+ private DispoMessages() {
+ //
+ }
+
+ // Messages
+ public static final String Program_NoneFound = "There are currently no disposition sets available on this branch";
+ public static final String Program_NotFound = "Dispositon Program was not found";
+
+ public static final String Set_NoneFound = "There are currently no disposition sets available on this branch";
+ public static final String Set_ConflictingNames = "Can't create sets with the same name";
+ public static final String Set_ErrorCreating = "Could not create set";
+ public static final String Set_EmptyNameOrPath = "The Set must have a name and import path";
+ public static final String Set_NotFound = "Dispositon Set was not found";
+
+ public static final String Item_EmptyName = "The Item must have a name";
+ public static final String Item_ConflictingNames = "Can't create items with the same name";
+ public static final String Item_NoneFound = "There are currently no disposition items available under this set";
+ public static final String Item_NotFound = "Dispositonable Item was not found";
+
+ public static final String Annotation_EmptyLocRef = "The Annotation must have a valid location reference";
+ public static final String Annotation_NoneFound = "There are currently no annotations available under this item";
+ public static final String Annotation_NotFound = "Annotation was not found";
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSet.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSet.java
new file mode 100644
index 0000000000..234214e551
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSet.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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 org.eclipse.osee.framework.jdk.core.type.Identifiable;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+
+public interface DispoSet extends Identifiable<String> {
+
+ String getImportPath();
+
+ String getStatusCount();
+
+ JSONArray getNotesList();
+
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetData.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetData.java
new file mode 100644
index 0000000000..8d2cca2a16
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetData.java
@@ -0,0 +1,92 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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;
+import org.eclipse.osee.framework.jdk.core.type.Identity;
+import org.json.JSONArray;
+
+/**
+ * @author Angel Avila
+ */
+
+@XmlRootElement(name = "DispoSetData")
+public class DispoSetData extends DispoSetDescriptorData implements DispoSet {
+
+ public enum DispositionOperationsEnum {
+ NEW_IMPORT,
+ RE_IMPORT
+ }
+
+ private String guid;
+ private DispositionOperationsEnum operation;
+ private JSONArray notesList;
+ private String importState;
+ private String statusCount;
+
+ public DispoSetData() {
+
+ }
+
+ @Override
+ public String getGuid() {
+ return guid;
+ }
+
+ public void setGuid(String guid) {
+ this.guid = guid;
+ }
+
+ public DispositionOperationsEnum getOperation() {
+ return operation;
+ }
+
+ public void setOperation(DispositionOperationsEnum operation) {
+ this.operation = operation;
+ }
+
+ public void setNotesList(JSONArray notesList) {
+ this.notesList = notesList;
+ }
+
+ @Override
+ public JSONArray getNotesList() {
+ return notesList;
+ }
+
+ public String getImportState() {
+ return importState;
+ }
+
+ public void setImportState(String importState) {
+ this.importState = importState;
+ }
+
+ @Override
+ public String getStatusCount() {
+ return statusCount;
+ }
+
+ public void setStatusCount(String statusCount) {
+ this.statusCount = statusCount;
+ }
+
+ @Override
+ public boolean matches(Identity<?>... identities) {
+ for (Identity<?> identity : identities) {
+ if (equals(identity)) {
+ return true;
+ }
+ }
+ return false;
+ }
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetDescriptorData.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetDescriptorData.java
new file mode 100644
index 0000000000..3f1f90170d
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/DispoSetDescriptorData.java
@@ -0,0 +1,42 @@
+/********************************************************************************
+ * Copyright (c) 2013 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 = "DispoSetDescriptorData")
+public class DispoSetDescriptorData {
+
+ private String name;
+ private String importPath;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getImportPath() {
+ return importPath;
+ }
+
+ public void setImportPath(String importPath) {
+ this.importPath = importPath;
+ }
+
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/LocationRange.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/LocationRange.java
new file mode 100644
index 0000000000..4eb1d35fb9
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/LocationRange.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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 = "LocationRange")
+public class LocationRange {
+ private int start;
+ private int end;
+
+ public LocationRange() {
+ }
+
+ public LocationRange(int start, int end) {
+ this.start = start;
+ this.end = end;
+ }
+
+ public int getStart() {
+ return start;
+ }
+
+ public int getEnd() {
+ return end;
+ }
+
+ public void setStart(int start) {
+ this.start = start;
+ }
+
+ public void setEnd(int end) {
+ this.end = end;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(start);
+ if (end != start) {
+ sb.append("-");
+ sb.append(end);
+ }
+ return sb.toString();
+ }
+}
diff --git a/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Note.java b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Note.java
new file mode 100644
index 0000000000..ae1aa03f51
--- /dev/null
+++ b/plugins/org.eclipse.osee.disposition.rest.model/src/org/eclipse/osee/disposition/model/Note.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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 = "Note")
+public class Note {
+ private String type;
+ private String dateString;
+ private String content;
+
+ public Note() {
+
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getDateString() {
+ return dateString;
+ }
+
+ public void setDateString(String dateString) {
+ this.dateString = dateString;
+ }
+}

Back to the top