Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-10-14 12:00:28 -0400
committerRoberto E. Escobar2011-10-14 12:00:28 -0400
commit0d038ed5dfb1179f67146093194fcfc348ac64ed (patch)
tree714ff93a4c20d924edc897bca8244586f3590914 /plugins/org.eclipse.osee.display.api/src
parent8e5671b17960b99fccca5a21174e3d0146b0ba29 (diff)
downloadorg.eclipse.osee-0d038ed5dfb1179f67146093194fcfc348ac64ed.tar.gz
org.eclipse.osee-0d038ed5dfb1179f67146093194fcfc348ac64ed.tar.xz
org.eclipse.osee-0d038ed5dfb1179f67146093194fcfc348ac64ed.zip
feature[ats_8KF8L]: Initial integration of presenter and view
Diffstat (limited to 'plugins/org.eclipse.osee.display.api/src')
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/ArtifactHeaderComponent.java3
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/AttributeComponent.java3
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/DisplaysErrorComponent.java20
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java5
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchHeaderComponent.java4
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultComponent.java2
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultsListComponent.java4
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/ArtifactProvider.java32
-rw-r--r--plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/SearchPresenter.java2
9 files changed, 60 insertions, 15 deletions
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/ArtifactHeaderComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/ArtifactHeaderComponent.java
index f8fd4426c5..9cf2db928b 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/ArtifactHeaderComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/ArtifactHeaderComponent.java
@@ -15,11 +15,10 @@ import org.eclipse.osee.display.api.data.WebArtifact;
/**
* @author Shawn F. Cook
*/
-public interface ArtifactHeaderComponent {
+public interface ArtifactHeaderComponent extends DisplaysErrorComponent {
void clearAll();
void setArtifact(WebArtifact artifact);
- void setErrorMessage(String message);
}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/AttributeComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/AttributeComponent.java
index 0870ba1233..d97556fbcf 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/AttributeComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/AttributeComponent.java
@@ -13,11 +13,10 @@ package org.eclipse.osee.display.api.components;
/**
* @author Shawn F. Cook
*/
-public interface AttributeComponent {
+public interface AttributeComponent extends DisplaysErrorComponent {
void clearAll();
void addAttribute(String type, String value);
- void setErrorMessage(String message);
}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/DisplaysErrorComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/DisplaysErrorComponent.java
new file mode 100644
index 0000000000..1935d3ea46
--- /dev/null
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/DisplaysErrorComponent.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.display.api.components;
+
+/**
+ * @author John Misinco
+ */
+public interface DisplaysErrorComponent {
+
+ void setErrorMessage(String message);
+
+}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java
index 97d36e6840..01fa818fbb 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java
@@ -16,7 +16,7 @@ import org.eclipse.osee.display.api.data.WebId;
/**
* @author Shawn F. Cook
*/
-public interface RelationComponent {
+public interface RelationComponent extends DisplaysErrorComponent {
void clearAll();
@@ -26,5 +26,4 @@ public interface RelationComponent {
void addRelation(WebArtifact id);
- void setErrorMessage(String message);
-}
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchHeaderComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchHeaderComponent.java
index 64fbc9dda7..1e7e5e16b4 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchHeaderComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchHeaderComponent.java
@@ -13,10 +13,8 @@ package org.eclipse.osee.display.api.components;
/**
* @author Shawn F. Cook
*/
-public interface SearchHeaderComponent {
+public interface SearchHeaderComponent extends DisplaysErrorComponent {
void clearAll();
- void setErrorMessage(String message);
-
}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultComponent.java
index bf1b490f91..40c63bba0c 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultComponent.java
@@ -16,7 +16,7 @@ import org.eclipse.osee.display.api.data.WebArtifact;
/**
* @author Shawn F. Cook
*/
-public interface SearchResultComponent {
+public interface SearchResultComponent extends DisplaysErrorComponent {
void setArtifact(WebArtifact artifact);
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultsListComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultsListComponent.java
index eacf0e97fc..c48494ef3e 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultsListComponent.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/SearchResultsListComponent.java
@@ -13,12 +13,10 @@ package org.eclipse.osee.display.api.components;
/**
* @author Shawn F. Cook
*/
-public interface SearchResultsListComponent {
+public interface SearchResultsListComponent extends DisplaysErrorComponent {
void clearAll();
SearchResultComponent createSearchResult();
- void setErrorMessage(String message);
-
}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/ArtifactProvider.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/ArtifactProvider.java
new file mode 100644
index 0000000000..4a7aea021a
--- /dev/null
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/ArtifactProvider.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.display.api.search;
+
+import java.util.List;
+import org.eclipse.osee.framework.core.data.IArtifactToken;
+import org.eclipse.osee.framework.core.data.IOseeBranch;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.orcs.data.ReadableArtifact;
+import org.eclipse.osee.orcs.data.ReadableAttribute;
+import org.eclipse.osee.orcs.search.Match;
+
+/**
+ * @author John Misinco
+ */
+public interface ArtifactProvider {
+
+ ReadableArtifact getArtifactByArtifactToken(IOseeBranch branch, IArtifactToken token) throws OseeCoreException;
+
+ ReadableArtifact getArtifactByGuid(IOseeBranch branch, String guid) throws OseeCoreException;
+
+ List<Match<ReadableArtifact, ReadableAttribute<?>>> getSearchResults(IOseeBranch branch, boolean nameOnly, String searchPhrase) throws OseeCoreException;
+
+}
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/SearchPresenter.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/SearchPresenter.java
index 67bc352001..f038c21d18 100644
--- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/SearchPresenter.java
+++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/search/SearchPresenter.java
@@ -31,6 +31,6 @@ public interface SearchPresenter<T extends SearchHeaderComponent> {
void initArtifactPage(String url, T searchHeaderComp, ArtifactHeaderComponent artHeaderComp, RelationComponent relComp, AttributeComponent attrComp);
- void selectRelationType(WebId id, RelationComponent relationComponent);
+ void selectRelationType(WebArtifact artifact, WebId relation, RelationComponent relationComponent);
} \ No newline at end of file

Back to the top