You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2011/11/01 23:20:31 UTC

svn commit: r1196327 - in /oodt/trunk/pcs/opsui: ./ src/main/java/org/apache/oodt/pcs/opsui/ src/main/webapp/ src/main/webapp/META-INF/ src/main/webapp/WEB-INF/

Author: mattmann
Date: Tue Nov  1 22:20:30 2011
New Revision: 1196327

URL: http://svn.apache.org/viewvc?rev=1196327&view=rev
Log:
- progress towards OODT-157 PCS Operator User Interface web application

Added:
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.css
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/Home.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/HomePage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/OpsuiApp.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.java
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkflowInstancesViewerPage.html
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/banner.jpg   (with props)
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image1.gif   (with props)
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image2.gif   (with props)
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/nasa_logo.gif   (with props)
    oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/spacer.gif   (with props)
    oodt/trunk/pcs/opsui/src/main/webapp/
    oodt/trunk/pcs/opsui/src/main/webapp/META-INF/
    oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml   (with props)
    oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/
    oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml   (with props)
Modified:
    oodt/trunk/pcs/opsui/   (props changed)
    oodt/trunk/pcs/opsui/pom.xml

Propchange: oodt/trunk/pcs/opsui/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Nov  1 22:20:30 2011
@@ -0,0 +1 @@
+target

Modified: oodt/trunk/pcs/opsui/pom.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/pom.xml?rev=1196327&r1=1196326&r2=1196327&view=diff
==============================================================================
--- oodt/trunk/pcs/opsui/pom.xml (original)
+++ oodt/trunk/pcs/opsui/pom.xml Tue Nov  1 22:20:30 2011
@@ -19,10 +19,14 @@ the License.
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 	
 	<modelVersion>4.0.0</modelVersion>
-	<groupId>org.apache.oodt</groupId>
 	<artifactId>pcs-opsui</artifactId>
 	<packaging>war</packaging>
-	<version>0.4-SNAPSHOT</version>
+	<parent>
+       <groupId>org.apache.oodt</groupId>
+       <artifactId>oodt-core</artifactId>
+       <version>0.4-SNAPSHOT</version>
+       <relativePath>../../core/pom.xml</relativePath>
+    </parent>
 	<name>Process Control System Operator Interface Webapp</name>
 	<properties>
 		<wicket.version>1.4.16</wicket.version>
@@ -39,7 +43,7 @@ the License.
 		<dependency>
 		  <groupId>org.apache.oodt</groupId>
 		  <artifactId>oodt-webapp-components</artifactId>
-		  <version>0.4-SNAPSHOT</version>
+		  <version>${project.parent.version}</version>
 		  <exclusions>
 		    <exclusion>
 		      <artifactId>cas-filemgr</artifactId>
@@ -51,6 +55,16 @@ the License.
 		    </exclusion>
 		  </exclusions>
 		</dependency>
