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 2013/10/08 08:47:06 UTC
[12/12] git commit: ISIS-555: new simple archetype;
mothballing non-maintained examples
ISIS-555: new simple archetype; mothballing non-maintained examples
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/3df42bf4
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/3df42bf4
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/3df42bf4
Branch: refs/heads/master
Commit: 3df42bf4534db8daa4ebf7b131482f54beb72ff2
Parents: b9a7de7
Author: Dan Haywood <da...@apache.org>
Authored: Tue Oct 8 07:46:30 2013 +0100
Committer: Dan Haywood <da...@apache.org>
Committed: Tue Oct 8 07:46:30 2013 +0100
----------------------------------------------------------------------
example/application/claims/dom/log4j.properties | 39 -
example/application/claims/dom/pom.xml | 167 ----
.../application/claims/dom/claim/Approver.java | 24 -
.../application/claims/dom/claim/Claim.java | 323 ------
.../application/claims/dom/claim/ClaimItem.java | 77 --
.../claims/dom/claim/ClaimRepository.java | 133 ---
.../application/claims/dom/claim/Claimant.java | 28 -
.../claims/dom/employee/Employee.java | 98 --
.../claims/dom/employee/EmployeeRepository.java | 61 --
.../claims/dom/employee/EmployeeTakeOn.java | 150 ---
.../dom/src/main/resources/images/Claim.gif | Bin 576 -> 0 bytes
.../dom/src/main/resources/images/ClaimItem.gif | Bin 1076 -> 0 bytes
.../main/resources/images/ClaimRepository.gif | Bin 794 -> 0 bytes
.../dom/src/main/resources/images/Employee.gif | Bin 1019 -> 0 bytes
.../resources/images/EmployeeRepository.gif | Bin 1475 -> 0 bytes
.../dom/src/main/resources/images/FredSmith.jpg | Bin 6397 -> 0 bytes
.../dom/src/main/resources/images/SamJones.jpg | Bin 6010 -> 0 bytes
.../dom/src/main/resources/images/TomBrown.jpg | Bin 5856 -> 0 bytes
example/application/claims/fixture/pom.xml | 39 -
.../claims/fixture/ClaimsFixture.java | 82 --
.../claims/fixture/ClaimsLogonFixture.java | 30 -
example/application/claims/pom.xml | 248 -----
example/application/claims/viewer-bdd/pom.xml | 107 --
.../src/main/resources/isis.properties | 43 -
.../claims/AbstractApplicationStory.java | 34 -
.../common/BootstrapInExplorationMode.java | 25 -
.../claims/common/BootstrapInPrototypeMode.java | 25 -
.../application/claims/common/Employees.java | 25 -
.../application/claims/stories/AllStories.java | 25 -
.../claims/stories/newClaim/Fixture.java | 25 -
.../claims/stories/newClaim/Index.java | 25 -
.../stories/newClaim/ScenarioDefaultsOk.java | 25 -
.../ScenarioOnceCreatedShowsUpForClaimant.java | 25 -
.../src/test/resources/dtd/xhtml-lat1.ent | 196 ----
.../src/test/resources/dtd/xhtml-special.ent | 80 --
.../src/test/resources/dtd/xhtml-symbol.ent | 237 -----
.../src/test/resources/dtd/xhtml1-strict.dtd | 980 -------------------
.../common/BootstrapInExplorationMode.html | 61 --
.../claims/common/BootstrapInPrototypeMode.html | 61 --
.../application/claims/common/Employees.html | 56 --
.../example/application/claims/concordion.css | 102 --
.../application/claims/stories/AllStories.html | 37 -
.../claims/stories/newClaim/Fixtures.html | 55 --
.../claims/stories/newClaim/Index.html | 43 -
.../stories/newClaim/ScenarioDefaultsOk.html | 302 ------
.../ScenarioOnceCreatedShowsUpForClaimant.html | 355 -------
.../ide/eclipse/launch/claims-viewer-dnd.launch | 21 -
example/application/claims/viewer-dnd/pom.xml | 129 ---
.../src/main/resources/isis.properties | 24 -
.../src/main/resources/viewer_html.properties | 19 -
.../isis/example/claims/junit/AbstractTest.java | 115 ---
.../example/claims/junit/ClaimSubmitTest.java | 61 --
.../isis/example/claims/junit/NewClaimTest.java | 44 -
.../eclipse/launch/claims-viewer-scimpi.launch | 19 -
.../application/claims/viewer-scimpi/pom.xml | 107 --
.../src/main/resources/images/Default.png | Bin 3016 -> 0 bytes
.../src/main/webapp/WEB-INF/isis.properties | 25 -
.../src/main/webapp/WEB-INF/logging.properties | 38 -
.../src/main/webapp/WEB-INF/security_file.allow | 16 -
.../main/webapp/WEB-INF/security_file.passwords | 20 -
.../src/main/webapp/WEB-INF/web.xml | 50 -
.../viewer-scimpi/src/main/webapp/debug.shtml | 23 -
.../src/main/webapp/generic/action.shtml | 27 -
.../src/main/webapp/generic/collection.shtml | 26 -
.../src/main/webapp/generic/edit.shtml | 26 -
.../src/main/webapp/generic/object.shtml | 28 -
.../src/main/webapp/images/Claim.png | Bin 2708 -> 0 bytes
.../src/main/webapp/images/ClaimItem.png | Bin 2316 -> 0 bytes
.../src/main/webapp/images/Employee.png | Bin 1986 -> 0 bytes
.../src/main/webapp/images/banner-bg.png | Bin 384 -> 0 bytes
.../src/main/webapp/images/banner.png | Bin 18951 -> 0 bytes
.../src/main/webapp/images/logo.png | Bin 7183 -> 0 bytes
.../viewer-scimpi/src/main/webapp/index.shtml | 24 -
.../viewer-scimpi/src/main/webapp/login.shtml | 23 -
.../src/main/webapp/style/screen.css | 394 --------
.../src/main/webapp/style/template.shtml | 57 --
.../x-webapp-archived/Claim/edit-selector.shtml | 29 -
.../x-webapp-archived/Claim/object-link.shtml | 32 -
.../x-webapp-archived/Claim/object-orig.shtml | 31 -
.../main/x-webapp-archived/Claim/object.shtml | 34 -
.../main/x-webapp-archived/Claim/object2.shtml | 31 -
.../x-webapp-archived/Employee/object.shtml | 62 --
.../x-webapp-archived/EmployeeTakeOn/edit.shtml | 38 -
.../application/claims/viewer-wicket/.gitignore | 1 -
.../eclipse/launch/claims-viewer-wicket.launch | 20 -
.../application/claims/viewer-wicket/pom.xml | 119 ---
.../src/main/resources/images/Default.png | Bin 3016 -> 0 bytes
.../WEB-INF/authentication_file.passwords | 20 -
.../src/main/webapp/WEB-INF/isis.properties | 34 -
.../src/main/webapp/WEB-INF/logging.properties | 38 -
.../src/main/webapp/WEB-INF/security_file.allow | 16 -
.../src/main/webapp/WEB-INF/web.properties | 24 -
.../src/main/webapp/WEB-INF/web.xml | 178 ----
.../viewer-wicket/src/main/webapp/default.css | 938 ------------------
.../src/main/webapp/images/banner-bg.png | Bin 936 -> 0 bytes
.../src/main/webapp/images/banner.png | Bin 18951 -> 0 bytes
.../quickstart_wicket_restful_jdo/dom/pom.xml | 17 +
.../dom/src/main/java/dom/todo/ToDoItem.java | 77 +-
.../java/fixture/todo/ToDoItemsFixture.java | 2 +-
.../java/integration/ToDoSystemInitializer.java | 2 +
.../src/main/resources/webapp/welcome.html | 22 +-
.../src/main/webapp/WEB-INF/isis.properties | 36 +-
.../src/main/webapp/WEB-INF/logging.properties | 21 +
.../main/webapp/WEB-INF/persistor.properties | 99 ++
.../WEB-INF/persistor_datanucleus.properties | 94 +-
.../webapp/src/main/webapp/about/index.html | 55 +-
.../dom/log4j.properties | 41 +
.../simple_wicket_restful_jdo/dom/pom.xml | 158 +++
.../dom/src/main/java/META-INF/persistence.xml | 26 +
.../src/main/java/dom/simple/SimpleObject.java | 78 ++
.../java/dom/simple/SimpleObject.layout.json | 44 +
.../src/main/java/dom/simple/SimpleObjects.java | 71 ++
.../src/main/java/services/ClockService.java | 33 +
.../src/main/resources/images/SimpleObject.gif | Bin 0 -> 794 bytes
.../java/dom/simple/SimpleObjectTest_name.java | 47 +
.../dom/simple/SimpleObjectsTest_create.java | 76 ++
.../dom/simple/SimpleObjectsTest_listAll.java | 76 ++
.../fixture/.gitignore | 1 +
.../simple_wicket_restful_jdo/fixture/pom.xml | 39 +
.../main/java/fixture/LogonAsSvenFixture.java | 30 +
.../fixture/simple/SimpleObjectsFixture.java | 71 ++
.../integtests/logging.properties | 77 ++
.../integtests/pom.xml | 158 +++
.../integration/SimpleAppSystemInitializer.java | 81 ++
.../integration/glue/BootstrappingGlue.java | 53 +
.../integration/glue/CatalogOfFixturesGlue.java | 46 +
.../glue/InMemoryDBForSimpleApp.java | 40 +
.../glue/simple/SimpleObjectGlue.java | 98 ++
.../java/integration/specs/simple/RunSpecs.java | 38 +
.../SimpleObjectSpec_listAllAndCreate.feature | 37 +
.../integration/tests/SimpleAppIntegTest.java | 40 +
.../SimpleObjectsTest_listAll_and_create.java | 69 ++
.../simple_wicket_restful_jdo/pom.xml | 395 ++++++++
.../SimpleApp-no-fixtures-PROTOTYPE.launch | 24 +
.../launch/SimpleApp-no-fixtures-SERVER.launch | 20 +
.../launch/SimpleApp-with-fixtures.launch | 24 +
.../webapp/lib/.gitignore | 5 +
.../simple_wicket_restful_jdo/webapp/pom.xml | 305 ++++++
.../ComponentFactoryRegistrarForSimpleApp.java | 33 +
.../src/main/java/webapp/SimpleApplication.java | 142 +++
.../webapp/prototyping/DeveloperUtilities.java | 42 +
.../SimpleObjectsFixturesService.java | 63 ++
.../src/main/jettyconsole/isis-banner.pdn | Bin 0 -> 69658 bytes
.../src/main/jettyconsole/isis-banner.png | Bin 0 -> 30776 bytes
.../src/main/resources/webapp/welcome.html | 35 +
.../WEB-INF/authentication_file.passwords | 28 +
.../WEB-INF/authentication_file.properties | 25 +
.../webapp/WEB-INF/authorization_file.allow | 28 +
.../WEB-INF/authorization_file.properties | 47 +
.../src/main/webapp/WEB-INF/isis.properties | 193 ++++
.../src/main/webapp/WEB-INF/logging.properties | 166 ++++
.../main/webapp/WEB-INF/persistor.properties | 99 ++
.../WEB-INF/persistor_datanucleus.properties | 75 ++
.../webapp/src/main/webapp/WEB-INF/shiro.ini | 93 ++
.../WEB-INF/viewer_restfulobjects.properties | 23 +
.../webapp/WEB-INF/viewer_wicket.properties | 49 +
.../webapp/src/main/webapp/WEB-INF/web.xml | 284 ++++++
.../src/main/webapp/about/images/isis-logo.png | Bin 0 -> 14160 bytes
.../webapp/src/main/webapp/about/index.html | 117 +++
.../webapp/src/main/webapp/css/application.css | 72 ++
.../src/main/webapp/images/spinning-icon.gif | Bin 0 -> 5266 bytes
.../src/main/webapp/scripts/application.js | 3 +
example/domain-service/email-service/pom.xml | 75 --
.../example/domainservice/email/Address.java | 54 -
.../isis/example/domainservice/email/Email.java | 82 --
.../domainservice/email/EmailException.java | 43 -
.../domainservice/email/EmailService.java | 96 --
.../domainservice/email/EmailTemplate.java | 87 --
.../application/claims/dom/log4j.properties | 39 +
.../example/application/claims/dom/pom.xml | 167 ++++
.../application/claims/dom/claim/Approver.java | 24 +
.../application/claims/dom/claim/Claim.java | 323 ++++++
.../application/claims/dom/claim/ClaimItem.java | 77 ++
.../claims/dom/claim/ClaimRepository.java | 133 +++
.../application/claims/dom/claim/Claimant.java | 28 +
.../claims/dom/employee/Employee.java | 98 ++
.../claims/dom/employee/EmployeeRepository.java | 61 ++
.../claims/dom/employee/EmployeeTakeOn.java | 150 +++
.../dom/src/main/resources/images/Claim.gif | Bin 0 -> 576 bytes
.../dom/src/main/resources/images/ClaimItem.gif | Bin 0 -> 1076 bytes
.../main/resources/images/ClaimRepository.gif | Bin 0 -> 794 bytes
.../dom/src/main/resources/images/Employee.gif | Bin 0 -> 1019 bytes
.../resources/images/EmployeeRepository.gif | Bin 0 -> 1475 bytes
.../dom/src/main/resources/images/FredSmith.jpg | Bin 0 -> 6397 bytes
.../dom/src/main/resources/images/SamJones.jpg | Bin 0 -> 6010 bytes
.../dom/src/main/resources/images/TomBrown.jpg | Bin 0 -> 5856 bytes
.../example/application/claims/fixture/pom.xml | 39 +
.../claims/fixture/ClaimsFixture.java | 82 ++
.../claims/fixture/ClaimsLogonFixture.java | 30 +
mothballed/example/application/claims/pom.xml | 248 +++++
.../application/claims/viewer-bdd/pom.xml | 107 ++
.../src/main/resources/isis.properties | 43 +
.../claims/AbstractApplicationStory.java | 34 +
.../common/BootstrapInExplorationMode.java | 25 +
.../claims/common/BootstrapInPrototypeMode.java | 25 +
.../application/claims/common/Employees.java | 25 +
.../application/claims/stories/AllStories.java | 25 +
.../claims/stories/newClaim/Fixture.java | 25 +
.../claims/stories/newClaim/Index.java | 25 +
.../stories/newClaim/ScenarioDefaultsOk.java | 25 +
.../ScenarioOnceCreatedShowsUpForClaimant.java | 25 +
.../src/test/resources/dtd/xhtml-lat1.ent | 196 ++++
.../src/test/resources/dtd/xhtml-special.ent | 80 ++
.../src/test/resources/dtd/xhtml-symbol.ent | 237 +++++
.../src/test/resources/dtd/xhtml1-strict.dtd | 980 +++++++++++++++++++
.../common/BootstrapInExplorationMode.html | 61 ++
.../claims/common/BootstrapInPrototypeMode.html | 61 ++
.../application/claims/common/Employees.html | 56 ++
.../example/application/claims/concordion.css | 102 ++
.../application/claims/stories/AllStories.html | 37 +
.../claims/stories/newClaim/Fixtures.html | 55 ++
.../claims/stories/newClaim/Index.html | 43 +
.../stories/newClaim/ScenarioDefaultsOk.html | 302 ++++++
.../ScenarioOnceCreatedShowsUpForClaimant.html | 355 +++++++
.../ide/eclipse/launch/claims-viewer-dnd.launch | 19 +
.../application/claims/viewer-dnd/pom.xml | 129 +++
.../src/main/resources/isis.properties | 24 +
.../src/main/resources/viewer_html.properties | 19 +
.../isis/example/claims/junit/AbstractTest.java | 115 +++
.../example/claims/junit/ClaimSubmitTest.java | 61 ++
.../isis/example/claims/junit/NewClaimTest.java | 44 +
.../eclipse/launch/claims-viewer-scimpi.launch | 19 +
.../application/claims/viewer-scimpi/pom.xml | 107 ++
.../src/main/resources/images/Default.png | Bin 0 -> 3016 bytes
.../src/main/webapp/WEB-INF/isis.properties | 25 +
.../src/main/webapp/WEB-INF/logging.properties | 38 +
.../src/main/webapp/WEB-INF/security_file.allow | 16 +
.../main/webapp/WEB-INF/security_file.passwords | 20 +
.../src/main/webapp/WEB-INF/web.xml | 50 +
.../viewer-scimpi/src/main/webapp/debug.shtml | 23 +
.../src/main/webapp/generic/action.shtml | 27 +
.../src/main/webapp/generic/collection.shtml | 26 +
.../src/main/webapp/generic/edit.shtml | 26 +
.../src/main/webapp/generic/object.shtml | 28 +
.../src/main/webapp/images/Claim.png | Bin 0 -> 2708 bytes
.../src/main/webapp/images/ClaimItem.png | Bin 0 -> 2316 bytes
.../src/main/webapp/images/Employee.png | Bin 0 -> 1986 bytes
.../src/main/webapp/images/banner-bg.png | Bin 0 -> 384 bytes
.../src/main/webapp/images/banner.png | Bin 0 -> 18951 bytes
.../src/main/webapp/images/logo.png | Bin 0 -> 7183 bytes
.../viewer-scimpi/src/main/webapp/index.shtml | 24 +
.../viewer-scimpi/src/main/webapp/login.shtml | 23 +
.../src/main/webapp/style/screen.css | 394 ++++++++
.../src/main/webapp/style/template.shtml | 57 ++
.../x-webapp-archived/Claim/edit-selector.shtml | 29 +
.../x-webapp-archived/Claim/object-link.shtml | 32 +
.../x-webapp-archived/Claim/object-orig.shtml | 31 +
.../main/x-webapp-archived/Claim/object.shtml | 34 +
.../main/x-webapp-archived/Claim/object2.shtml | 31 +
.../x-webapp-archived/Employee/object.shtml | 62 ++
.../x-webapp-archived/EmployeeTakeOn/edit.shtml | 38 +
.../application/claims/viewer-wicket/.gitignore | 1 +
.../eclipse/launch/claims-viewer-wicket.launch | 20 +
.../application/claims/viewer-wicket/pom.xml | 119 +++
.../src/main/resources/images/Default.png | Bin 0 -> 3016 bytes
.../WEB-INF/authentication_file.passwords | 20 +
.../src/main/webapp/WEB-INF/isis.properties | 34 +
.../src/main/webapp/WEB-INF/logging.properties | 38 +
.../src/main/webapp/WEB-INF/security_file.allow | 16 +
.../src/main/webapp/WEB-INF/web.properties | 24 +
.../src/main/webapp/WEB-INF/web.xml | 178 ++++
.../viewer-wicket/src/main/webapp/default.css | 938 ++++++++++++++++++
.../src/main/webapp/images/banner-bg.png | Bin 0 -> 936 bytes
.../src/main/webapp/images/banner.png | Bin 0 -> 18951 bytes
.../domain-service/email-service/pom.xml | 75 ++
.../example/domainservice/email/Address.java | 54 +
.../isis/example/domainservice/email/Email.java | 82 ++
.../domainservice/email/EmailException.java | 43 +
.../domainservice/email/EmailService.java | 96 ++
.../domainservice/email/EmailTemplate.java | 87 ++
pom.xml | 16 +-
271 files changed, 12031 insertions(+), 8018 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/log4j.properties
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/log4j.properties b/example/application/claims/dom/log4j.properties
deleted file mode 100644
index b36337f..0000000
--- a/example/application/claims/dom/log4j.properties
+++ /dev/null
@@ -1,39 +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.
-# apache's log4j is used to provide system logging.
-log4j.rootCategory=DEBUG, File
-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.maxFileSize=500KB
-#log4j.appender.File.maxBackupIndex=1
-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/3df42bf4/example/application/claims/dom/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/pom.xml b/example/application/claims/dom/pom.xml
deleted file mode 100644
index adde9da..0000000
--- a/example/application/claims/dom/pom.xml
+++ /dev/null
@@ -1,167 +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.example.application</groupId>
- <artifactId>claims</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>claims-dom</artifactId>
- <name>Example Claims App DOM</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-maven-plugin</artifactId>
- <version>3.2.0-release</version>
- <dependencies>
- <dependency>
- <!-- Force the enhancer to use the same version of core that's already
- on the classpath -->
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-core</artifactId>
- <version>${datanucleus-core.version}</version>
- </dependency>
- <dependency>
- <!-- Force the enhancer to use the "jdo-api" released "3.0.1" version instead
- of the "3.0.1-SNAPSHOT" version -->
- <groupId>javax.jdo</groupId>
- <artifactId>jdo-api</artifactId>
- <version>3.0.1</version>
- </dependency>
- </dependencies>
- <configuration>
- <fork>false</fork>
- <log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
- <verbose>true</verbose>
- <props>${basedir}/datanucleus.properties</props>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>enhance</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.datanucleus
- </groupId>
- <artifactId>
- datanucleus-maven-plugin
- </artifactId>
- <versionRange>
- [3.2.0-release,)
- </versionRange>
- <goals>
- <goal>enhance</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
-
- <dependencyManagement>
- <dependencies>
- <!-- for DataNucleus, see below -->
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-jdo</artifactId>
- <version>1.2.0-SNAPSHOT</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-applib</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-jdo-applib</artifactId>
- </dependency>
-
- <!-- DataNucleus (horrid, but needed to run the enhancer)-->
- <dependency>
- <groupId>javax.jdo</groupId>
- <artifactId>jdo-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-api-jdo</artifactId>
- </dependency>
-
- </dependencies>
-
- <profiles>
- <profile>
- <id>not-m2e</id>
- <activation>
- <property>
- <name>!m2e.version</name>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-core</artifactId>
- <version>(3.1.99, 3.2.99)</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Approver.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Approver.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Approver.java
deleted file mode 100644
index a479da1..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Approver.java
+++ /dev/null
@@ -1,24 +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 org.apache.isis.example.application.claims.dom.claim;
-
-public interface Approver {
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claim.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claim.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claim.java
deleted file mode 100644
index c4f9df4..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claim.java
+++ /dev/null
@@ -1,323 +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 org.apache.isis.example.application.claims.dom.claim;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MaxLength;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.MustSatisfy;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.spec.Specification;
-import org.apache.isis.applib.util.Reasons;
-import org.apache.isis.applib.value.Date;
-import org.apache.isis.applib.value.Money;
-
-/**
- * @author danhaywood
- */
-public class Claim extends AbstractDomainObject /* implements Calendarable */{
-
- // {{ Title
- public String title() {
- return getStatus() + " - " + getDate();
- }
-
- // }}
-
- // {{ Lifecycle
- public void created() {
- status = "New";
- date = new Date(); // applib date uses the Clock
- }
-
- // }}
-
- // {{ Rush
- private boolean rush;
-
- @Hidden
- @MemberOrder(sequence = "1.2")
- public boolean getRush() {
- return rush;
- }
-
- public void setRush(final boolean flag) {
- this.rush = flag;
- }
-
- // }}
-
- // {{ Description
- private String description;
-
- @MemberOrder(sequence = "1")
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
-
- public String defaultDescription() {
- return "enter a description here";
- }
-
- public String validateDescription(final String description) {
- if (description == null) {
- return null;
- }
- if (description.contains("foobar")) {
- return "can't contain foobar!";
- }
- return null;
- }
-
- // }}
-
- // {{ Date
- private Date date;
-
- @MemberOrder(sequence = "2")
- public Date getDate() {
- return date;
- }
-
- public void setDate(final Date date) {
- this.date = date;
- }
-
- // }}
-
- // {{ Status
- /**
- * @uml.property name="status"
- */
- private String status;
-
- /**
- * @return
- * @uml.property name="status"
- */
- @Disabled
- @MemberOrder(sequence = "3")
- @MaxLength(5)
- public String getStatus() {
- return status;
- }
-
- /**
- * @param status
- * @uml.property name="status"
- */
- public void setStatus(final String status) {
- this.status = status;
- }
-
- // }}
-
- // {{ changeStatus
- @MemberOrder(sequence = "1")
- public void changeStatus(@MustSatisfy(ClaimStatus.ChoicesSpecification.class) final String status) {
- setStatus(status);
- }
-
- public List<String> choices0ChangeStatus() {
- return ClaimStatus.ALL;
- }
-
- private String ifAlreadySubmitted() {
- return ClaimStatus.SUBMITTED.equals(getStatus()) ? "Already submitted" : null;
- }
-
- // }}
-
- // {{ Claimant
- /**
- * @uml.property name="claimant"
- * @uml.associationEnd
- */
- private Claimant claimant;
-
- /**
- * @return
- * @uml.property name="claimant"
- */
- @Disabled
- @MemberOrder(sequence = "4")
- public Claimant getClaimant() {
- return claimant;
- }
-
- /**
- * @param claimant
- * @uml.property name="claimant"
- */
- public void setClaimant(final Claimant claimant) {
- this.claimant = claimant;
- }
-
- // }}
-
- // {{ Approver
- private Approver approver;
-
- // @Disabled
- @MemberOrder(sequence = "5")
- @Optional
- public Approver getApprover() {
- return approver;
- }
-
- public void setApprover(final Approver approver) {
- this.approver = approver;
- }
-
- public String disableApprover() {
- return getDescription().contains("baz") ? "desc contains baz" : null;
- }
-
- public String validateApprover(final Approver approver) {
- if (approver == null) {
- return null;
- }
- return approver == getClaimant() ? "Can't approve own claims" : null;
- }
-
- // }}
-
- // {{ Items
- private final List<ClaimItem> items = new ArrayList<ClaimItem>();
-
- @MemberOrder(sequence = "6")
- public List<ClaimItem> getItems() {
- return items;
- }
-
- public void addToItems(final ClaimItem item) {
- items.add(item);
- }
-
- public void removeFromItems(final ClaimItem item) {
- items.remove(item);
- }
-
- // }}
-
- // {{ action: Submit
- public void submit(final Approver approver) {
- setStatus(ClaimStatus.SUBMITTED);
- setApprover(approver);
- }
-
- public String disableSubmit(final Approver approver) {
- return !ClaimStatus.SUBMITTED.equals(getStatus()) ? null : "Claim has already been submitted";
- }
-
- public Approver default0Submit() {
- return getClaimant().getDefaultApprover();
- }
-
- // }}
-
- // {{ action: addItem
- @MemberOrder(sequence = "1")
- public void addItem(@Named("Days since") final int days, @Named("Amount") final double amount, @Named("Description") final String description) {
- final ClaimItem claimItem = newTransientInstance(ClaimItem.class);
- Date date = new Date();
- date = date.add(0, 0, days);
- claimItem.setDateIncurred(date);
- claimItem.setDescription(description);
- claimItem.setAmount(new Money(amount, "USD"));
- persist(claimItem);
- addToItems(claimItem);
- }
-
- public String disableAddItem(final int days, final double amount, final String description) {
- return Reasons.coalesce(ifAlreadySubmitted());
- }
-
- // }}
-
- // {{ removeItem
- @MemberOrder(sequence = "2")
- public void removeItem(final ClaimItem claimItem) {
- removeFromItems(claimItem);
- }
-
- public String disableRemoveItem(final ClaimItem claimItem) {
- return Reasons.coalesce(ifAlreadySubmitted());
- }
-
- public ClaimItem default0RemoveItem() {
- if (getItems().size() > 0) {
- return getItems().get(getItems().size() - 1);
- } else {
- return null;
- }
- }
-
- public List<ClaimItem> choices0RemoveItem() {
- return Collections.unmodifiableList(getItems());
- }
-
- // }}
-
- public String validate() {
- if (ClaimStatus.INCOMPLETE.equals(getStatus())) {
- return "incomplete";
- }
- if (getDescription().contains("foobaz")) {
- return "no 'foobaz' allowed in description!";
- }
- return null;
- }
-
- public static class ClaimStatus {
-
- private static final String NEW = "New";
- private static final String INCOMPLETE = "Incomplete";
- private static final String SUBMITTED = "Submitted";
-
- public static final List<String> ALL = Collections.unmodifiableList(Arrays.asList(NEW, INCOMPLETE, SUBMITTED));
-
- public static class ChoicesSpecification implements Specification {
-
- @Override
- public String satisfies(final Object obj) {
- for (final String str : ALL) {
- if (str.equals(obj)) {
- return null;
- }
- }
- return "Must be one of " + ALL;
- }
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimItem.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimItem.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimItem.java
deleted file mode 100644
index 0422040..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimItem.java
+++ /dev/null
@@ -1,77 +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 org.apache.isis.example.application.claims.dom.claim;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.value.Date;
-import org.apache.isis.applib.value.Money;
-
-public class ClaimItem extends AbstractDomainObject {
-
- // {{ Title
- public String title() {
- return getDescription();
- }
-
- // }}
-
- // {{ DateIncurred
- private Date dateIncurred;
-
- @MemberOrder(sequence = "1")
- public Date getDateIncurred() {
- return dateIncurred;
- }
-
- public void setDateIncurred(final Date dateIncurred) {
- this.dateIncurred = dateIncurred;
- }
-
- // }}
-
- // {{ Description
- private String description;
-
- @MemberOrder(sequence = "2")
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
-
- // }}
-
- // {{ Amount
- private Money amount;
-
- @MemberOrder(sequence = "3")
- public Money getAmount() {
- return amount;
- }
-
- public void setAmount(final Money price) {
- this.amount = price;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimRepository.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimRepository.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimRepository.java
deleted file mode 100644
index 3132d57..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/ClaimRepository.java
+++ /dev/null
@@ -1,133 +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 org.apache.isis.example.application.claims.dom.claim;
-
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.NotContributed;
-import org.apache.isis.applib.annotation.NotInServiceMenu;
-import org.apache.isis.applib.filter.Filter;
-import org.apache.isis.applib.value.Date;
-
-@Named("Claims")
-public class ClaimRepository extends AbstractFactoryAndRepository {
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "claims";
- }
-
- public String iconName() {
- return "ClaimRepository";
- }
-
- // }}
-
- // {{ action: allClaims
- public List<Claim> allClaims() {
- return allInstances(Claim.class);
- }
-
- // }}
-
- // {{ action: findClaims
- public List<Claim> findClaims(@Named("Description") String description) {
- return allMatches(Claim.class, description);
- }
-
- // }}
-
- // {{ action: claimsFor
- public List<Claim> claimsFor(final Claimant claimant) {
- final Claim pattern = newTransientInstance(Claim.class);
- pattern.setDescription(null);
- pattern.setApprover(null);
- pattern.setStatus(null);
- pattern.setDate(null);
- pattern.setClaimant(claimant);
- return allMatches(Claim.class, pattern);
- }
-
- // }}
-
- // {{ action: newClaim
- public Claim newClaim(final Claimant claimant) {
- final Claim claim = newTransientInstance(Claim.class);
- if (claimant != null) {
- claim.setClaimant(claimant);
- claim.setApprover(claimant.getDefaultApprover());
- }
- return claim;
- }
-
- // }}
-
- // {{ action: newClaimWithDescription
- @Named("New Claim")
- public Claim newClaimWithDescription(Claimant claimant, String description) {
- final Claim claim = newClaim(claimant);
- claim.setDescription(description);
- return claim;
- }
-
- // }}
-
- // {{ action: claimsSince
- @NotInServiceMenu
- public List<Claim> claimsSince(final Claimant claimant, final Date since) {
- return allMatches(Claim.class, new Filter<Claim>() {
-
- @Override
- public boolean accept(final Claim pojo) {
- return pojo.getClaimant() == claimant && pojo.getDate() != null && pojo.getDate().isGreaterThan(since);
- }
- });
- }
-
- public String validateClaimsSince(final Claimant claimant, final Date since) {
- final Date today = new Date();
- return since.isGreaterThan(today) ? "cannot be after today" : null;
- }
-
- // }}
-
- @NotContributed
- int countClaimsFor(Claimant claimant) {
- return claimsFor(claimant).size();
- }
-
- @NotContributed
- Claim mostRecentClaim(Claimant claimant) {
- final List<Claim> claims = claimsFor(claimant);
- Collections.sort(claims, new Comparator<Claim>() {
- @Override
- public int compare(final Claim o1, final Claim o2) {
- return o1.getDate().isLessThan(o2.getDate()) ? +1 : -1;
- }
- });
- return claims.size() > 0 ? claims.get(0) : null;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claimant.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claimant.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claimant.java
deleted file mode 100644
index 2d82053..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/claim/Claimant.java
+++ /dev/null
@@ -1,28 +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 org.apache.isis.example.application.claims.dom.claim;
-
-public interface Claimant {
-
- Approver getDefaultApprover();
-
- String title();
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/Employee.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/Employee.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/Employee.java
deleted file mode 100644
index 2ecba9d..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/Employee.java
+++ /dev/null
@@ -1,98 +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 org.apache.isis.example.application.claims.dom.employee;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.example.application.claims.dom.claim.Approver;
-import org.apache.isis.example.application.claims.dom.claim.Claimant;
-
-public class Employee extends AbstractDomainObject implements Claimant, Approver {
-
- // {{ Title
- @Override
- public String title() {
- return getName();
- }
-
- // }}
-
- // {{ Icon
- public String iconName() {
- return getName().replaceAll(" ", "");
- }
-
- // }}
-
- // {{ Name
- private String name;
-
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String lastName) {
- this.name = lastName;
- }
-
- // }}
-
- // {{ Approver
- private Approver defaultApprover;
-
- @Override
- @MemberOrder(sequence = "2")
- public Approver getDefaultApprover() {
- return defaultApprover;
- }
-
- public void setDefaultApprover(final Approver approver) {
- this.defaultApprover = approver;
- }
-
- public String validateDefaultApprover(final Approver approver) {
- if (approver == null) {
- return null;
- }
- if (approver == this) {
- return "Cannot act as own approver";
- }
- return null;
- }
-
- // }}
-
- // {{ Limit
- private Integer limit;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Integer getLimit() {
- return limit;
- }
-
- public void setLimit(final Integer limit) {
- this.limit = limit;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeRepository.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeRepository.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeRepository.java
deleted file mode 100644
index 739d621..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeRepository.java
+++ /dev/null
@@ -1,61 +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 org.apache.isis.example.application.claims.dom.employee;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.Named;
-
-@Named("Employees")
-public class EmployeeRepository extends AbstractFactoryAndRepository {
-
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "claimants";
- }
-
- public String iconName() {
- return "EmployeeRepository";
- }
- // }}
-
- // {{ action: allEmployees
- public List<Employee> allEmployees() {
- return allInstances(Employee.class);
- }
-
- // }}
-
- // {{ action: findEmployees
- public List<Employee> findEmployees(@Named("Name") String name) {
- return allMatches(Employee.class, name);
- }
- // }}
-
- // {{ action: newEmployee
- public EmployeeTakeOn newEmployee() {
- return newTransientInstance(EmployeeTakeOn.class);
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeTakeOn.java
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeTakeOn.java b/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeTakeOn.java
deleted file mode 100644
index 2feccfb..0000000
--- a/example/application/claims/dom/src/main/java/org/apache/isis/example/application/claims/dom/employee/EmployeeTakeOn.java
+++ /dev/null
@@ -1,150 +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 org.apache.isis.example.application.claims.dom.employee;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.example.application.claims.dom.claim.Approver;
-
-public class EmployeeTakeOn extends AbstractDomainObject {
-
- // {{ Lifecycle methods
- public void created() {
- state = "page1";
- }
-
- // }}
-
- // {{ Name
- private String name;
-
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- public boolean hideName() {
- return !state.equals("page1") && isNotLast();
- }
-
- public String disableName() {
- return disableToConfirmIfLast();
- }
-
- // }}
-
- // {{ Approver
- private Approver approver;
-
- @MemberOrder(sequence = "2")
- @Optional
- public Approver getApprover() {
- return approver;
- }
-
- public void setApprover(final Approver approver) {
- this.approver = approver;
- }
-
- public boolean hideApprover() {
- return !state.equals("page2") && isNotLast();
- }
-
- public String disableApprover() {
- return disableToConfirmIfLast();
- }
-
- // }}
-
- // {{ next
- @MemberOrder(sequence = "1")
- public EmployeeTakeOn next() {
- if (state.equals("page1")) {
- state = "page2";
- } else if (state.equals("page2")) {
- state = "page3";
- }
- return this;
- }
-
- public boolean hideNext() {
- return isLast();
- }
-
- // }}
-
- // {{ finish
- @MemberOrder(sequence = "2")
- public Employee finish() {
- final Employee employee = newTransientInstance(Employee.class);
- employee.setName(getName());
- employee.setDefaultApprover(approver);
- persist(employee);
- return employee;
- }
-
- public boolean hideFinish() {
- return isNotLast();
- }
-
- // }}
-
- // {{ State
- private String state;
-
- @MemberOrder(sequence = "1")
- @Hidden
- public String getState() {
- return state;
- }
-
- public void setState(final String state) {
- this.state = state;
- }
-
- // }}
-
- // {{ NotLast
- @MemberOrder(sequence = "1")
- @Hidden
- public boolean isNotLast() {
- return !isLast();
- }
-
- // }}
-
- // {{ Last
- @MemberOrder(sequence = "1")
- @Hidden
- public boolean isLast() {
- return state.equals("page3");
- }
-
- private String disableToConfirmIfLast() {
- return isLast() ? "confirm" : null;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/Claim.gif
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/Claim.gif b/example/application/claims/dom/src/main/resources/images/Claim.gif
deleted file mode 100644
index abe8c9c..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/Claim.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/ClaimItem.gif
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/ClaimItem.gif b/example/application/claims/dom/src/main/resources/images/ClaimItem.gif
deleted file mode 100644
index 8ec80df..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/ClaimItem.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/ClaimRepository.gif
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/ClaimRepository.gif b/example/application/claims/dom/src/main/resources/images/ClaimRepository.gif
deleted file mode 100644
index a5fc6ff..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/ClaimRepository.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/Employee.gif
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/Employee.gif b/example/application/claims/dom/src/main/resources/images/Employee.gif
deleted file mode 100644
index b2015dc..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/Employee.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/EmployeeRepository.gif
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/EmployeeRepository.gif b/example/application/claims/dom/src/main/resources/images/EmployeeRepository.gif
deleted file mode 100644
index dde9be8..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/EmployeeRepository.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/FredSmith.jpg
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/FredSmith.jpg b/example/application/claims/dom/src/main/resources/images/FredSmith.jpg
deleted file mode 100644
index 1f5c7ea..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/FredSmith.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/SamJones.jpg
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/SamJones.jpg b/example/application/claims/dom/src/main/resources/images/SamJones.jpg
deleted file mode 100644
index 6aeadde..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/SamJones.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/dom/src/main/resources/images/TomBrown.jpg
----------------------------------------------------------------------
diff --git a/example/application/claims/dom/src/main/resources/images/TomBrown.jpg b/example/application/claims/dom/src/main/resources/images/TomBrown.jpg
deleted file mode 100644
index e24f534..0000000
Binary files a/example/application/claims/dom/src/main/resources/images/TomBrown.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/fixture/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/claims/fixture/pom.xml b/example/application/claims/fixture/pom.xml
deleted file mode 100644
index 1116d28..0000000
--- a/example/application/claims/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.example.application</groupId>
- <artifactId>claims</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>claims-fixture</artifactId>
- <name>Example Claims App Fixtures</name>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>claims-dom</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsFixture.java
----------------------------------------------------------------------
diff --git a/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsFixture.java b/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsFixture.java
deleted file mode 100644
index aaf9bb6..0000000
--- a/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsFixture.java
+++ /dev/null
@@ -1,82 +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 org.apache.isis.example.application.claims.fixture;
-
-import org.apache.isis.applib.fixtures.AbstractFixture;
-import org.apache.isis.applib.value.Date;
-import org.apache.isis.applib.value.Money;
-import org.apache.isis.example.application.claims.dom.claim.Claim;
-import org.apache.isis.example.application.claims.dom.claim.ClaimItem;
-import org.apache.isis.example.application.claims.dom.employee.Employee;
-
-public class ClaimsFixture extends AbstractFixture {
-
- @Override
- public void install() {
- final Employee fred = createEmployee("Fred Smith", null);
- final Employee tom = createEmployee("Tom Brown", fred);
- createEmployee("Sam Jones", fred);
-
- Claim claim = createClaim(tom, -16, "Meeting with client");
- addItem(claim, -16, 38.50, "Lunch with client");
- addItem(claim, -16, 16.50, "Euston - Mayfair (return)");
-
- claim = createClaim(tom, -18, "Meeting in city office");
- addItem(claim, -16, 18.00, "Car parking");
- addItem(claim, -16, 26.50, "Reading - London (return)");
-
- claim = createClaim(fred, -14, "Meeting at clients");
- addItem(claim, -14, 18.00, "Car parking");
- addItem(claim, -14, 26.50, "Reading - London (return)");
-
- }
-
- private Employee createEmployee(final String name, final Employee approver) {
- Employee claimant;
- claimant = newTransientInstance(Employee.class);
- claimant.setName(name);
- claimant.setDefaultApprover(approver);
- persist(claimant);
- return claimant;
- }
-
- private Claim createClaim(final Employee claimant, final int days, final String description) {
- final Claim claim = newTransientInstance(Claim.class);
- claim.setClaimant(claimant);
- claim.setDescription(description);
- Date date = new Date();
- date = date.add(0, 0, days);
- claim.setDate(date);
- persist(claim);
- return claim;
- }
-
- private void addItem(final Claim claim, final int days, final double amount, final String description) {
- final ClaimItem claimItem = newTransientInstance(ClaimItem.class);
- Date date = new Date();
- date = date.add(0, 0, days);
- claimItem.setDateIncurred(date);
- claimItem.setDescription(description);
- claimItem.setAmount(new Money(amount, "USD"));
- persist(claimItem);
- claim.addToItems(claimItem);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsLogonFixture.java
----------------------------------------------------------------------
diff --git a/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsLogonFixture.java b/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsLogonFixture.java
deleted file mode 100644
index 8ad749a..0000000
--- a/example/application/claims/fixture/src/main/java/org/apache/isis/example/application/claims/fixture/ClaimsLogonFixture.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 org.apache.isis.example.application.claims.fixture;
-
-import org.apache.isis.applib.fixtures.LogonFixture;
-
-public class ClaimsLogonFixture extends LogonFixture {
-
- public ClaimsLogonFixture() {
- super("bill");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/claims/pom.xml b/example/application/claims/pom.xml
deleted file mode 100644
index b01af39..0000000
--- a/example/application/claims/pom.xml
+++ /dev/null
@@ -1,248 +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.example.application</groupId>
- <artifactId>claims</artifactId>
- <version>1.0.0-SNAPSHOT</version>
-
- <name>Example Claims</name>
- <description>Example of a claims submitting application</description>
-
- <packaging>pom</packaging>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-
- <isis.version>1.3.0-SNAPSHOT</isis.version>
- <isis-objectstore-xml.version>1.0.0-SNAPSHOT</isis-objectstore-xml.version>
- <isis-profilestore-xml.version>1.0.0-SNAPSHOT</isis-profilestore-xml.version>
- <isis-security-file.version>1.0.2-SNAPSHOT</isis-security-file.version>
- <isis-viewer-dnd.version>1.0.0-SNAPSHOT</isis-viewer-dnd.version>
- <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
- <isis-viewer-scimpi.version>1.0.0-SNAPSHOT</isis-viewer-scimpi.version>
- <datanucleus-core.version>3.2.7</datanucleus-core.version>
- </properties>
-
- <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-scimpi</module>
- <module>viewer-wicket</module>
- <module>viewer-dnd</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
-
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis</artifactId>
- <version>${isis.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-xml</artifactId>
- <version>${isis-objectstore-xml.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.profilestore</groupId>
- <artifactId>isis-profilestore-xml</artifactId>
- <version>${isis-profilestore-xml.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-dnd</artifactId>
- <version>${isis-viewer-dnd.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-wicket</artifactId>
- <version>${isis-viewer-wicket.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-scimpi</artifactId>
- <version>${isis-viewer-scimpi.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>isis-security-file</artifactId>
- <version>${isis-security-file.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
-
- <!-- this project's own modules -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>claims-dom</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>claims-fixture</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>viewer-html</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>tests-unit</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>claims-viewer-dnd</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>viewer-scimpi</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/viewer-bdd/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-bdd/pom.xml b/example/application/claims/viewer-bdd/pom.xml
deleted file mode 100644
index 38cb7db..0000000
--- a/example/application/claims/viewer-bdd/pom.xml
+++ /dev/null
@@ -1,107 +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.example.application</groupId>
- <artifactId>claims</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>claims-viewer-bdd</artifactId>
-
- <name>Example Claims App: BDD (Concordion) Tests</name>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemPropertyVariables>
- <concordion.output.dir>${project.build.directory}/concordion</concordion.output.dir>
- </systemPropertyVariables>
- <includes>
- <include>**/AllStories.java</include>
- </includes>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
-
- <!-- this project's dependencies -->
- <dependency>
- <groupId>org.apache.isis.example.application</groupId>
- <artifactId>claims-dom</artifactId>
- </dependency>
-
- <!-- isis core -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-metamodel</artifactId>
- </dependency>
-
- <!-- isis default runtime -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-bytecode-cglib</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-objectstore</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-xml</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-profilestore</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-security</artifactId>
- </dependency>
-
-
- <!-- BDD Viewers concordion dependencies -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-bdd-concordion</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
-
- <!-- direct dependency required because is LGPL licensed -->
- <dependency>
- <groupId>xom</groupId>
- <artifactId>xom</artifactId>
- <version>1.2.5</version>
- </dependency>
-
- </dependencies>
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/viewer-bdd/src/main/resources/isis.properties
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-bdd/src/main/resources/isis.properties b/example/application/claims/viewer-bdd/src/main/resources/isis.properties
deleted file mode 100644
index 3d8a4bd..0000000
--- a/example/application/claims/viewer-bdd/src/main/resources/isis.properties
+++ /dev/null
@@ -1,43 +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.services.prefix = org.apache.isis.example.claims.objstore.dflt
-isis.services = employee.EmployeeRepositoryDefault, claim.ClaimRepositoryDefault
-
-isis.fixtures.prefix= org.apache.isis.example.claims.fixture
-isis.fixtures= ClaimsFixture
-
-isis.exploration.users=sven, dick, bob
-
-
-isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.dflt.classsubstitutor.CglibClassSubstitutor
-#isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.javassist.classsubstitutor.JavassistClassSubstitutor
-#isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.identity.classsubstitutor.ClassSubstitutorIdentity
-
-isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.dflt.objectfactory.CglibObjectFactory
-#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.javassist.objectfactory.JavassistObjectFactory
-#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.identity.objectfactory.ObjectFactoryBasic
-
-
-isis.persistor.domain-object-container=org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault
-#isis.persistor.domain-object-container=org.apache.isis.progmodel.wrapper.metamodel.DomainObjectContainerWrapperFactory
-
-
-#isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl
-#isis.authorization.learn=true
-
-isis.persistor=in-memory
-#isis.xmlos.dir=/tmp/xml
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/AbstractApplicationStory.java
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/AbstractApplicationStory.java b/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/AbstractApplicationStory.java
deleted file mode 100644
index 05a5481..0000000
--- a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/AbstractApplicationStory.java
+++ /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.
- */
-package org.apache.isis.example.application.claims;
-
-import org.apache.isis.viewer.bdd.concordion.AbstractIsisConcordionScenario;
-
-public abstract class AbstractApplicationStory extends AbstractIsisConcordionScenario {
-
- /**
- * This superclass also acts as the marker for the location of the custom
- * CSS.
- */
- @Override
- protected Class<?> customCssPackage() {
- return AbstractApplicationStory.class;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInExplorationMode.java
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInExplorationMode.java b/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInExplorationMode.java
deleted file mode 100644
index 0accb3f..0000000
--- a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInExplorationMode.java
+++ /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.
- */
-package org.apache.isis.example.application.claims.common;
-
-import org.apache.isis.viewer.bdd.concordion.AbstractIsisConcordionScenario;
-
-public class BootstrapInExplorationMode extends AbstractIsisConcordionScenario {
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/3df42bf4/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInPrototypeMode.java
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInPrototypeMode.java b/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInPrototypeMode.java
deleted file mode 100644
index 6b269d9..0000000
--- a/example/application/claims/viewer-bdd/src/test/java/org/apache/isis/example/application/claims/common/BootstrapInPrototypeMode.java
+++ /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.
- */
-package org.apache.isis.example.application.claims.common;
-
-import org.apache.isis.viewer.bdd.concordion.AbstractIsisConcordionScenario;
-
-public class BootstrapInPrototypeMode extends AbstractIsisConcordionScenario {
-
-}