summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/jagg-logic/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/kgoodson/jagg-logic/src/main')
-rw-r--r--sandbox/kgoodson/jagg-logic/src/main/resources/JiraRSS.xsd99
-rw-r--r--sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xml65
-rw-r--r--sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xsd129
-rw-r--r--sandbox/kgoodson/jagg-logic/src/main/resources/exampleJira.xml67
-rw-r--r--sandbox/kgoodson/jagg-logic/src/main/resources/plan.composite43
5 files changed, 403 insertions, 0 deletions
diff --git a/sandbox/kgoodson/jagg-logic/src/main/resources/JiraRSS.xsd b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraRSS.xsd
new file mode 100644
index 0000000000..4a2b066267
--- /dev/null
+++ b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraRSS.xsd
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:include schemaLocation=""></xsd:include>
+ <xsd:element name="rss" type="RSS"></xsd:element>
+
+ <xsd:complexType name="JiraRSS">
+ <xsd:sequence>
+ <xsd:element name="channel" type="xsd:string"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Channel">
+ <xsd:sequence>
+ <xsd:element name="title" type="xsd:string"></xsd:element>
+ <xsd:element name="link" type="xsd:string"></xsd:element>
+ <xsd:element name="description" type="xsd:string"></xsd:element>
+ <xsd:element name="language" type="xsd:string"></xsd:element>
+ <xsd:element name="build-info" type="BuildInfo"></xsd:element>
+ <xsd:element name="item" type="Item"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+
+ <xsd:complexType name="Item">
+ <xsd:sequence>
+ <xsd:element name="title" type="xsd:string"></xsd:element>
+ <xsd:element name="link" type="xsd:string"></xsd:element>
+ <xsd:element name="description" type="xsd:string"></xsd:element>
+ <xsd:element name="environment" type="xsd:string"></xsd:element>
+ <xsd:element name="type" type="xsd:string"></xsd:element>
+ <xsd:element name="priority" type="xsd:string"></xsd:element>
+ <xsd:element name="status" type="xsd:string"></xsd:element>
+ <xsd:element name="resolution" type="xsd:string"></xsd:element>
+ <xsd:element name="assignee" type="xsd:string"></xsd:element>
+ <xsd:element name="reporter" type="xsd:string"></xsd:element>
+ <xsd:element name="key" type="Key"></xsd:element>
+ <xsd:element name="summary" type="xsd:string"></xsd:element>
+ <xsd:element name="type" type="xsd:string"></xsd:element>
+ <xsd:element name="priority" type="xsd:string"></xsd:element>
+ <xsd:element name="status" type="xsd:string"></xsd:element>
+ <xsd:element name="resolution" type="xsd:string"></xsd:element>
+ <xsd:element name="assignee" type="xsd:string"></xsd:element>
+ <xsd:element name="reporter" type="xsd:string"></xsd:element>
+ <xsd:element name="created" type="xsd:string"></xsd:element>
+ <xsd:element name="updated" type="xsd:string"></xsd:element>
+ <xsd:element name="version" type="xsd:string"></xsd:element>
+ <xsd:element name="fixVersion" type="xsd:string"></xsd:element>
+ <xsd:element name="component" type="xsd:string"></xsd:element>
+ <xsd:element name="due" type="xsd:string"></xsd:element>
+ <xsd:element name="votes" type="xsd:string"></xsd:element>
+ <xsd:element name="comments" type="Comments"></xsd:element>
+
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="RSS">
+ <xsd:sequence>
+ <xsd:element name="channel" type="Channel"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="version" type="xsd:string"></xsd:attribute>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="Key">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute name="id" type="xsd:string"></xsd:attribute>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Comment">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute name="id" type="xsd:string"></xsd:attribute>
+ <xsd:attribute name="author" type="xsd:string"></xsd:attribute>
+ <xsd:attribute name="created" type="xsd:string"></xsd:attribute>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Comments">
+ <xsd:sequence>
+ <xsd:element name="comment" type="Comment" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="BuildInfo">
+ <xsd:sequence>
+ <xsd:element name="version" type="xsd:string"></xsd:element>
+ <xsd:element name="build-number" type="xsd:string"></xsd:element>
+ <xsd:element name="build-date" type="xsd:string"></xsd:element>
+ <xsd:element name="edition" type="xsd:string"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+</xsd:schema>
diff --git a/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xml b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xml
new file mode 100644
index 0000000000..2d60a3b83a
--- /dev/null
+++ b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<ns2:plan xmlns:ns2="http://www.example.com/tracking">
+ <issueBase>https://issues.apache.org/jira/browse/</issueBase>
+ <milestone ID="V8 M5I14a">
+ <workItem>
+ <jira>TUSCANY-2850</jira>
+ <jiraData ID="TUSCANY-2850">
+ <title> Support binding.json-rpc for implementation.java's reference</title>
+ <status>Resolved</status>
+ <assignedTo>Luciano Resende</assignedTo>
+ </jiraData>
+ </workItem>
+ <workItem>
+ <jira>TUSCANY-3395</jira>
+ <jiraData ID="TUSCANY-3395">
+ <title> Tidying up Contribution Scanner API</title>
+ <status>Resolved</status>
+ <assignedTo>Luciano Resende</assignedTo>
+ </jiraData>
+ </workItem>
+ <workItem>
+ <jira>TUSCANY-3397</jira>
+ <jiraData ID="TUSCANY-3397">
+ <title> Add support for identifying the SCA Spec Version for contribution metadata</title>
+ <status>Resolved</status>
+ <assignedTo>Luciano Resende</assignedTo>
+ </jiraData>
+ </workItem>
+ </milestone>
+ <milestone ID="V8_M5I14b">
+ <workItem>
+ <jira>TUSCANY-3433</jira>
+ <jiraData ID="TUSCANY-3433">
+ <title> Import more of the basic itests from 1.x to 2.x </title>
+ <status>Open</status>
+ <assignedTo>Ramkumar Ramalingam</assignedTo>
+ </jiraData>
+ </workItem>
+ <workItem>
+ <jira>TUSCANY-3409</jira>
+ <jiraData ID="TUSCANY-3409">
+ <title> Non-Simple Property Injected with XML Fails with NullPointerException</title>
+ <status>Resolved</status>
+ <assignedTo>Raymond Feng</assignedTo>
+ </jiraData>
+ </workItem>
+ <workItem>
+ <jira>TUSCANY-3441</jira>
+ <jiraData ID="TUSCANY-3441">
+ <title> Improve mechanism for determining locality of endpoints to endpoint references</title>
+ <status>Open</status>
+ <assignedTo>Unassigned</assignedTo>
+ </jiraData>
+ </workItem>
+ <workItem>
+ <jira>TUSCANY-3443</jira>
+ <jiraData ID="TUSCANY-3443">
+ <title> Devise a away to track and spi changes we make in 2.x</title>
+ <status>Open</status>
+ <assignedTo>Unassigned</assignedTo>
+ </jiraData>
+ </workItem>
+ </milestone>
+ <milestone ID="V8_M5I15a"/>
+</ns2:plan>
diff --git a/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xsd b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xsd
new file mode 100644
index 0000000000..a03291e66c
--- /dev/null
+++ b/sandbox/kgoodson/jagg-logic/src/main/resources/JiraSideband.xsd
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+ -->
+<xsd:schema targetNamespace="http://www.example.com/tracking"
+ xmlns:jagg="http://www.example.com/tracking"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:element name="plan">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="issueBase" type="xsd:string" maxOccurs="1" minOccurs="0"></xsd:element>
+
+
+ <xsd:element name="milestone" type="jagg:Milestone" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+
+ <xsd:complexType name="WorkItem">
+ <xsd:annotation>
+ <xsd:documentation>
+ The milestone or deliverable name that we require this
+ function for
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+
+ <xsd:element name="title" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
+ <xsd:element name="responsible" type="xsd:string"
+ maxOccurs="1" minOccurs="0">
+ </xsd:element>
+ <xsd:element name="dueDate" type="xsd:string" maxOccurs="1"
+ minOccurs="0" />
+ <xsd:element name="jira" type="xsd:string" maxOccurs="1"
+ minOccurs="0">
+ </xsd:element>
+ <xsd:element name="status" type="xsd:string" maxOccurs="1"
+ minOccurs="0">
+ </xsd:element>
+
+
+ <xsd:element name="repository_vid" type="xsd:string"
+ maxOccurs="1" minOccurs="0">
+ </xsd:element>
+ <xsd:element name="note" type="xsd:string" maxOccurs="1"
+ minOccurs="0">
+ </xsd:element>
+
+ <xsd:element name="jiraData" type="jagg:JiraData" maxOccurs="1" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="ID" type="xsd:ID"></xsd:attribute>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="Milestone">
+
+ <xsd:sequence>
+ <xsd:element name="dueDate" type="xsd:string" maxOccurs="1"
+ minOccurs="0">
+ </xsd:element>
+
+ <xsd:element name="deliveredby" type="xsd:string"
+ maxOccurs="1" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ A tuscany source code repository branch name or
+ repository version number
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="note" type="xsd:string" maxOccurs="1"
+ minOccurs="0">
+ </xsd:element>
+
+ <xsd:element name="workItem" type="jagg:WorkItem"
+ maxOccurs="unbounded" minOccurs="0">
+ </xsd:element>
+ </xsd:sequence>
+
+
+ <xsd:attribute name="ID" type="xsd:string"></xsd:attribute>
+ </xsd:complexType>
+
+ <xsd:complexType name="Milestones">
+ <xsd:sequence>
+ <xsd:element name="milestone" type="jagg:Milestone" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="WorkItems">
+ <xsd:sequence>
+ <xsd:element name="workitem" type="jagg:WorkItem" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="PlanDTO">
+ <xsd:sequence>
+ <xsd:element name="milestones" type="jagg:Milestone" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ <xsd:element name="workitems" type="jagg:WorkItem" maxOccurs="unbounded" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="JiraData">
+ <xsd:sequence>
+ <xsd:element name="title" type="xsd:string"></xsd:element>
+ <xsd:element name="status" type="xsd:string"></xsd:element>
+ <xsd:element name="assignedTo" type="xsd:string"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="ID" type="xsd:string"></xsd:attribute>
+ </xsd:complexType>
+ </xsd:schema>
diff --git a/sandbox/kgoodson/jagg-logic/src/main/resources/exampleJira.xml b/sandbox/kgoodson/jagg-logic/src/main/resources/exampleJira.xml
new file mode 100644
index 0000000000..08dae93262
--- /dev/null
+++ b/sandbox/kgoodson/jagg-logic/src/main/resources/exampleJira.xml
@@ -0,0 +1,67 @@
+<rss version="0.92" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="JiraRSS.xsd ">
+ <channel>
+ <title>ASF JIRA</title>
+ <link>https://issues.apache.org:443/jira</link>
+ <description>This file is an XML representation of an issue</description>
+ <language>en-uk</language>
+ <build-info>
+ <version>3.13.5</version>
+ <build-number>360</build-number>
+ <build-date>07-07-2009</build-date>
+ <edition>Enterprise</edition>
+ </build-info>
+ <item>
+ <title>[TUSCANY-3397] Add support for identifying the
+ SCA Spec Version for contribution metadata</title>
+ <link>https://issues.apache.org:443/jira/browse/TUSCANY-3397</link>
+ <description>Provide the same support we have for Composites,
+ for Contribution Metadata</description>
+ <environment />
+ <key id="12443784">TUSCANY-3397</key>
+ <summary>Add support for identifying the SCA Spec Version for
+ contribution metadata</summary>
+ <type id="1"
+ iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
+ <priority id="3"
+ iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
+ <status id="5"
+ iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
+ <resolution id="1">Fixed</resolution>
+ <assignee username="luciano resende">Luciano Resende</assignee>
+ <reporter username="luciano resende">Luciano Resende</reporter>
+ <created>Fri, 18 Dec 2009 17:31:07 +0000 (UTC)</created>
+ <updated>Fri, 18 Dec 2009 17:58:58 +0000 (UTC)</updated>
+ <version>Java-SCA-2.0</version>
+ <fixVersion>Java-SCA-2.0</fixVersion>
+ <component>Java SCA Core Runtime</component>
+ <due />
+ <votes>0</votes>
+ <comments>
+ <comment id="12792548" author="luciano resende"
+ created="Fri, 18 Dec 2009 17:58:58 +0000 (UTC)">
+ Fixed, you can now identify the spec version of the contribution
+ metadata based on the SCA Namespace being used, this means that,
+ for SCA 1.1, specVersion will return
+ <a href="http://docs.oasis-open.org/ns/opencsa/sca/200912">http://docs.oasis-open.org/ns/opencsa/sca/200912</a>
+ </comment>
+ </comments>
+ <attachments />
+ <subtasks />
+ <customfields>
+ <customfield id="customfield_12310222"
+ key="com.atlassian.jira.ext.charting:timeinstatus">
+ <customfieldname>Time in Status</customfieldname>
+ <customfieldvalues />
+ </customfield>
+ <customfield id="customfield_12310221"
+ key="com.atlassian.jira.ext.charting:resolutiondate">
+ <customfieldname>Resolution Date</customfieldname>
+ <customfieldvalues>
+ <customfieldvalue>Fri, 18 Dec 2009 17:58:58 +0000 (UTC)</customfieldvalue>
+ </customfieldvalues>
+ </customfield>
+ </customfields>
+ </item>
+ </channel>
+</rss>
diff --git a/sandbox/kgoodson/jagg-logic/src/main/resources/plan.composite b/sandbox/kgoodson/jagg-logic/src/main/resources/plan.composite
new file mode 100644
index 0000000000..6e8a2138bf
--- /dev/null
+++ b/sandbox/kgoodson/jagg-logic/src/main/resources/plan.composite
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ targetNamespace="http://jagg"
+ name="jagg">
+
+ <component name="planApp">
+ <tuscany:implementation.widget location="uiservices/plan.html"/>
+ <service name="Widget">
+ <tuscany:binding.http uri="/plan"/>
+ </service>
+ <reference name="plan" target="Plan"/>
+ </component>
+
+ <component name="Plan">
+ <implementation.java class="services.PlanViewImpl"/>
+ <property name="planFile">src/main/resources/jiraSideBand.xml</property>
+ <service name="PlanView">
+ <tuscany:binding.jsonrpc/>
+ </service>
+ </component>
+
+
+
+</composite>