+		<dependency>
+		   <groupId>org.apache.oodt</groupId>
+		   <artifactId>cas-filemgr</artifactId>
+		   <version>${project.parent.version}</version>
+		</dependency>
+		<dependency>
+		  <groupId>org.apache.oodt</groupId>
+		  <artifactId>cas-metadata</artifactId>
+		  <version>${project.parent.version}</version>
+		</dependency>
 
 		<!-- LOGGING DEPENDENCIES - LOG4J -->
 		<dependency>

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.css?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.css (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.css Tue Nov  1 22:20:30 2011
@@ -0,0 +1,93 @@
+
+#opsui_header_tbl{
+  border:0px;
+  border-spacing:0px;
+  white-space:nowrap;
+  padding:0px;
+  width:100%;
+
+}
+
+#opsui_inner_header_tbl{
+  border:0px;
+  border-spacing:0px;
+  white-space:nowrap;
+  padding:0px;
+  width:100%;
+
+}
+
+#menu_tbl{
+  padding:0px;
+  border-spacing:1px;
+  border:0px;
+  width:100%;
+  color:white; 
+}
+
+#menu_inner_tbl{
+  background-color:#666666;
+  height:23px;
+  width:20px;
+}
+
+#menu_links{
+  background-color:#666666;
+  height:23px;
+}
+
+#footer_tbl{
+  padding:4px;
+  border-spacing:0px;
+  width:730px;
+  border:0px;
+}
+
+.banner{
+  border:0px;
+  width:379px;
+  height:65px;  
+}
+
+.spacer{
+  width:730px;
+  height:2px;  
+}
+
+.tdspacer{
+  background-color:#666666;
+  height:23px;
+  width:20%;
+}
+
+.tight-noborder{
+  vertical-spacing:0px;
+  width:100%;
+  border:0px;
+}
+
+.white {
+  color:white;
+}
+
+.blackLink {
+  color:#000000;
+  line-height:18px;
+}
+
+.firstGovImg{
+  height:39px;
+  width:136px;
+  border:0px;
+}
+
+.nasaHomePageImg{
+  height:40px;
+  width:61px;
+  border:0px;
+}
+
+.feedback{
+  font-family:Arial, Helvetica, sans-serif;
+  font-size:2px;
+}
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,176 @@
+<html
+	xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
+<head>
+<title>Apache OODT PCS Operator Interface</title>
+<wicket:link>
+  <link type="text/css" rel="stylesheet" href="BasePage.css"/>
+</wicket:link>
+</head>
+<body>
+
+<table id="opsui_header_tbl">
+	<tr>
+		<td>
+		<table id="opsui_inner_header_tbl">
+			<tr>
+				<td style="width:379px;background-color:#ccccc;">
+				 <wicket:link>
+				   <img src="nasa_logo.gif" alt="banner image" class="banner" usemap="#Map"/>
+			     </wicket:link>	
+				</td>
+				<td style="height:70px;width:136px;background-color:#cccccc;"></td>
+				<td style="width:205px;background-color:#000669;text-align:center;vertical-align:middle;">
+					<!--TODO: add Wicket logon widget here -->
+					
+					<span id="logon_widget"/>
+					  <span style="font-size:2px;color:white;">Welcome to the Operator Interface Web site</span>
+					  <br/><br/>
+				</td>
+			</tr>
+		</table>
+		</td>
+	</tr>
+	<tr>
+		<td>
+		 <wicket:link>
+		   <img src="spacer.gif" alt="spacer" class="spacer"/>
+	     </wicket:link>
+	    </td>
+	</tr>
+	<tr>
+		<td class="white">
+		<table id="menu_tbl">
+			<tr>
+				<td id="menu_inner_tbl"
+					onMouseOver="menuSelected(this)" onMouseOut="menuNotSelected(this)">
+			     <a href="#" wicket:id="home_link" class="white" style="text-align:center;">HOME</a>		
+				</td>
+				<td class="tdspacer"></td>
+				<td class="tdspacer"></td>
+				<td class="tdspacer"></td>
+				<td class="tdspacer"></td>
+			</tr>
+		</table>
+		</td>
+	</tr>
+	<tr>
+		<td>
+		 <wicket:link>
+		   <img src="spacer.gif" alt="spacer" class="spacer" style="height:1px;"/>
+	     </wicket:link>
+	    </td>
+	</tr>
+	<tr>
+		<td style="width:100%">
+		 <wicket:link>
+		  <img src="banner.jpg" class="tight-noborder" alt="Banner"/>
+		 </wicket:link>
+		</td>
+	</tr>
+	<tr>
+	  <td class="white">
+	    <table id="menu_tbl">
+			<tr>
+				<td id="menu_links" 
+				    onMouseOver="menuSelected(this)"
+					onMouseOut="menuNotSelected(this)">
+					
+					<a href="#" wicket:id="fmbrowser_link" class="blackLink">
+					  <span style="text-align:center;color:white;font-weight:bold;">
+					    File Catalog Browse
+					  </span>
+					</a>
+		        </td>
+				<td id="menu_links" 
+				    onMouseOver="menuSelected(this)"
+					onMouseOut="menuNotSelected(this)">
+					
+					<a href="#" id="wmonitor_link" class="blackLink">
+					  <span style="text-align:center;color:white;font-weight:bold;">
+					    Workflow Monitor
+					  </span>
+					</a>
+		        </td>
+				<td id="menu_links" 
+				    onMouseOver="menuSelected(this)"
+					onMouseOut="menuNotSelected(this)">
+					
+					<a href="#" id="rmonitor_link" class="blackLink">
+					  <span style="text-align:center;color:white;font-weight:bold;">
+					    Resource Monitor
+					  </span>
+					</a>
+		        </td>
+				<td id="menu_links" 
+				    onMouseOver="menuSelected(this)"
+					onMouseOut="menuNotSelected(this)">
+					
+					<a href="#" id="config_link" class="blackLink">
+					  <span style="text-align:center;color:white;font-weight:bold;">
+					    Configuration
+					  </span>
+					</a>
+		        </td>		        		        
+				<td id="menu_links" 
+				    onMouseOver="menuSelected(this)"
+					onMouseOut="menuNotSelected(this)">
+					
+					<a href="#" id="pcsstatus_link" class="blackLink">
+					  <span style="text-align:center;color:white;font-weight:bold;">
+					    PCS Status
+					  </span>
+					</a>
+		        </td>
+		    </tr>
+		</table>
+     </td>
+	</tr>
+	<tr>
+		<td>
+		 <wicket:link>
+		  <img src="spacer.gif" alt="spacer" class="spacer" style="height:1px;">
+		 </wicket:link>
+		</td>
+	</tr>
+
+</table>
+
+<wicket:child/>
+
+<table id="footer_tbl">
+	<tr>
+		<td style="vertical-align:top;width:160px;">
+		 <a target="_blank" href="http://www.firstgov.gov/">
+		  <wicket:link>
+		    <img class="firstGovImg" src="footer_image1.gif"/>
+		  </wicket:link>
+		 </a>
+		</td>
+		<td style="width:200px;">
+		  <a target="_blank" 
+		     href="http://www.jpl.nasa.gov/copyrights.cfm">+ JPL/Caltech Privacy/Copyright
+		  </a>		  
+		</td>
+		<td style="width:61px;">
+		  <a target="_blank" href="http://www.nasa.gov/home/index.html">
+		   <wicket:link>
+			<img class="nasaHomePageImg" alt="NASA Home Page" src="footer_image2.gif"/>
+		   </wicket:link>
+		  </a>
+		</td>
+		<td style="width:280px;">
+		  <span class="feedback">&nbsp;</span>
+		  <a href="#" wicket:id="contact_link">Feedback</a>
+		</td>
+	</tr>
+</table>
+
+<wicket:remove>
+  <div style="text-align:center">
+    <p>Powered by <a href="http://oodt.apache.org/">Apache OODT</a></p>
+  </div>
+</wicket:remove>
+
+</body>
+
+</html>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/BasePage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,61 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.ExternalLink;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ *
+ * Provides the controller for the OPSUI template.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class BasePage extends WebPage {
+  
+  public BasePage(PageParameters parameters){
+    add(new Link("home_link"){
+      /* (non-Javadoc)
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        setResponsePage(HomePage.class);
+      }
+    });
+    
+    add(new Link("fmbrowser_link"){
+      /* (non-Javadoc)
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+       setResponsePage(TypesPage.class); 
+      }
+    });
+    
+    add(new ExternalLink("contact_link", "mailto:"+((OpsuiApp)getApplication()).getEmailContactLink()));
+  }
+
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/Home.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/Home.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/Home.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/Home.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,5 @@
+<wicket:extend>
+
+<h3>Welcome to the Apache OODT PCS Operator Interface!</h3>
+
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/HomePage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/HomePage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/HomePage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/HomePage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ *
+ * Main home page of the web app.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class HomePage extends BasePage {
+
+  public HomePage(PageParameters parameters){
+     super(parameters);
+  }
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/OpsuiApp.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/OpsuiApp.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/OpsuiApp.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/OpsuiApp.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,112 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.metadata.util.PathUtils;
+import org.apache.oodt.cas.webcomponents.filemgr.FMBrowserSession;
+import org.apache.oodt.cas.webcomponents.workflow.instance.WorkflowInstancesViewer;
+
+//Wicket imports
+import org.apache.wicket.Page;
+import org.apache.wicket.Request;
+import org.apache.wicket.ResourceReference;
+import org.apache.wicket.Response;
+import org.apache.wicket.Session;
+import org.apache.wicket.protocol.http.WebApplication;
+import org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy;
+
+/**
+ *
+ * The OPSUI application object.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class OpsuiApp extends WebApplication {
+
+  
+  public OpsuiApp(){
+    MixedParamUrlCodingStrategy types = new MixedParamUrlCodingStrategy(
+        "types", TypesPage.class, new String[] {});
+    mount(types);
+
+    MixedParamUrlCodingStrategy typeBrowser = new MixedParamUrlCodingStrategy(
+        "type", TypeBrowserPage.class, new String[] { "name", "pageNum" });
+    mount(typeBrowser);
+
+    MixedParamUrlCodingStrategy prodBrowser = new MixedParamUrlCodingStrategy(
+        "product", ProductBrowserPage.class, new String[] { "id" });
+    mount(prodBrowser);    
+  }
+
+  /* (non-Javadoc)
+   * @see org.apache.wicket.Application#getHomePage()
+   */
+  @Override
+  public Class<? extends Page> getHomePage() {
+    return HomePage.class;
+  }
+  
+  public String getFmUrlStr() {
+    return 
+      PathUtils.replaceEnvVariables(getServletContext().
+          getInitParameter("filemgr.url"));
+  }
+  
+  public String getEmailContactLink(){
+    return getServletContext().getInitParameter("contact.email");
+  }
+
+  /* (non-Javadoc)
+   * @see org.apache.wicket.protocol.http.WebApplication#newSession(org.apache.wicket.Request, org.apache.wicket.Response)
+   */
+  @Override
+  public Session newSession(Request request, Response response) {
+    return new FMBrowserSession(request);
+  }
+  
+  /*
+   * (non-Javadoc)
+   * 
+   * @see org.apache.wicket.protocol.http.WebApplication#init()
+   */
+  @Override
+  protected void init() {
+    super.init();
+
+    mountSharedResource("/images/percentImage_back1.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back1.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back2.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back2.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back3.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back3.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back4.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back4.png").getSharedResourceKey());
+  }  
+  
+  
+
+
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,3 @@
+<wicket:extend>
+ <div id="prod_browser_component" wicket:id="prod_browser_component"/>
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductBrowserPage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.webcomponents.filemgr.browser.product.ProductBrowser;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ *
+ * Shows a product, its metadata, and its references, all 
+ * on a single page.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class ProductBrowserPage extends BasePage {
+
+  public ProductBrowserPage(PageParameters parameters){
+    super(parameters);
+    add(new ProductBrowser("prod_browser_component", 
+        ((OpsuiApp)getApplication()).getFmUrlStr(),
+        parameters.getString("id")));
+  }
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,3 @@
+<wicket:extend>
+  <div id="met_browser_component" wicket:id="met_browser_component"/>
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductMetBrowserPage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,43 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.webcomponents.filemgr.browser.metadata.MetadataBrowser;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ *
+ * Show's a product's metadata.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class ProductMetBrowserPage extends BasePage {
+  
+  public ProductMetBrowserPage(PageParameters parameters){
+    super(parameters);
+    add(new MetadataBrowser("met_browser_component", ((OpsuiApp)getApplication()).getFmUrlStr(), 
+        parameters.getString("id")));
+  }
+
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,3 @@
+<wicket:extend>
+  <div id="refs_component" wicket:id="refs_component"/>
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/ProductRefBrowserPage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,45 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.webcomponents.filemgr.browser.product.ProductRefsBrowser;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ *
+ * Page that shows a Product's reference 
+ * information.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class ProductRefBrowserPage extends BasePage {
+  
+  public ProductRefBrowserPage(PageParameters parameters){
+    super(parameters);    
+    add(new ProductRefsBrowser("refs_component",
+        ((OpsuiApp)getApplication()).getFmUrlStr(),
+        parameters.getString("id")));
+  }
+
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,4 @@
+<wicket:extend>
+
+ <div wicket:id="type_browser_component" id="type_browser_component"/>
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypeBrowserPage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.webcomponents.filemgr.browser.types.TypeBrowser;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ *
+ * The type browser page that shows a table including 
+ * all of the queried products for a given type and a 
+ * query selection form.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class TypeBrowserPage extends BasePage {
+
+  public TypeBrowserPage(PageParameters parameters){
+    super(parameters);
+    add(new TypeBrowser("type_browser_component", ((OpsuiApp)getApplication()).getFmUrlStr(),
+        parameters.getString("name"), parameters.getInt("pageNum", 1),        
+        TypeBrowserPage.class, ProductBrowserPage.class, ProductRefBrowserPage.class, 
+        ProductMetBrowserPage.class));
+  }
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,3 @@
+<wicket:extend>
+  <div id="types_component" wicket:id="types_component"/>
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.java?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.java (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/TypesPage.java Tue Nov  1 22:20:30 2011
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.pcs.opsui;
+
+//OODT imports
+import org.apache.oodt.cas.webcomponents.filemgr.browser.types.Types;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+
+/**
+ * 
+ * The types page that shows type names and bucket counts
+ * (that are clickable).
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class TypesPage extends BasePage {
+
+  public TypesPage(PageParameters parameters) {
+    super(parameters);    
+    add(new Types("types_component",
+        ((OpsuiApp) getApplication()).getFmUrlStr(), TypeBrowserPage.class));
+  }
+}

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkflowInstancesViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkflowInstancesViewerPage.html?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkflowInstancesViewerPage.html (added)
+++ oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkflowInstancesViewerPage.html Tue Nov  1 22:20:30 2011
@@ -0,0 +1,4 @@
+<wicket:extend>
+
+
+</wicket:extend>
\ No newline at end of file

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/banner.jpg
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/banner.jpg?rev=1196327&view=auto
==============================================================================
Binary file - no diff available.

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/banner.jpg
------------------------------------------------------------------------------
    svn:executable = *

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/banner.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image1.gif
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image1.gif?rev=1196327&view=auto
==============================================================================
Binary file - no diff available.

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image1.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image1.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image2.gif
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image2.gif?rev=1196327&view=auto
==============================================================================
Binary file - no diff available.

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image2.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/footer_image2.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/nasa_logo.gif
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/nasa_logo.gif?rev=1196327&view=auto
==============================================================================
Binary file - no diff available.

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/nasa_logo.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/nasa_logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/spacer.gif
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/spacer.gif?rev=1196327&view=auto
==============================================================================
Binary file - no diff available.

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/spacer.gif
------------------------------------------------------------------------------
    svn:executable = *

Propchange: oodt/trunk/pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/spacer.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml (added)
+++ oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml Tue Nov  1 22:20:30 2011
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more contributor
+license agreements.  See the NOTICE.txt file distributed with this work for
+additional information regarding copyright ownership.  The ASF licenses this
+file to you under the Apache License, Version 2.0 (the "License"); you may not
+use this file except in compliance with the License.  You may obtain a copy of
+the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+License for the specific language governing permissions and limitations under
+the License.
+-->
+<Context path="/opsui">
+		
+	<Parameter name="filemgr.url"
+	    value="[FILEMGR_URL]"/>		
+		
+	<Parameter name="workflow.url"
+	    value="[WORKFLOW_URL]"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.webapp.lifecycleFilePath"
+	    value="[WORKFLOW_HOME]/policy/workflow-lifecycle.xml"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.inst.statuses"
+	    value="STARTED, FINISHED, METMISS, PAUSED"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.webapp.inst.metFields.filePath"
+	    value="[WORKFLOW_HOME]/policy/workflow-instance-met.xml"/>
+	    
+	<Parameter name="contact.email" value="user@oodt.apache.org"/>
+	    
+</Context>

Propchange: oodt/trunk/pcs/opsui/src/main/webapp/META-INF/context.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml?rev=1196327&view=auto
==============================================================================
--- oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml (added)
+++ oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml Tue Nov  1 22:20:30 2011
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+	 version="2.4">
+
+	<display-name>opsui</display-name>
+
+	 <!--  
+	      There are three means to configure Wickets configuration mode and they are
+	      tested in the order given. 
+	      1) A system property: -Dwicket.configuration
+	      2) servlet specific <init-param>
+	      3) context specific <context-param>
+	      The value might be either "development" (reloading when templates change)
+	      or "deployment". If no configuration is found, "development" is the default.
+	-->
+
+	<filter>
+		<filter-name>wicket.browser</filter-name>
+ 		<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
+		<init-param>
+			<param-name>applicationClassName</param-name>
+			<param-value>org.apache.oodt.pcs.opsui.OpsuiApp</param-value>
+ 		</init-param>
+ 	</filter>
+
+ <filter-mapping>
+  <filter-name>wicket.browser</filter-name>
+	<url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+
+</web-app>

Propchange: oodt/trunk/pcs/opsui/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:executable = *