You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2012/12/06 17:59:47 UTC
[23/52] [partial] ISIS-188: more reorganizing of artifacts into
physical directories.
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/onlinedemo/webapp/src/main/webapp/mobile/app.js
----------------------------------------------------------------------
diff --git a/examples/onlinedemo/webapp/src/main/webapp/mobile/app.js b/examples/onlinedemo/webapp/src/main/webapp/mobile/app.js
deleted file mode 100644
index 5f2c500..0000000
--- a/examples/onlinedemo/webapp/src/main/webapp/mobile/app.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var util = namespace('org.apache.isis.viewer.json.jqmobile.util');
-var generic = namespace('org.apache.isis.viewer.json.jqmobile.generic');
-
-$(function() {
- $("#settings-theme input").click(function(e) {
-
- var theme = e.currentTarget.value;
- $("div[data-role='page']").each( function() {
- $(this).attr("data-theme", e);
- // TODO: how refresh?
- });
- });
-
- $(document).bind("pagebeforechange", generic.submitRenderAndNavigate);
-
- // if user manually refreshes page for domain object, then re-retrieve
- var locationHref = location.href;
- if(locationHref.indexOf("genericDomainObjectView") != -1) {
- var urlHref = generic.extract(locationHref);
- generic.submitAndRender(urlHref, "pop");
- } else {
- $.mobile.changePage($("#home"))
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js
----------------------------------------------------------------------
diff --git a/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js b/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js
deleted file mode 100644
index d428a3e..0000000
--- a/examples/onlinedemo/webapp/src/main/webapp/mobile/generic.js
+++ /dev/null
@@ -1,226 +0,0 @@
-var util = namespace('org.apache.isis.viewer.json.jqmobile.util');
-var generic = namespace('org.apache.isis.viewer.json.jqmobile.generic');
-
-generic.itemLinks = function(jsonItems) {
- var items = $.map(jsonItems, function(value, i) {
- return {
- "hrefUrlEncoded" : util.urlencode(value.href),
- "title" : value.title,
- "href" : value.href
- }
- })
- return items
-}
-
-generic.extract = function(urlHref) {
- // does it match: foobar.html?dataUrl=xxx; if so, then return xxx
- var matches = /.*?dataUrl=(.*)/.exec(urlHref)
- var url = matches && matches[1]
- if(url) {
- return util.urldecode(url)
- }
- // does it simply match foobar.html; if so, then return null
- if ( /.*\.html$/.test(urlHref)) {
- return null
- }
- // simply return the URL, assuming it is the data url we need to get.
- return urlHref
-}
-
-generic.returnTypeFor = function(memberItem) {
- var detailsJson = util.grepAndFollowLink(memberItem.links, "details")
- if (!detailsJson) {
- return null;
- }
- var describedByJson = util.grepAndFollowLink(detailsJson.links, "describedby")
- if (!describedByJson) {
- return null;
- }
- var returnTypeLink = util.grepLink(describedByJson.links, "returntype")
- return returnTypeLink? returnTypeLink.href : null;
-}
-
-generic.dataTypeFor = function(memberItem) {
- var returnType = generic.returnTypeFor(memberItem);
- if(returnType.endsWith("boolean")) return "boolean"
- return "string"
-}
-
-generic.pageAndOptions = function(page, view, dataUrl, transition) {
- var pageAndOptions = {
- "page": page,
- "options": {
- "dataUrl": "#" + view + "?dataUrl=" + util.urlencode(dataUrl),
- "allowSamePageTransition": true,
- "transition": transition
- }
- }
- return pageAndOptions
-}
-
-generic.handleDomainObjectRepresentation = function(urlHref, pageChangeData, json, xhr) {
-
- var page = $("#genericDomainObjectView");
- var header = page.children(":jqmData(role=header)");
- var content = page.children(":jqmData(role=content)");
-
- header.find("h1").html(json.title);
-
- // value properties
- var valueProperties = json.members.filter(function(item) {
- return item.memberType === "property" && !item.value.href;
- });
-
- valueProperties = $.map( valueProperties, function(value, i) {
- var dataType = generic.dataTypeFor(value)
- return {
- "id": value.id,
- "value": value.value,
- "dataTypeIsString": dataType === "string",
- "dataTypeIsBoolean": dataType === "boolean"
- }
- } );
-
- var valuePropertiesDiv = page.children(":jqmData(role=content)").find(".valueProperties");
- var valuePropertiesTemplateDiv = page.children(".valueProperties-tmpl");
- util.applyTemplateDiv(valueProperties, valuePropertiesDiv, valuePropertiesTemplateDiv);
-
-
- // reference properties
- var referenceProperties = json.members.filter(function(item) {
- return item.memberType === "property" && item.value.href;
- });
- var referencePropertiesList = page.children(":jqmData(role=content)").find(".referenceProperties");
- var referencePropertiesTemplateDiv = page.children(".referenceProperties-tmpl");
- util.applyTemplateDiv(referenceProperties, referencePropertiesList, referencePropertiesTemplateDiv);
-
- var collections = json.members.filter(function(item) {
- return item.memberType === "collection";
- }).map(function(value, i) {
- var href = util.grepLink(value.links, "details").href
- return {
- "hrefUrlEncoded" : util.urlencode(value.links[0].href),
- "id" : value.id,
- "href" : value.links[0].href
- }
- });
-
- // collections
- var collectionsList = page.children(":jqmData(role=content)").find(".collections");
- var collectionsTemplateDiv = page.children(".collections-tmpl");
- util.applyTemplateDiv(collections, collectionsList, collectionsTemplateDiv);
-
- page.page();
- content.find( ":jqmData(role=listview)" ).listview("refresh");
- page.trigger("create");
-
- return generic.pageAndOptions(page, "genericDomainObjectView", urlHref)
-}
-
-
-generic.handleListRepresentation = function(urlHref, pageChangeData, json, xhr) {
-
- var page = $("#genericListView");
- var header = page.children(":jqmData(role=header)");
- var content = page.children(":jqmData(role=content)");
-
- var items = generic.itemLinks(json.value)
-
- header.find("h1").html("Objects");
-
- var div = page.find("ul");
- var templateDiv = page.find(".tmpl");
-
- util.applyTemplateDiv(items, div, templateDiv);
-
- page.page();
- content.find( ":jqmData(role=listview)" ).listview("refresh");
- page.trigger("create");
-
- return generic.pageAndOptions(page, "genericListView", urlHref)
-}
-
-generic.handleObjectCollectionRepresentation = function(urlHref, pageChangeData, json, xhr) {
-
- var page = $("#genericObjectCollectionView");
- var header = page.children(":jqmData(role=header)");
- var content = page.children(":jqmData(role=content)");
-
- var items = generic.itemLinks(json.value)
-
- var parentTitle = util.grepLink(json.links, "up").title
-
- var collectionId = json.id;
- header.find("h1").html(collectionId + " for " + parentTitle);
-
- var div = page.find("ul");
- var templateDiv = page.find(".tmpl");
- util.applyTemplateDiv(items, div, templateDiv);
-
- page.page();
- content.find( ":jqmData(role=listview)" ).listview("refresh");
- page.trigger("create");
-
- return generic.pageAndOptions(page, "genericObjectCollectionView", urlHref, "slideup")
-}
-
-
-generic.actionResultHandlers = {
- "object": generic.handleDomainObjectRepresentation,
- "list": generic.handleListRepresentation
-}
-
-generic.handleActionResultRepresentation = function(urlHref, pageChangeData, json, xhr) {
- var resultType = json.resulttype
- var handler = generic.actionResultHandlers[resultType];
- if(!handler) {
- alert("unable to handle result type")
- return;
- }
- return handler(urlHref, pageChangeData, json.result, xhr)
-}
-
-generic.handlers = {
- "application/json;profile=\"urn:org.restfulobjects/domainobject\"": generic.handleDomainObjectRepresentation,
- "application/json; profile=\"urn:org.restfulobjects/domainobject\"": generic.handleDomainObjectRepresentation,
- "application/json;profile=\"urn:org.restfulobjects/list\"": generic.handleListRepresentation,
- "application/json; profile=\"urn:org.restfulobjects/list\"": generic.handleListRepresentation,
- "application/json;profile=\"urn:org.restfulobjects/objectcollection\"": generic.handleObjectCollectionRepresentation,
- "application/json; profile=\"urn:org.restfulobjects/objectcollection\"": generic.handleObjectCollectionRepresentation,
- "application/json;profile=\"urn:org.restfulobjects/actionresult\"": generic.handleActionResultRepresentation,
- "application/json; profile=\"urn:org.restfulobjects/actionresult\"": generic.handleActionResultRepresentation
-}
-
-generic.submitAndRender = function(urlHref, pageChangeData) {
- $.ajax({
- url : urlHref,
- dataType : 'json',
- success : function(json, str, xhr) {
- var contentType = xhr.getResponseHeader("Content-Type");
- var handler = generic.handlers[contentType];
- if(!handler) {
- alert("unable to handle response")
- return;
- }
- var pageAndOptions = handler(urlHref, pageChangeData, json, xhr)
-
- $.mobile.changePage(pageAndOptions.page, pageAndOptions.options);
- }
- })
-}
-
-generic.submitRenderAndNavigate = function(e, pageChangeData) {
- if (typeof pageChangeData.toPage !== "string") {
- return;
- }
-
- var url = $.mobile.path.parseUrl(pageChangeData.toPage)
- var urlHref = generic.extract(url.href)
- if(!urlHref) {
- return;
- }
-
- generic.submitAndRender(urlHref, pageChangeData);
- e.preventDefault();
-}
-
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html
----------------------------------------------------------------------
diff --git a/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html b/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html
deleted file mode 100644
index 2d57f4e..0000000
--- a/examples/onlinedemo/webapp/src/main/webapp/mobile/index.html
+++ /dev/null
@@ -1,191 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="initial-scale=1, width=device-width, target-densitydpi=device-dpi"/>
-
-<title>Apache Isis Online Demo</title>
-
-<link rel="stylesheet" href="../jquery.mobile/jquery.mobile-1.0.min.css" />
-
-<script src="../jquery/jquery-1.6.4.min.js"></script>
-<script src="../jquery.mobile/jquery.mobile-1.0.min.js"></script>
-<script src="../jquery.tmpl/jquery.tmpl-vBeta1.0.0.min.js"></script>
-
-<link rel="stylesheet" type="text/css" href="app.css" />
-
-<script type="text/javascript" src="namespace.js"></script>
-<script type="text/javascript" src="util.js"></script>
-<script type="text/javascript" src="generic.js"></script>
-<script type="text/javascript" src="app.js"></script>
-</head>
-
-<body id="pageHolder">
- <div data-role="page" id="home">
-
- <div data-role="header">
- <!--
- <a href="#settings" data-icon="gear" class="ui-btn-right" data-transition="slideup">Settings</a>
- -->
- <h1>Home</h1>
- </div>
-
- <div data-role="content">
- <br/>
- <button>Todays Tasks</button>
- <ul data-role="listview" class="tasks"></ul>
- </div>
-
- <script class="tmpl" type="text/x-jquery-tmpl">
- <li>
- <a href="${href}">${title}</a>
- </li>
- </script>
-
- <script type="text/javascript">
- $("#home button").click(function(){
- $.mobile.changePage("../services/toDoItems/actions/toDosForToday/invoke", "pop")
- });
- </script>
- </div>
-
- <div data-role="page" id="genericListView">
-
- <div data-role="header">
- <a data-icon="back" data-rel="back">Back</a>
- <h1>List</h1>
- </div>
-
- <div data-role="content">
- <br/>
- <ul data-filter="true" data-role="listview"></ul>
- </div>
-
- <script class="tmpl" type="text/x-jquery-tmpl">
- <li>
- <a href="${href}">${title}</a>
- </li>
- </script>
- </div>
-
- <div data-role="page" id="genericObjectCollectionView">
-
- <div data-role="header">
- <a data-icon="back" data-rel="back">Back</a>
- <h1>Collection</h1>
- </div>
-
- <div data-role="content">
- <br/>
- <ul data-filter="true" data-role="listview"></ul>
- </div>
-
- <script class="tmpl" type="text/x-jquery-tmpl">
- <li>
- <a href="${href}">${title}</a>
- </li>
- </script>
- </div>
-
- <div data-role="page" id="genericDomainObjectView">
-
- <div data-role="header">
- <a data-icon="back" data-rel="back">Back</a>
- <h1>Object</h1>
- </div>
-
- <div data-role="content">
- <div class="valueProperties"></div>
- <br/>
- <p>References</p>
- <ul data-role="listview" data-inset="true" class="referenceProperties"></ul>
- <br/>
- <p>Collections</p>
- <ul data-role="listview" data-inset="true" class="collections"></ul>
- </div>
-
- <script class="valueProperties-tmpl" type="text/x-jquery-tmpl">
- {{if dataTypeIsString}}
- <label for="${id}">${id}:</label>
- <input type="text"
- name="${id}" id="${id}" value="${value}" placeholder="${id}"
- class="required"/>
- {{/if}}
- {{if dataTypeIsBoolean}}
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>${id}?</legend>
- <input type="checkbox"
- name="${id}" id="${id}" value="${value}"
- class="required"/>
- <label for="${id}">${id}</label>
- </fieldset>
- </div>
- {{/if}}
- </script>
-
- <script class="referenceProperties-tmpl" type="text/x-jquery-tmpl">
- <li>
- <a data-transition="slide" href="${value.href}">
- <p>${id}</p>
- <p><b>${value.title}</b></p>
- </a>
- </li>
- </script>
-
- <script class="collections-tmpl" type="text/x-jquery-tmpl">
- <li>
- <a data-transition="slideup" href="${href}">${id}</a>
- </li>
- </script>
-
- </div>
-
- <div data-role="page" id="settings" data-add-back-btn="true">
-
- <div data-role="header">
- <h1>Settings</h1>
- </div>
-
- <div data-role="content">
-
- <fieldset id="settings-theme">
- <legend>Theme:</legend>
- <input type="radio" name="settings-theme" id="settings-theme-a" value="a" checked="checked" />
- <label for="settings-theme-a">Dark</label>
-
- <input type="radio" name="settings-theme" id="settings-theme-b" value="b"/>
- <label for="settings-theme-b">Blue</label>
-
- <input type="radio" name="settings-theme" id="settings-theme-c" value="c"/>
- <label for="settings-theme-c">Grey</label>
-
- <input type="radio" name="settings-theme" id="settings-theme-d" value="d"/>
- <label for="settings-theme-d">White</label>
-
- <input type="radio" name="settings-theme" id="settings-theme-e" value="e"/>
- <label for="settings-theme-e">Yellow</label>
- </fieldset>
-
- </div>
-
- <script type="text/javascript">
- $("#settings input").change(function(e){
- var theme = $(this).attr("value");
- $("div").filter( function() {
- var divDataRole = $(this).attr("data-role")
- var isPage = (divDataRole === "page");
- return isPage;
- }).attr("data-theme", theme);
- });
- </script>
-
- <div data-role="footer">
- <h4></h4>
- </div>
- </div>
-
-
-</body>
-</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js
----------------------------------------------------------------------
diff --git a/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js b/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js
deleted file mode 100644
index 7da5ff2..0000000
--- a/examples/onlinedemo/webapp/src/main/webapp/mobile/namespace.js
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace = function(namespaceString) {
- var parts = namespaceString.split('.'),
- parent = window,
- currentPart = '';
-
- for(var i = 0, length = parts.length; i < length; i++) {
- currentPart = parts[i];
- parent[currentPart] = parent[currentPart] || {};
- parent = parent[currentPart];
- }
-
- return parent;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/onlinedemo/webapp/src/main/webapp/mobile/util.js
----------------------------------------------------------------------
diff --git a/examples/onlinedemo/webapp/src/main/webapp/mobile/util.js b/examples/onlinedemo/webapp/src/main/webapp/mobile/util.js
deleted file mode 100644
index fe17a03..0000000
--- a/examples/onlinedemo/webapp/src/main/webapp/mobile/util.js
+++ /dev/null
@@ -1,94 +0,0 @@
-String.prototype.endsWith = function(pattern) {
- var d = this.length - pattern.length;
- return d >= 0 && this.lastIndexOf(pattern) === d;
-};
-
-
-var util = namespace('org.apache.isis.viewer.json.jqmobile.util');
-
-util.findPage = function(selector) {
- var page = $("#pageHolder").find(selector);
- if(page[0]) {
- return page[0];
- }
- return null
-}
-
-util.removePage = function(id) {
- var page = util.findPage(id)
- if(page) {
- page.remove();
- }
-}
-
-util.cloneAndInsertPage = function(sourceId, targetId) {
- var page = $("#"+sourceId).clone().attr("id", targetId);
- page.appendTo("#pageHolder");
- return page
-}
-
-util.grepLink = function(links, relStr) {
- return $.grep(links, function(v) { return v.rel === relStr } )[0]
-}
-
-util.followLink = function(link) {
- var response = {};
- $.ajax({
- url : link.href,
- dataType : 'json',
- async: false,
- success : function(json, str, xhr) {
- response = {
- "json": json,
- "str": str,
- "xhr": xhr
- }
- }
- })
- return response;
-}
-
-util.grepAndFollowLink = function(links, rel) {
- var link = util.grepLink(links, rel)
- if (!link) { return null; }
- var response = util.followLink(link);
- if (!response) { return null; }
- return response.json;
-}
-
-util.queryParamsFor = function (href) {
- var vars = [], hash;
- var hashes = href.slice(href.indexOf('?') + 1).split('&');
- for(var i = 0; i < hashes.length; i++)
- {
- hash = hashes[i].split('=');
- vars.push(hash[0]);
- vars[hash[0]] = urldecode(hash[1]);
- }
- return vars;
-}
-
-// from http://phpjs.org/functions/urlencode:573
-util.urlencode = function(str) {
- str = (str + '').toString();
- return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
-}
-
-// from http://phpjs.org/functions/urldecode:572
-util.urldecode = function(str) {
- return decodeURIComponent((str + '').replace(/\+/g, '%20'));
-}
-
-util.applyTemplate = function(data, selector, templateSelector) {
- $(selector).empty();
- $(templateSelector)
- .tmpl(data)
- .appendTo(selector);
-}
-
-util.applyTemplateDiv = function(data, div, templateDiv) {
- div.empty();
- templateDiv
- .tmpl(data)
- .appendTo(div);
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
deleted file mode 100644
index 7aff0dc..0000000
--- a/examples/pom.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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.
--->
-<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>
-
- <groupId>org.apache.isis</groupId>
- <artifactId>examples</artifactId>
- <version>0.3.1-SNAPSHOT</version>
-
- <name>Isis Examples</name>
-
- <packaging>pom</packaging>
-
- <!-- ???REVIEW: is the intent to formally release these as Maven modules??? -->
- <!--
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-9</version>
- <configuration>
- <remoteTagging>true</remoteTagging>
- <preparationGoals>clean verify</preparationGoals>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- <tagBase>https://apache.isis.svn/svnroot/tags/distribution</tagBase>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
- -->
-
- <modules>
- <module>quickstart</module>
- <module>quickstart_dnd_junit_bdd</module>
- <module>quickstart_wicket_restful_jdo</module>
- <module>claims</module>
- <module>onlinedemo</module>
- <module>metamodel-examples/namefile</module>
- </modules>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/log4j.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/log4j.properties b/examples/quickstart/dom/log4j.properties
deleted file mode 100644
index 281bfb6..0000000
--- a/examples/quickstart/dom/log4j.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# LOG4J Configuration
-# ===================
-
-# Basic logging goes to "datanucleus.log"
-log4j.appender.A1=org.apache.log4j.FileAppender
-log4j.appender.A1.File=datanucleus.log
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
-log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t) %-5p [%c] - %m%n
-#log4j.appender.A1.Threshold=INFO
-
-# Categories
-# Each category can be set to a "level", and to direct to an appender
-
-# Default to DEBUG level for all DataNucleus categories
-log4j.logger.DataNucleus = DEBUG, A1
-
-log4j.category.com.mchange.v2.c3p0=INFO, A1
-log4j.category.com.mchange.v2.resourcepool=INFO, A1
-log4j.category.org.logicalcobwebs.proxool=INFO,A1
-
-
-# Hbase libs logging
-log4j.category.org.apache.hadoop=INFO,A1
-log4j.category.org.apache.zookeeper=INFO,A1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/pom.xml
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/pom.xml b/examples/quickstart/dom/pom.xml
deleted file mode 100644
index 32c6a65..0000000
--- a/examples/quickstart/dom/pom.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?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.
--->
-<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.apache.isis.examples</groupId>
- <artifactId>quickstart</artifactId>
- <version>0.3.1-SNAPSHOT</version>
- </parent>
-
- <artifactId>quickstart-dom</artifactId>
- <name>Quickstart DOM</name>
-
-
- <dependencies>
- <dependency>
- <groupId>org.apache.isis</groupId>
- <artifactId>applib</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/src/main/java/dom/todo/ToDoItem.java
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/src/main/java/dom/todo/ToDoItem.java b/examples/quickstart/dom/src/main/java/dom/todo/ToDoItem.java
deleted file mode 100644
index ff84a97..0000000
--- a/examples/quickstart/dom/src/main/java/dom/todo/ToDoItem.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * 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 dom.todo;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.isis.applib.DomainObjectContainer;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberGroups;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.MultiLine;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Resolve;
-import org.apache.isis.applib.annotation.Resolve.Type;
-import org.apache.isis.applib.annotation.Title;
-import org.apache.isis.applib.annotation.Where;
-import org.joda.time.LocalDate;
-
-@ObjectType("TODO")
-@MemberGroups({"General", "Detail"})
-public class ToDoItem {
-
- public static enum Category {
- Professional, Domestic, Other;
- }
-
- // {{ Description
- private String description;
-
- @Title
- @MemberOrder(sequence = "1")
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
- // }}
-
- // {{ Category
- private Category category;
-
- @MemberOrder(sequence = "2")
- public Category getCategory() {
- return category;
- }
-
- public void setCategory(final Category category) {
- this.category = category;
- }
- // }}
-
- // {{ DueBy (property)
- private LocalDate dueBy;
-
- @MemberOrder(name="Detail", sequence = "3")
- @Optional
- public LocalDate getDueBy() {
- return dueBy;
- }
-
- public void setDueBy(final LocalDate dueBy) {
- this.dueBy = dueBy;
- }
- // }}
-
- // {{ Done
- private boolean done;
-
- @Disabled
- @MemberOrder(sequence = "4")
- public boolean getDone() {
- return done;
- }
-
- public void setDone(final boolean done) {
- this.done = done;
- }
- // }}
-
- // {{ Notes (property)
- private String notes;
-
- @Hidden(where=Where.ALL_TABLES)
- @Optional
- @MultiLine(numberOfLines=5)
- @MemberOrder(name="Detail", sequence = "6")
- public String getNotes() {
- return notes;
- }
-
- public void setNotes(final String notes) {
- this.notes = notes;
- }
- // }}
-
- // {{ OwnedBy (property, hidden)
- private String ownedBy;
-
- @Hidden
- public String getOwnedBy() {
- return ownedBy;
- }
-
- public void setOwnedBy(final String ownedBy) {
- this.ownedBy = ownedBy;
- }
- // }}
-
- // {{ markAsDone (action)
- @MemberOrder(sequence = "1")
- public ToDoItem markAsDone() {
- setDone(true);
- return this;
- }
-
- public String disableMarkAsDone() {
- return done ? "Already done" : null;
- }
- // }}
-
- // {{ markAsNotDone (action)
- @MemberOrder(sequence = "2")
- public ToDoItem markAsNotDone() {
- setDone(false);
- return this;
- }
-
- public String disableMarkAsNotDone() {
- return !done ? "Not yet done" : null;
- }
- // }}
-
- // {{ dependencies (Collection)
- private List<ToDoItem> dependencies = new ArrayList<ToDoItem>();
-
- @Disabled
- @MemberOrder(sequence = "1")
- @Resolve(Type.EAGERLY)
- public List<ToDoItem> getDependencies() {
- return dependencies;
- }
-
- public void setDependencies(final List<ToDoItem> dependencies) {
- this.dependencies = dependencies;
- }
- // }}
-
- // {{ add (action)
- @MemberOrder(name="dependencies", sequence = "3")
- public ToDoItem add(final ToDoItem toDoItem) {
- getDependencies().add(toDoItem);
- return this;
- }
- public String validateAdd(final ToDoItem toDoItem) {
- if(getDependencies().contains(toDoItem)) {
- return "Already a dependency";
- }
- if(toDoItem == this) {
- return "Can't set up a dependency to self";
- }
- return null;
- }
- // }}
-
- // {{ remove (action)
- @MemberOrder(name="dependencies", sequence = "4")
- public ToDoItem remove(final ToDoItem toDoItem) {
- getDependencies().remove(toDoItem);
- return this;
- }
- public String disableRemove() {
- return getDependencies().isEmpty()? "No dependencies to remove": null;
- }
- public String validateRemove(final ToDoItem toDoItem) {
- if(!getDependencies().contains(toDoItem)) {
- return "Not a dependency";
- }
- return null;
- }
- public List<ToDoItem> choices0Remove() {
- return getDependencies();
- }
- // }}
-
- // {{ injected: DomainObjectContainer
- @SuppressWarnings("unused")
- private DomainObjectContainer container;
-
- public void setDomainObjectContainer(final DomainObjectContainer container) {
- this.container = container;
- }
- // }}
-
- // {{ injected: ToDoItems
- @SuppressWarnings("unused")
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/src/main/java/dom/todo/ToDoItems.java
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/src/main/java/dom/todo/ToDoItems.java b/examples/quickstart/dom/src/main/java/dom/todo/ToDoItems.java
deleted file mode 100644
index 6d4c12d..0000000
--- a/examples/quickstart/dom/src/main/java/dom/todo/ToDoItems.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * 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 dom.todo;
-
-import java.util.List;
-
-import com.google.common.base.Objects;
-
-import dom.todo.ToDoItem.Category;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.NotInServiceMenu;
-import org.apache.isis.applib.filter.Filter;
-
-@Named("ToDos")
-public class ToDoItems extends AbstractFactoryAndRepository {
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "toDoItems";
- }
-
- public String iconName() {
- return "ToDoItem";
- }
- // }}
-
- // {{ notYetDone (action)
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public List<ToDoItem> notYetDone() {
- return allMatches(ToDoItem.class, new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem t) {
- return ownedByCurrentUser(t) && !t.getDone();
- }
- });
- }
- // }}
-
- // {{ done (action)
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "2")
- public List<ToDoItem> done() {
- return allMatches(ToDoItem.class, new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem t) {
- return ownedByCurrentUser(t) && t.getDone();
- }
- });
- }
- // }}
-
- // {{ newToDo (action)
- @MemberOrder(sequence = "2")
- public ToDoItem newToDo(
- @Named("Description") String description,
- @Named("Category") Category category) {
- final String ownedBy = getContainer().getUser().getName();
- return newToDo(description, category, ownedBy);
- }
- // }}
-
- // {{ newToDo (hidden)
- @Hidden // for use by fixtures
- public ToDoItem newToDo(
- String description,
- Category category,
- String ownedBy) {
- final ToDoItem toDoItem = newTransientInstance(ToDoItem.class);
- toDoItem.setDescription(description);
- toDoItem.setCategory(category);
- toDoItem.setOwnedBy(ownedBy);
- persist(toDoItem);
- return toDoItem;
- }
- // }}
-
- // {{ similarTo (action)
- @NotInServiceMenu
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "3")
- public List<ToDoItem> similarTo(final ToDoItem toDoItem) {
- return allMatches(ToDoItem.class, new Filter<ToDoItem>() {
- @Override
- public boolean accept(ToDoItem t) {
- return t != toDoItem && Objects.equal(toDoItem.getCategory(), t.getCategory()) && Objects.equal(toDoItem.getOwnedBy(), t.getOwnedBy());
- }
- });
- }
- // }}
-
- // {{ autoComplete (hidden)
- @Hidden
- @MemberOrder(sequence = "1")
- public List<ToDoItem> autoComplete(final String description) {
- return allMatches(ToDoItem.class, new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem t) {
- return ownedByCurrentUser(t) && t.getDescription().contains(description);
- }
-
- });
- }
- // }}
-
- // {{ helpers
- protected boolean ownedByCurrentUser(final ToDoItem t) {
- return Objects.equal(t.getOwnedBy(), currentUserName());
- }
- protected String currentUserName() {
- return getContainer().getUser().getName();
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/src/main/resources/images/AuditEntry.png
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/src/main/resources/images/AuditEntry.png b/examples/quickstart/dom/src/main/resources/images/AuditEntry.png
deleted file mode 100644
index 950d792..0000000
Binary files a/examples/quickstart/dom/src/main/resources/images/AuditEntry.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/dom/src/main/resources/images/ToDoItem.gif
----------------------------------------------------------------------
diff --git a/examples/quickstart/dom/src/main/resources/images/ToDoItem.gif b/examples/quickstart/dom/src/main/resources/images/ToDoItem.gif
deleted file mode 100644
index cc536e1..0000000
Binary files a/examples/quickstart/dom/src/main/resources/images/ToDoItem.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/fixture/pom.xml
----------------------------------------------------------------------
diff --git a/examples/quickstart/fixture/pom.xml b/examples/quickstart/fixture/pom.xml
deleted file mode 100644
index 9992c6f..0000000
--- a/examples/quickstart/fixture/pom.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?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.
--->
-<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.apache.isis.examples</groupId>
- <artifactId>quickstart</artifactId>
- <version>0.3.1-SNAPSHOT</version>
- </parent>
-
- <artifactId>quickstart-fixture</artifactId>
- <name>Quickstart Fixtures</name>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-dom</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/fixture/src/main/java/fixture/LogonAsSvenFixture.java
----------------------------------------------------------------------
diff --git a/examples/quickstart/fixture/src/main/java/fixture/LogonAsSvenFixture.java b/examples/quickstart/fixture/src/main/java/fixture/LogonAsSvenFixture.java
deleted file mode 100644
index 5bdc6fe..0000000
--- a/examples/quickstart/fixture/src/main/java/fixture/LogonAsSvenFixture.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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 fixture;
-
-import org.apache.isis.applib.fixtures.LogonFixture;
-
-public class LogonAsSvenFixture extends LogonFixture {
-
- public LogonAsSvenFixture() {
- super("sven");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixture.java
----------------------------------------------------------------------
diff --git a/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixture.java b/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixture.java
deleted file mode 100644
index b0c7b61..0000000
--- a/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixture.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * 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 fixture.todo;
-
-import dom.todo.ToDoItem;
-import dom.todo.ToDoItem.Category;
-import dom.todo.ToDoItems;
-
-import org.apache.isis.applib.fixtures.AbstractFixture;
-
-public class ToDoItemsFixture extends AbstractFixture {
-
- @Override
- public void install() {
- createFiveFor("sven");
- createThreeFor("dick");
- createTwoFor("bob");
- createOneFor("joe");
-
- // for exploration user
- createFiveFor("exploration");
- }
-
- private void createFiveFor(String ownedBy) {
- createToDoItem("Buy milk", Category.Domestic, ownedBy);
- createToDoItem("Pick up laundry", Category.Domestic, ownedBy);
- createToDoItem("Buy stamps", Category.Domestic, ownedBy);
- createToDoItem("Write blog post", Category.Professional, ownedBy);
- createToDoItem("Organize brown bag", Category.Professional, ownedBy);
- }
-
- private void createThreeFor(String ownedBy) {
- createToDoItem("Book car in for service", Category.Domestic, ownedBy);
- createToDoItem("Buy birthday present for sven", Category.Domestic, ownedBy);
- createToDoItem("Write presentation for conference", Category.Professional, ownedBy);
- }
-
- private void createTwoFor(String ownedBy) {
- createToDoItem("Write thank you notes", Category.Domestic, ownedBy);
- createToDoItem("Look into solar panels", Category.Domestic, ownedBy);
- }
-
- private void createOneFor(String ownedBy) {
- createToDoItem("Pitch book idea to publisher", Category.Professional, ownedBy);
- }
-
- private ToDoItem createToDoItem(final String description, Category category, String ownedBy) {
- return toDoItems.newToDo(description, category, ownedBy);
- }
-
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixturesService.java
----------------------------------------------------------------------
diff --git a/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixturesService.java b/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixturesService.java
deleted file mode 100644
index ddb1203..0000000
--- a/examples/quickstart/fixture/src/main/java/fixture/todo/ToDoItemsFixturesService.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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 fixture.todo;
-
-import dom.todo.ToDoItems;
-
-import org.apache.isis.applib.AbstractService;
-import org.apache.isis.applib.annotation.Named;
-
-/**
- * Enables fixtures to be installed from the application.
- */
-@Named("Fixtures")
-public class ToDoItemsFixturesService extends AbstractService {
-
- public void install() {
- final ToDoItemsFixture fixture = new ToDoItemsFixture();
- fixture.setContainer(getContainer());
- fixture.setToDoItems(toDoItems);
- fixture.install();
- }
-
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/pom.xml
----------------------------------------------------------------------
diff --git a/examples/quickstart/pom.xml b/examples/quickstart/pom.xml
deleted file mode 100644
index fad4350..0000000
--- a/examples/quickstart/pom.xml
+++ /dev/null
@@ -1,485 +0,0 @@
-<?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.
--->
-<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>
-
- <groupId>org.apache.isis.examples</groupId>
- <artifactId>quickstart</artifactId>
- <version>0.3.1-SNAPSHOT</version>
-
- <name>Quickstart App</name>
-
- <packaging>pom</packaging>
-
- <properties>
- <isis.version>0.3.1-SNAPSHOT</isis.version>
- </properties>
-
- <repositories>
- <repository>
- <id>apache.snapshots</id>
- <name>Apache Snapshots</name>
- <url>https://repository.apache.org/content/repositories/snapshots/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
-
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.1</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- <executions>
- <execution>
- <id>source</id>
- <phase>compile</phase>
- </execution>
- <execution>
- <id>test</id>
- <phase>test-compile</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <excludes>
- <exclude>**/Test*.java</exclude>
- </excludes>
- <useFile>true</useFile>
- <printSummary>false</printSummary>
- <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <excludes>
- <exclude>**/Test*.java</exclude>
- </excludes>
- <showSuccess>false</showSuccess>
- </configuration>
- <executions>
- <execution>
- <phase>test</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.25</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>1.4</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.6</version>
- <executions>
- <execution>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- http://simplericity.com/2009/11/10/1257880778509.html -->
- <plugin>
- <groupId>org.simplericity.jettyconsole</groupId>
- <artifactId>jetty-console-maven-plugin</artifactId>
- <version>1.43</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
- <modules>
- <module>dom</module>
- <module>fixture</module>
- <module>viewer-dnd</module>
- <module>viewer-html</module>
- <module>viewer-scimpi</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
-
- <!-- this project's own modules -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-dom</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-fixture</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-objstore-jdo</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-webapp</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-tests-bdd</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>tests-junit</artifactId>
- <version>${project.version}</version>
- </dependency>
-
-
- <!-- isis: applib -->
- <dependency>
- <groupId>org.apache.isis</groupId>
- <artifactId>applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis</groupId>
- <artifactId>applib</artifactId>
- <classifier>javadoc</classifier>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: core -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-metamodel</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: progmodel: wrapper -->
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>wrapper</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>wrapper-applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>wrapper-metamodel</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: progmodel: groovy -->
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>groovy</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>groovy-applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.progmodels</groupId>
- <artifactId>groovy-metamodel</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: security: dflt -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>dflt</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: security: ldap -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>ldap</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: security: file -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>file</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes: dflt -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt</groupId>
- <artifactId>runtime</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt</groupId>
- <artifactId>isis-webserver</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.bytecode</groupId>
- <artifactId>dflt</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.bytecode</groupId>
- <artifactId>javassist</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
-
- <!-- isis: runtimes-dflt: objectstores: dflt -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>dflt</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstores: jdo -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>jdo</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>jdo-applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>jdo-datanucleus</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstores: mongodb and fileserver -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>nosql</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstore: sql -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>sql-impl</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstores: xml -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>xml</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
-
- <!-- isis: runtimes-dflt: profilestores: dflt -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.profilestores</groupId>
- <artifactId>dflt</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: profilestores: xml -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.profilestores</groupId>
- <artifactId>xml</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
-
- <!-- isis: viewer: dnd -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>dnd</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: viewer: html -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>html</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: viewer: restfulobjects -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>restfulobjects</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>restfulobjects-applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>restfulobjects-viewer</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: viewer: junit -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>junit</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <!-- isis: viewer: bdd -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>bdd</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>bdd-common</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>bdd-concordion</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.2</version>
- </dependency>
-
-
- <!-- isis: viewer: scimpi -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>scimpi</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>scimpi-dispatcher</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>scimpi-servlet</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
-
- <!-- isis: viewer: wicket -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket-applib</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket-facets</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket-model</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket-ui</artifactId>
- <version>${isis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>wicket-viewer</artifactId>
- <version>${isis.version}</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <profiles>
- <profile>
- <id>m2e</id>
- <activation>
- <property>
- <name>m2e.version</name>
- </property>
- </activation>
- <build>
- <directory>target-ide</directory>
- </build>
- </profile>
- </profiles>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/config/isis.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/config/isis.properties b/examples/quickstart/viewer-dnd/config/isis.properties
deleted file mode 100644
index 5520af8..0000000
--- a/examples/quickstart/viewer-dnd/config/isis.properties
+++ /dev/null
@@ -1,116 +0,0 @@
-# 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.
-
-
-#################################################################################
-#
-# specify system components.
-#
-# The values correspond to the named components in the installer-registry.properties file
-# in the org.apache.isis.runtimes.dflt:runtime JAR (in the org.apache.isis.runtimes.dflt.runtime package)
-#
-# Although all configuration could reside in isis.properties, the recommendation is
-# to split out into component specific files:
-#
-# xxx_yyy.properties files
-#
-# where
-# * xxx is the component type, and
-# * yyy is the component name.
-#
-# For example, persistor_sql.properties holds configuration information specific to the
-#
-#
-# If the components are changed, also remember to edit pom.xml (further comments can be
-# found in the persistor_xxx.properties files)
-#
-#################################################################################
-
-#
-# configure the persistor (object store) to use
-#
-# * in-memory requires no additional configuration, but stores object in-memory.
-# Only suitable for prototyping
-#
-# other persistor implementations are not appropriate for the DnD viewer
-#
-
-isis.persistor=in-memory
-#isis.persistor=xml
-
-
-
-
-#################################################################################
-#
-# MetaModel
-#
-# The metamodel typically does not require additional configuration, although
-# the system components (defined above) may refine the metamodel for their needs.
-#
-#################################################################################
-
-
-#
-# additional programming model facets
-#
-
-#isis.reflector.facets.include=
-#isis.reflector.facets.exclude=
-
-
-#
-# metamodel validator
-#
-
-#isis.reflector.validator=
-
-
-
-#################################################################################
-#
-# Application Services and fixtures
-#
-#################################################################################
-
-#
-# Specify the domain services.
-#
-# These are the most important configuration properties in the system, as they define
-# the set of the classes for Isis to instantiate as domain service singletons.
-# From these domain service instances the rest of the metamodel is discovered, while the
-# end-user gains access to other domain objects by invoking the actions of the domain services.
-#
-# The implementations depend on the configured (see isis.persistor above)
-#
-
-# if using the in-memory object store
-isis.services.prefix = dom
-isis.services = todo.ToDoItems
-
-
-
-
-#
-# Specify the (optional) test fixtures
-#
-# Fixtures are used to seed the object store with an initial set of data. For the
-# in-memory object store, the fixtures are installed on every run.
-#
-isis.fixtures.prefix= fixture
-isis.fixtures= todo.ToDoItemsFixture
-
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/config/logging.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/config/logging.properties b/examples/quickstart/viewer-dnd/config/logging.properties
deleted file mode 100644
index 5210379..0000000
--- a/examples/quickstart/viewer-dnd/config/logging.properties
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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.
-
-
-#
-# Isis uses log4j is used to provide system logging
-#
-log4j.rootCategory=INFO, Console
-
-# The console appender
-log4j.appender.Console=org.apache.log4j.ConsoleAppender
-log4j.appender.Console.target=System.out
-log4j.appender.Console.layout=org.apache.log4j.PatternLayout
-log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} [%-20c{1} %-10t %-5p] %m%n
-
-log4j.appender.File=org.apache.log4j.RollingFileAppender
-log4j.appender.File.file=isis.log
-log4j.appender.File.append=false
-log4j.appender.File.layout=org.apache.log4j.PatternLayout
-log4j.appender.File.layout.ConversionPattern=%d [%-20c{1} %-10t %-5p] %m%n
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/config/persistor_in-memory.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/config/persistor_in-memory.properties b/examples/quickstart/viewer-dnd/config/persistor_in-memory.properties
deleted file mode 100644
index f35b5bc..0000000
--- a/examples/quickstart/viewer-dnd/config/persistor_in-memory.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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.
-
-#
-# configuration file for the In-memory objectstore
-#
-
-
-#
-# (intentionally empty)
-#
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/config/persistor_xml.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/config/persistor_xml.properties b/examples/quickstart/viewer-dnd/config/persistor_xml.properties
deleted file mode 100644
index d5e0466..0000000
--- a/examples/quickstart/viewer-dnd/config/persistor_xml.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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.
-
-#
-# configuration file for the XML objectstore
-#
-
-isis.xmlos.dir=/tmp/isis-quickstart/persistor-xml/data
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/config/viewer_dnd.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/config/viewer_dnd.properties b/examples/quickstart/viewer-dnd/config/viewer_dnd.properties
deleted file mode 100644
index 80de8f1..0000000
--- a/examples/quickstart/viewer-dnd/config/viewer_dnd.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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.
-
-#
-# configuration file for the DnD viewer
-#
-
-# (intentionally empty)
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/ide/eclipse/launch/quickstart-viewer-dnd.launch
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/ide/eclipse/launch/quickstart-viewer-dnd.launch b/examples/quickstart/viewer-dnd/ide/eclipse/launch/quickstart-viewer-dnd.launch
deleted file mode 100644
index e43bcd2..0000000
--- a/examples/quickstart/viewer-dnd/ide/eclipse/launch/quickstart-viewer-dnd.launch
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.apache.isis.runtimes.dflt.runtime/src/main/java/org/apache/isis/Isis.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
-<mapEntry key="[debug]" value="org.eclipse.jdt.launching.localJavaApplication"/>
-<mapEntry key="[run]" value="org.eclipse.jdt.launching.localJavaApplication"/>
-</mapAttribute>
-<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
-<booleanAttribute key="org.eclipse.jdt.debug.ui.INCLUDE_EXTERNAL_JARS" value="true"/>
-<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.isis.Isis"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="--type exploration --viewer dnd"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="quickstart-viewer-dnd"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
-</launchConfiguration>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-dnd/pom.xml
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-dnd/pom.xml b/examples/quickstart/viewer-dnd/pom.xml
deleted file mode 100644
index 4376e0e..0000000
--- a/examples/quickstart/viewer-dnd/pom.xml
+++ /dev/null
@@ -1,163 +0,0 @@
-<?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.
--->
-<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.apache.isis.examples</groupId>
- <artifactId>quickstart</artifactId>
- <version>0.3.1-SNAPSHOT</version>
- </parent>
-
- <artifactId>quickstart-viewer-dnd</artifactId>
- <name>Quickstart Viewer DnD</name>
-
- <description>This module runs Isis' DnD viewer, intended for exploration, prototyping and
- design. By default the viewer is configured to run with the in-memory object store,
- meaning that changes will not be persisted from one run to the next; initial seed data
- is read in from the isis.fixtures key in the isis.properties config file. Alternatively,
- the viewer may be configured to run with the XML object store, which persists changes to set of
- XML files.</description>
-
- <!--
- can run the dnd using either:
- mvn antrun:run
- or
- mvn test -P dnd
- -->
-
- <properties>
- <siteBaseDir>..</siteBaseDir>
- </properties>
-
- <build>
- <plugins>
- <!-- mvn package -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <transformers>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>org.apache.isis.Isis</mainClass>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <configuration>
- <tasks>
- <exec executable="java" failonerror="true">
- <arg value="-jar"/>
- <arg value="${project.build.directory}/${project.build.finalName}.jar"/>
- <arg value="-type"/>
- <arg value="exploration"/>
- <arg value="-viewer"/>
- <arg value="dnd"/>
- </exec>
- </tasks>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <!-- other modules in this project -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>quickstart-fixture</artifactId>
- </dependency>
-
- <!-- isis core -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-metamodel</artifactId>
- </dependency>
-
- <!-- isis default runtime -->
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt</groupId>
- <artifactId>runtime</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.bytecode</groupId>
- <artifactId>dflt</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>dflt</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.objectstores</groupId>
- <artifactId>xml</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.runtimes.dflt.profilestores</groupId>
- <artifactId>dflt</artifactId>
- </dependency>
-
- <!-- isis defaults (other) -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>dflt</artifactId>
- </dependency>
-
- <!-- isis viewers -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>dnd</artifactId>
- </dependency>
-
- </dependencies>
-
- <profiles>
- <profile>
- <id>dnd</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-html/hsql-db/tests.lck
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-html/hsql-db/tests.lck b/examples/quickstart/viewer-html/hsql-db/tests.lck
deleted file mode 100644
index 5cd2e57..0000000
Binary files a/examples/quickstart/viewer-html/hsql-db/tests.lck and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-html/hsql-db/tests.log
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-html/hsql-db/tests.log b/examples/quickstart/viewer-html/hsql-db/tests.log
deleted file mode 100644
index 7b4d229..0000000
--- a/examples/quickstart/viewer-html/hsql-db/tests.log
+++ /dev/null
@@ -1,2 +0,0 @@
-/*C3*/SET SCHEMA PUBLIC
-create table ISIS_ADMIN_SERVICES (PK_ID int, ID varchar(255))
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-html/hsql-db/tests.properties
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-html/hsql-db/tests.properties b/examples/quickstart/viewer-html/hsql-db/tests.properties
deleted file mode 100644
index e17168d..0000000
--- a/examples/quickstart/viewer-html/hsql-db/tests.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-#HSQL Database Engine 2.2.8
-#Wed Oct 10 18:15:49 BST 2012
-version=2.2.8
-modified=yes
http://git-wip-us.apache.org/repos/asf/isis/blob/0861ed93/examples/quickstart/viewer-html/hsql-db/tests.script
----------------------------------------------------------------------
diff --git a/examples/quickstart/viewer-html/hsql-db/tests.script b/examples/quickstart/viewer-html/hsql-db/tests.script
deleted file mode 100644
index 13c8dd0..0000000
--- a/examples/quickstart/viewer-html/hsql-db/tests.script
+++ /dev/null
@@ -1,46 +0,0 @@
-SET DATABASE UNIQUE NAME HSQLDB3A4BACD59D
-SET DATABASE GC 0
-SET DATABASE DEFAULT RESULT MEMORY ROWS 0
-SET DATABASE EVENT LOG LEVEL 0
-SET DATABASE SQL NAMES FALSE
-SET DATABASE SQL REFERENCES FALSE
-SET DATABASE SQL SIZE TRUE
-SET DATABASE SQL TYPES FALSE
-SET DATABASE SQL TDC DELETE TRUE
-SET DATABASE SQL TDC UPDATE TRUE
-SET DATABASE SQL TRANSLATE TTI TYPES TRUE
-SET DATABASE SQL CONCAT NULLS TRUE
-SET DATABASE SQL NULLS FIRST TRUE
-SET DATABASE SQL UNIQUE NULLS TRUE
-SET DATABASE SQL CONVERT TRUNCATE TRUE
-SET DATABASE SQL AVG SCALE 0
-SET DATABASE SQL DOUBLE NAN TRUE
-SET DATABASE SQL LONGVAR IS LOB FALSE
-SET DATABASE TRANSACTION CONTROL LOCKS
-SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED
-SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE
-SET DATABASE TEXT TABLE DEFAULTS ''
-SET FILES WRITE DELAY 500 MILLIS
-SET FILES BACKUP INCREMENT TRUE
-SET FILES CACHE SIZE 10000
-SET FILES CACHE ROWS 50000
-SET FILES SCALE 8
-SET FILES LOB SCALE 32
-SET FILES DEFRAG 0
-SET FILES NIO TRUE
-SET FILES NIO SIZE 256
-SET FILES LOG TRUE
-SET FILES LOG SIZE 50
-CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e'
-ALTER USER SA SET LOCAL TRUE
-CREATE SCHEMA PUBLIC AUTHORIZATION DBA
-ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1
-SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC
-GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC
-GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC
-GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC
-GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC
-GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC
-GRANT DBA TO SA
-SET SCHEMA SYSTEM_LOBS
-INSERT INTO BLOCKS VALUES(0,2147483647,0)