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 2015/07/25 11:29:42 UTC
[24/48] isis git commit: ISIS-1178: mothballing the tck tests.
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/java/viewer/wicket/app/application.css
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/java/viewer/wicket/app/application.css b/mothballed/tck/tck-viewer-wicket/src/main/java/viewer/wicket/app/application.css
new file mode 100644
index 0000000..a82d472
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/java/viewer/wicket/app/application.css
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+#header {
+ background: url('images/banner.png') no-repeat scroll left center transparent;
+}
+div.entitySummary > label.entityTitle {
+ color: maroon;
+ font-size: xx-large;
+ font-weight: bolder;
+}
+.ToDoItem-description .scalarName {
+ color: maroon;
+ font-weight: bolder;
+}
+
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/resources/images/Default.png
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/resources/images/Default.png b/mothballed/tck/tck-viewer-wicket/src/main/resources/images/Default.png
new file mode 100644
index 0000000..8409e46
Binary files /dev/null and b/mothballed/tck/tck-viewer-wicket/src/main/resources/images/Default.png differ
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/isis.properties
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/isis.properties b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/isis.properties
new file mode 100644
index 0000000..a6b56f5
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/isis.properties
@@ -0,0 +1,60 @@
+# 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.tck.objstore.dflt
+isis.services =\
+ scalars.ApplibValuedEntityRepositoryDefault,\
+ scalars.JdkValuedEntityRepositoryDefault,\
+ scalars.PrimitiveValuedEntityRepositoryDefault,\
+ scalars.WrapperValuedEntityRepositoryDefault, \
+ simples.SimpleEntityRepositoryDefault,\
+ assocs.ParentEntityRepositoryDefault
+
+isis.fixtures.prefix= org.apache.isis.tck.fixture
+isis.fixtures=\
+ LogonAsSvenFixture,\
+ scalars.ApplibValuedEntityFixture,\
+ scalars.JdkValuedEntityFixture,\
+ scalars.PrimitiveValuedEntityFixture,\
+ scalars.WrapperValuedEntityFixture,\
+ simples.SimpleEntityFixture,\
+ assocs.ParentAndChildEntityFixture
+
+
+
+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
+
+isis.authentication=bypass
+
+###############################
+# wicket-viewer specific
+###############################
+#isis.reflector.facets.include=org.apache.isis.viewer.wicket.metamodel.wizardpagedesc.WizardPageDescriptionAnnotationFacetFactory
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/logging.properties
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/logging.properties b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/logging.properties
new file mode 100644
index 0000000..f2d65e6
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/logging.properties
@@ -0,0 +1,30 @@
+# 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=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/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.allow
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.allow b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.allow
new file mode 100644
index 0000000..928983a
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.allow
@@ -0,0 +1,16 @@
+# 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.
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.passwords
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.passwords b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.passwords
new file mode 100644
index 0000000..7f07af5
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/security_file.passwords
@@ -0,0 +1,20 @@
+# 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.
+sven:pass
+dick:pass
+bob:pass
+joe:pass
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/web.xml b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..27f24b4
--- /dev/null
+++ b/mothballed/tck/tck-viewer-wicket/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,45 @@
+<?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.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>claims</display-name>
+
+ <filter>
+ <filter-name>wicket.claims</filter-name>
+ <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
+ <init-param>
+ <param-name>applicationClassName</param-name>
+ <param-value>org.apache.isis.viewer.wicket.viewer.IsisWicketUnsecuredApplication</param-value>
+ <!--
+ <param-value>org.apache.isis.viewer.wicket.viewer.IsisWicketApplication</param-value>
+ <param-value>viewer.wicket.app.ToDoApplication</param-value>
+ -->
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>wicket.claims</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+
+</web-app>
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.pdn
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.pdn b/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.pdn
new file mode 100644
index 0000000..1836bf5
Binary files /dev/null and b/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.pdn differ
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.png
----------------------------------------------------------------------
diff --git a/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.png b/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.png
new file mode 100644
index 0000000..3461ffc
Binary files /dev/null and b/mothballed/tck/tck-viewer-wicket/src/main/webapp/images/banner.png differ
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c81253c..5dde9f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,7 +51,6 @@
</activation>
<modules>
<module>core</module>
- <module>tck</module>
<module>example/application/simpleapp</module>
<module>example/archetype/simpleapp</module>
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/pom.xml
----------------------------------------------------------------------
diff --git a/tck/pom.xml b/tck/pom.xml
deleted file mode 100644
index 6f1b2cd..0000000
--- a/tck/pom.xml
+++ /dev/null
@@ -1,226 +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.core</groupId>
- <artifactId>isis</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- <relativePath>../core/pom.xml</relativePath>
- </parent>
-
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck</artifactId>
-
- <name>Isis TCK App</name>
-
- <packaging>pom</packaging>
-
- <properties>
- <!-- must be consistent with the versions defined by the JDO Objectstore -->
- <jdo-api.version>3.1-rc1</jdo-api.version>
- <datanucleus-core.version>4.0.6</datanucleus-core.version>
- <datanucleus-api-jdo.version>4.0.5</datanucleus-api-jdo.version>
- <datanucleus-jdo-query.version>4.0.4</datanucleus-jdo-query.version>
- <datanucleus-rdbms.version>4.0.11</datanucleus-rdbms.version>
-
- <datanucleus-jodatime.version>4.0.6</datanucleus-jodatime.version>
- <datanucleus-maven-plugin.version>4.0.0-release</datanucleus-maven-plugin.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>
- </snapshots>
- </repository>
- </repositories>
-
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>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.16</version>
- <configuration>
- <excludes>
- <exclude>**/Test*.java</exclude>
- </excludes>
- <useFile>true</useFile>
- <printSummary>false</printSummary>
- <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.16</version>
- <configuration>
- <showSuccess>false</showSuccess>
- </configuration>
- <executions>
- <execution>
- <phase>test</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>${jetty.version}</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.2</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </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>
-
- <dependencyManagement>
- <dependencies>
-
- <!-- DataNucleus -->
- <dependency>
- <groupId>javax.jdo</groupId>
- <artifactId>jdo-api</artifactId>
- <version>${jdo-api.version}</version>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-core</artifactId>
- <version>${datanucleus-core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-api-jdo</artifactId>
- <version>${datanucleus-api-jdo.version}</version>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-jdo-query</artifactId>
- <version>${datanucleus-jdo-query.version}</version>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-rdbms</artifactId>
- <version>${datanucleus-rdbms.version}</version>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-jodatime</artifactId>
- <version>${datanucleus-jodatime.version}</version>
- </dependency>
-
- <!-- TCK -->
- <dependency>
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck-dom</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck-fixture</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck-integtests</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.tck</groupId>
- <artifactId>isis-tck-viewer-restfulobjects</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </dependency>
-
- </dependencies>
-
- </dependencyManagement>
-
- <modules>
- <module>tck-dom</module>
- <module>tck-fixture</module>
- <module>tck-integtests</module>
- <module>tck-viewer-restfulobjects</module>
- <module>tck-viewer-wicket</module>
- </modules>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/.gitignore
----------------------------------------------------------------------
diff --git a/tck/tck-dom/.gitignore b/tck/tck-dom/.gitignore
deleted file mode 100644
index 0a37d92..0000000
--- a/tck/tck-dom/.gitignore
+++ /dev/null
@@ -1,19 +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.
-#
-.project
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/log4j.properties
----------------------------------------------------------------------
diff --git a/tck/tck-dom/log4j.properties b/tck/tck-dom/log4j.properties
deleted file mode 100644
index 155ae59..0000000
--- a/tck/tck-dom/log4j.properties
+++ /dev/null
@@ -1,40 +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.
-
-
-
-# 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/93a1d5cc/tck/tck-dom/pom.xml
----------------------------------------------------------------------
diff --git a/tck/tck-dom/pom.xml b/tck/tck-dom/pom.xml
deleted file mode 100644
index cd8b414..0000000
--- a/tck/tck-dom/pom.xml
+++ /dev/null
@@ -1,137 +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.tck</groupId>
- <artifactId>isis-tck</artifactId>
- <version>1.9.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>isis-tck-dom</artifactId>
- <name>Isis TCK DOM</name>
-
- <profiles>
- <profile>
- <id>isis-jdo-objectstore</id>
- <activation>
- <property>
- <name>component</name>
- <value>isis-jdo-objectstore</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-maven-plugin</artifactId>
- <version>${datanucleus-maven-plugin.version}</version>
- <configuration>
- <fork>false</fork>
- <verbose>true</verbose>
- <log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
- </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>
- [4.0.0-release,)
- </versionRange>
- <goals>
- <goal>enhance</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore/>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- </profile>
- </profiles>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-applib</artifactId>
- </dependency>
-
- <!-- DataNucleus -->
- <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>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-jdo-query</artifactId>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-rdbms</artifactId>
- </dependency>
- <dependency>
- <groupId>org.datanucleus</groupId>
- <artifactId>datanucleus-jodatime</artifactId>
- </dependency>
-
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/appended-resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/appended-resources/supplemental-models.xml b/tck/tck-dom/src/main/appended-resources/supplemental-models.xml
deleted file mode 100644
index bbf2a84..0000000
--- a/tck/tck-dom/src/main/appended-resources/supplemental-models.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<supplementalDataModels
- xmlns="http://maven.apache.org/supplemental-model/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0
- http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd">
-
-</supplementalDataModels>
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/AbstractEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/AbstractEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/AbstractEntityRepository.java
deleted file mode 100644
index d6b6a24..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/AbstractEntityRepository.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 org.apache.isis.core.tck.dom;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Programmatic;
-import org.apache.isis.applib.annotation.QueryOnly;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.query.Query;
-import org.apache.isis.applib.query.QueryDefault;
-
-public abstract class AbstractEntityRepository<T> extends AbstractFactoryAndRepository {
-
- private final Class<T> entityClass;
- private final String serviceId;
-
- public AbstractEntityRepository(Class<T> entityClass, String serviceId) {
- this.entityClass = entityClass;
- this.serviceId = serviceId;
- }
-
- @Override
- public final String getId() {
- return serviceId;
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public List<T> list() {
- return allInstances(entityClass);
- }
-
- @MemberOrder(sequence = "2")
- public T newEntity() {
- final T entity = newTransientInstance(entityClass);
- persist(entity);
- return entity;
- }
-
- @Programmatic
- public T findByNamedQueryFirstOnly(String queryName, Map<String, Object> argumentByParameterName) {
- final Query<T> query = new QueryDefault<T>(entityClass, queryName, argumentByParameterName);
- return this.firstMatch(query);
- }
-
- @Programmatic
- public List<T> findByNamedQueryAll(String queryName, Map<String, Object> argumentByParameterName) {
- final Query<T> query = new QueryDefault<T>(entityClass, queryName, argumentByParameterName);
- return this.allMatches(query);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntity.java
deleted file mode 100644
index 2f4ed64..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntity.java
+++ /dev/null
@@ -1,76 +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.core.tck.dom.actions;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.Discriminator("RTNE")
-@ObjectType("RTNE")
-public class ActionsEntity extends AbstractDomainObject {
-
- // {{ Id (Integer)
- private Integer id;
-
- @javax.jdo.annotations.PrimaryKey // must be on the getter.
- public Integer getId() {
- return id;
- }
-
- public void setId(final Integer id) {
- this.id = id;
- }
- // }}
-
- // {{ Title
- public String title() {
- return null;
- }
- // }}
-
-
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public ActionsEntity visibleAndInvokableAction() {
- return this;
- }
-
- @Disabled
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public ActionsEntity visibleButUninvokableAction() {
- return this;
- }
-
- @Hidden
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public ActionsEntity invisibleAction() {
- return this;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntityRepository.java
deleted file mode 100644
index f53bca0..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/actions/ActionsEntityRepository.java
+++ /dev/null
@@ -1,126 +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.core.tck.dom.actions;
-
-import java.util.List;
-
-import org.apache.isis.applib.annotation.*;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.spec.Specification;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("ActionsEntities")
-@ObjectType("ActionsEntities")
-@DomainService
-public class ActionsEntityRepository extends AbstractEntityRepository<ActionsEntity> {
-
- public ActionsEntityRepository() {
- super(ActionsEntity.class, "ActionsEntities");
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public ActionsEntity findById(@Named("id") int id) {
- return findByIdIfAny(id);
- }
-
- @ActionSemantics(Of.IDEMPOTENT)
- @MemberOrder(sequence = "1")
- public ActionsEntity findByIdIdempotent(@Named("id") int id) {
- return findByIdIfAny(id);
- }
-
- @ActionSemantics(Of.NON_IDEMPOTENT)
- @MemberOrder(sequence = "1")
- public ActionsEntity findByIdNotIdempotent(@Named("id") int id) {
- return findByIdIfAny(id);
- }
-
- private ActionsEntity findByIdIfAny(int id) {
- List<ActionsEntity> subList = subList(id, id+1);
- return subList.isEmpty()?null:subList.get(0);
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public List<ActionsEntity> subList(
- @MustSatisfy(IntegerCannotBeNegative.class)
- @Named("from") int from,
- @MustSatisfy(IntegerCannotBeNegative.class)
- @Named("to") int to) {
- List<ActionsEntity> list = list();
- int toChecked = Math.min(to, list.size());
- int fromChecked = Math.min(from, toChecked);
- return list.subList(fromChecked, toChecked);
- }
- public String validateSubList(final int from, final int to) {
- if(from > to) {
- return "'from' cannot be larger than 'to'";
- }
- return null;
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public boolean contains(@Named("searchFor") ActionsEntity entity, @Named("from") int from, @Named("to") int to) {
- List<ActionsEntity> list = subList(from, to);
- return list.contains(entity);
- }
-
- public static class IntegerCannotBeNegative implements Specification {
- @Override
- public String satisfies(Object obj) {
- if(!(obj instanceof Integer)) {
- return null;
- }
- Integer integer = (Integer) obj;
- return integer.intValue() < 0? "Cannot be less than zero": null;
- }
- }
-
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public List<ActionsEntity> subListWithOptionalRange(
- @Optional
- @MustSatisfy(IntegerCannotBeNegative.class)
- @Named("from") Integer from,
- @Optional
- @MustSatisfy(IntegerCannotBeNegative.class)
- @Named("to") Integer to) {
- return subList(valueElseDefault(from, 0), valueElseDefault(to, Integer.MAX_VALUE));
- }
-
- public String validateSubListWithOptionalRange(final Integer from, final Integer to) {
- return validateSubList(valueElseDefault(from, 0), valueElseDefault(to, Integer.MAX_VALUE));
- }
-
- private static int valueElseDefault(Integer value, int i) {
- return value != null? value: i;
- }
-
- @ActionSemantics(Of.IDEMPOTENT)
- @MemberOrder(sequence = "90")
- public String concatenate(@Named("str1") String str1, @Named("str2") String str2) {
- return str1 + str2;
- }
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntity.java
deleted file mode 100644
index 3894d1a..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntity.java
+++ /dev/null
@@ -1,165 +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.core.tck.dom.busrules;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.Discriminator("BSRL")
-@javax.jdo.annotations.Query(
- name="prmv_findByIntProperty", language="JDOQL",
- value="SELECT FROM org.apache.isis.tck.dom.busrules.BusRulesEntity WHERE intProperty == :i")
-@ObjectType("BSRL")
-public class BusRulesEntity extends AbstractDomainObject {
-
- // {{ Id (Integer)
- private Integer id;
-
- @javax.jdo.annotations.PrimaryKey // must be on the getter.
- public Integer getId() {
- return id;
- }
-
- public void setId(final Integer id) {
- this.id = id;
- }
- // }}
-
- // {{ Title
- public String title() {
- return null;
- }
- // }}
-
-
- // {{ visibleAndEditableProperty
- private int visibleAndEditableProperty;
-
- @MemberOrder(sequence = "1")
- public int getVisibleAndEditableProperty() {
- return visibleAndEditableProperty;
- }
-
- public void setVisibleAndEditableProperty(final int intProperty) {
- this.visibleAndEditableProperty = intProperty;
- }
- // }}
-
-
- // {{ visibleButNotEditableProperty
- private int visibleButNotEditableProperty;
-
- @Disabled
- @MemberOrder(sequence = "2")
- public int getVisibleButNotEditableProperty() {
- return visibleButNotEditableProperty;
- }
-
- public void setVisibleButNotEditableProperty(final int intProperty) {
- this.visibleButNotEditableProperty = intProperty;
- }
- // }}
-
- // {{ invisibleProperty
- private int invisibleProperty;
-
- @Hidden
- @MemberOrder(sequence = "3")
- public int getInvisibleProperty() {
- return invisibleProperty;
- }
-
- public void setInvisibleProperty(final int intProperty) {
- this.invisibleProperty = intProperty;
- }
- // }}
-
-
- // {{ VisibleAndEditableCollection (Collection)
- private List<BusRulesEntityChild> editableCollection = new ArrayList<BusRulesEntityChild>();
-
- @MemberOrder(sequence = "11")
- public List<BusRulesEntityChild> getVisibleAndEditableCollection() {
- return editableCollection;
- }
-
- public void setVisibleAndEditableCollection(final List<BusRulesEntityChild> children) {
- this.editableCollection = children;
- }
- // }}
-
-
- // {{ VisibleButNotEditableCollection (Collection)
- private List<BusRulesEntityChild> notEditableCollection = new ArrayList<BusRulesEntityChild>();
-
- @MemberOrder(sequence = "11")
- public List<BusRulesEntityChild> getVisibleButNotEditableCollection() {
- return notEditableCollection;
- }
-
- public void setVisibleButNotEditableCollection(final List<BusRulesEntityChild> children) {
- this.notEditableCollection = children;
- }
- // }}
-
- // {{ InvisibleCollection (Collection)
- private List<BusRulesEntityChild> invisibleCollection = new ArrayList<BusRulesEntityChild>();
-
- @Hidden
- @MemberOrder(sequence = "11")
- public List<BusRulesEntityChild> getInvisibleCollection() {
- return invisibleCollection;
- }
-
- public void setInvisibleCollection(final List<BusRulesEntityChild> children) {
- this.invisibleCollection = children;
- }
- // }}
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity visibleAndInvokableAction() {
- return this;
- }
-
- @Disabled
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity visibleButUninvokableAction() {
- return this;
- }
-
- @Hidden
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity invisibleAction() {
- return this;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityChild.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityChild.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityChild.java
deleted file mode 100644
index 5011c23..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityChild.java
+++ /dev/null
@@ -1,55 +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.core.tck.dom.busrules;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.Discriminator("BSRC")
-@javax.jdo.annotations.Query(
- name="prmv_findByIntProperty", language="JDOQL",
- value="SELECT FROM org.apache.isis.tck.dom.busrules.BusRulesEntityChild WHERE intProperty == :i")
-@ObjectType("BSRC")
-public class BusRulesEntityChild extends AbstractDomainObject {
-
-
- // {{ Id (Integer)
- private Integer id;
-
- @javax.jdo.annotations.PrimaryKey // must be on the getter.
- public Integer getId() {
- return id;
- }
-
- public void setId(final Integer id) {
- this.id = id;
- }
- // }}
-
- // {{ Title
- public String title() {
- return null;
- }
- // }}
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityRepository.java
deleted file mode 100644
index e13664c..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/busrules/BusRulesEntityRepository.java
+++ /dev/null
@@ -1,68 +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.core.tck.dom.busrules;
-
-import org.apache.isis.applib.annotation.*;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.query.Query;
-import org.apache.isis.applib.query.QueryDefault;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("BusinessRulesEntities")
-@ObjectType("BusinessRulesEntities")
-@DomainService
-public class BusRulesEntityRepository extends AbstractEntityRepository<BusRulesEntity> {
-
- public BusRulesEntityRepository() {
- super(BusRulesEntity.class, "BusinessRulesEntities");
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity findById(int id) {
- final Query<BusRulesEntity> query =
- new QueryDefault<BusRulesEntity>(BusRulesEntity.class, BusRulesEntity.class.getName() + "#pk", "id", id);
- return this.firstMatch(query);
- }
-
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity visibleAndInvocableAction(@Named("id") int id) {
- return this.findById(id);
- }
-
- @Disabled
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity visibleButNotInvocableAction(@Named("id") int id) {
- return this.findById(id);
- }
-
- @Hidden
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public BusRulesEntity invisibleAction(int id) {
- return this.findById(id);
- }
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Approver.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Approver.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Approver.java
deleted file mode 100644
index ac84e44..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/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.core.tck.dom.claimapp.claims;
-
-public interface Approver {
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claim.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claim.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claim.java
deleted file mode 100644
index 09af5eb..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claim.java
+++ /dev/null
@@ -1,239 +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.core.tck.dom.claimapp.claims;
-
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.value.Color;
-import org.apache.isis.applib.value.Date;
-
-public class Claim extends AbstractDomainObject {
-
- // {{ Title
- public String title() {
- return getStatus() + " - " + getDate();
- }
-
- // }}
-
- // {{ Lifecycle
- public void created() {
- status = "New";
- date = new Date();
- }
-
- // }}
-
- // {{ 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";
- }
-
- // }}
-
- // {{ Date
- private Date date;
-
- @MemberOrder(sequence = "2")
- public Date getDate() {
- return date;
- }
-
- public void setDate(final Date date) {
- this.date = date;
- }
-
- // }}
-
- // {{ Status
- private String status;
-
- @Disabled
- @MemberOrder(sequence = "3")
- public String getStatus() {
- return status;
- }
-
- public void setStatus(final String status) {
- this.status = status;
- }
-
- // }}
-
- // {{ Claimant
- private Claimant claimant;
-
- @Disabled
- @MemberOrder(sequence = "4")
- public Claimant getClaimant() {
- return claimant;
- }
-
- public void setClaimant(final Claimant claimant) {
- this.claimant = claimant;
- }
-
- // }}
-
- // {{ BigDecimal
- private BigDecimal bigDecimal;
-
- @MemberOrder(sequence = "9")
- public BigDecimal getBigDecimal() {
- return bigDecimal;
- }
-
- public void setBigDecimal(final BigDecimal bigDecimal) {
- this.bigDecimal = bigDecimal;
- }
-
- public void modifyBigDecimal(final BigDecimal bigDecimal) {
- // check for no-op
- if (bigDecimal == null || bigDecimal.equals(getBigDecimal())) {
- return;
- }
- // associate new
- setBigDecimal(bigDecimal);
- // additional business logic
- onModifyBigDecimal(bigDecimal);
- }
-
- public void clearBigDecimal() {
- // check for no-op
- if (getBigDecimal() == null) {
- return;
- }
- // dissociate existing
- setBigDecimal(null);
- // additional business logic
- onClearBigDecimal();
- }
-
- protected void onModifyBigDecimal(final BigDecimal bigDecimal) {
- }
-
- protected void onClearBigDecimal() {
- }
-
- // }}
-
- // {{ Color
- private Color color;
-
- @MemberOrder(sequence = "8")
- public Color getColor() {
- return color;
- }
-
- public void setColor(final Color color) {
- this.color = color;
- }
-
- public void modifyColor(final Color color) {
- // check for no-op
- if (color == null || color.equals(getColor())) {
- return;
- }
- // associate new
- setColor(color);
- // additional business logic
- onModifyColor(color);
- }
-
- public void clearColor() {
- // check for no-op
- if (getColor() == null) {
- return;
- }
- // dissociate existing
- setColor(null);
- // additional business logic
- onClearColor();
- }
-
- protected void onModifyColor(final Color color) {
- }
-
- protected void onClearColor() {
- }
-
- // }}
-
- // {{ Approver
- private Approver approver;
-
- @Disabled
- @MemberOrder(sequence = "5")
- public Approver getApprover() {
- return approver;
- }
-
- public void setApprover(final Approver approver) {
- this.approver = approver;
- }
-
- // }}
-
- // {{ 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);
- }
-
- // }}
-
- // {{ action: Submit
- public void submit(final Approver approver) {
- setStatus("Submitted");
- setApprover(approver);
- }
-
- public String disableSubmit() {
- return getStatus().equals("New") ? null : "Claim has already been submitted";
- }
-
- public Object[] defaultSubmit() {
- return new Object[] { getClaimant().getApprover() };
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimItem.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimItem.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimItem.java
deleted file mode 100644
index 0c80cb8..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/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.core.tck.dom.claimapp.claims;
-
-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/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepository.java
deleted file mode 100644
index b743ecd..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepository.java
+++ /dev/null
@@ -1,36 +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.core.tck.dom.claimapp.claims;
-
-import java.util.List;
-
-import org.apache.isis.applib.annotation.Named;
-
-@Named("Claims")
-public interface ClaimRepository {
-
- public List<Claim> allClaims();
-
- public List<Claim> findClaims(@Named("Description") String description);
-
- public List<Claim> claimsFor(Claimant claimant);
-
- public Claim newClaim(Claimant claimant);
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepositoryImpl.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepositoryImpl.java
deleted file mode 100644
index 6bd83cd..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/ClaimRepositoryImpl.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 org.apache.isis.core.tck.dom.claimapp.claims;
-
-import java.util.List;
-
-public class ClaimRepositoryImpl implements ClaimRepository {
-
- @Override
- public List<Claim> allClaims() {
- return null;
- }
-
- @Override
- public List<Claim> findClaims(final String description) {
- return null;
- }
-
- @Override
- public List<Claim> claimsFor(final Claimant claimant) {
- return null;
- }
-
- @Override
- public Claim newClaim(final Claimant claimant) {
- return null;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claimant.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claimant.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claimant.java
deleted file mode 100644
index 707796a..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/claims/Claimant.java
+++ /dev/null
@@ -1,26 +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.core.tck.dom.claimapp.claims;
-
-public interface Claimant {
-
- Approver getApprover();
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/Employee.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/Employee.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/Employee.java
deleted file mode 100644
index 49fb002..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/Employee.java
+++ /dev/null
@@ -1,120 +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.core.tck.dom.claimapp.employees;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.When;
-import org.apache.isis.core.tck.dom.claimapp.claims.Approver;
-import org.apache.isis.core.tck.dom.claimapp.claims.Claimant;
-
-public class Employee extends AbstractDomainObject implements Claimant, Approver {
-
- // {{ Title
- public String title() {
- return getName();
- }
-
- // }}
-
- // {{ Name
- private String name;
-
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- public void modifyName(final String name) {
- setName(name);
- }
-
- public void clearName() {
- setName(null);
- }
-
- public boolean whetherHideName;
-
- public boolean hideName() {
- return whetherHideName;
- }
-
- public String reasonDisableName;
-
- public String disableName() {
- return reasonDisableName;
- }
-
- public String reasonValidateName;
-
- public String validateName(final String name) {
- return reasonValidateName;
- }
-
- // }}
-
- // {{ Password
- private String password;
-
- @MemberOrder(sequence = "2")
- @Disabled(when = When.ONCE_PERSISTED)
- public String getPassword() {
- return password;
- }
-
- public void setPassword(final String password) {
- this.password = password;
- }
-
- // }}
-
- // {{ Approver
- private Approver approver;
-
- @Override
- @MemberOrder(sequence = "2")
- public Approver getApprover() {
- return approver;
- }
-
- public void setApprover(final Approver approver) {
- this.approver = approver;
- }
-
- // }}
-
- // {{ injected: EmployeeRepository
- private EmployeeRepository employeeRepository;
-
- public EmployeeRepository getEmployeeRepository() {
- return employeeRepository;
- }
-
- public void setEmployeeRepository(final EmployeeRepository employeeRepository) {
- this.employeeRepository = employeeRepository;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepository.java
deleted file mode 100644
index d17f228..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepository.java
+++ /dev/null
@@ -1,32 +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.core.tck.dom.claimapp.employees;
-
-import java.util.List;
-
-import org.apache.isis.applib.annotation.Named;
-
-@Named("Employees")
-public interface EmployeeRepository {
-
- public List<Employee> allEmployees();
-
- public List<Employee> findEmployees(@Named("Name") String name);
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepositoryImpl.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepositoryImpl.java
deleted file mode 100644
index 4f58cd5..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/claimapp/employees/EmployeeRepositoryImpl.java
+++ /dev/null
@@ -1,35 +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.core.tck.dom.claimapp.employees;
-
-import java.util.List;
-
-public class EmployeeRepositoryImpl implements EmployeeRepository {
-
- @Override
- public List<Employee> allEmployees() {
- return null;
- }
-
- @Override
- public List<Employee> findEmployees(final String name) {
- return null;
- }
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/HiddenRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/HiddenRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/HiddenRepository.java
deleted file mode 100644
index 0383050..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/HiddenRepository.java
+++ /dev/null
@@ -1,31 +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.core.tck.dom.defaults;
-
-import org.apache.isis.applib.annotation.DomainService;
-import org.apache.isis.applib.annotation.Hidden;
-
-@Hidden
-@DomainService
-public class HiddenRepository {
-
- public String someAction() {
- return null;
- }
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntity.java
deleted file mode 100644
index b05f698..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntity.java
+++ /dev/null
@@ -1,112 +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.core.tck.dom.defaults;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Title;
-
-public class WithDefaultsEntity extends AbstractDomainObject {
-
- // {{ Name (string, title)
- private String name;
-
- @MemberOrder(sequence = "1")
- @Title
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- public String defaultName() {
- return "default-name";
- }
-
- // }}
-
- // {{ Flag (boolean)
- private boolean flag;
-
- @MemberOrder(sequence = "1")
- public boolean getFlag() {
- return flag;
- }
-
- public void setFlag(final boolean flag) {
- this.flag = flag;
- }
-
- public boolean defaultFlag() {
- return true;
- }
-
- // }}
-
- // {{ AnInt (int)
- private int anInt;
-
- @MemberOrder(sequence = "1")
- public int getAnInt() {
- return anInt;
- }
-
- public void setAnInt(final int anInt) {
- this.anInt = anInt;
- }
-
- public int defaultAnInt() {
- return 42;
- }
-
- // }}
-
- // {{ Other (property)
- private WithDefaultsEntity other;
-
- @MemberOrder(sequence = "1")
- public WithDefaultsEntity getOther() {
- return other;
- }
-
- public void setOtherEntity(final WithDefaultsEntity withDefaultsEntity) {
- this.other = withDefaultsEntity;
- }
-
- public WithDefaultsEntity defaultOther() {
- final List<WithDefaultsEntity> list = repository.list();
- return list.size() > 0 ? list.get(list.size() - 1) : null;
- }
-
- // }}
-
- // {{ injected: WithDefaultsEntityRepository
- private WithDefaultsEntityRepository repository;
-
- public void setWithDefaultsEntityRepository(final WithDefaultsEntityRepository repository) {
- this.repository = repository;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntityRepository.java
deleted file mode 100644
index 158f949..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/defaults/WithDefaultsEntityRepository.java
+++ /dev/null
@@ -1,58 +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.core.tck.dom.defaults;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.DomainService;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.QueryOnly;
-import org.apache.isis.applib.filter.Filter;
-
-@Named("Simples")
-@DomainService
-public class WithDefaultsEntityRepository extends AbstractFactoryAndRepository {
-
- @Override
- public String getId() {
- return "withDefaultsEntities";
- }
-
- @MemberOrder(sequence = "1")
- @QueryOnly
- public List<WithDefaultsEntity> list() {
- final Filter<Object> filterPersistentOnly = new Filter<Object>() {
-
- @Override
- public boolean accept(final Object t) {
- return getContainer().isPersistent(t);
- }
- };
- return allMatches(WithDefaultsEntity.class, filterPersistentOnly);
- }
-
- @MemberOrder(sequence = "3")
- public WithDefaultsEntity newTransientEntity() {
- return newTransientInstance(WithDefaultsEntity.class);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Movie.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Movie.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Movie.java
deleted file mode 100644
index c92e560..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Movie.java
+++ /dev/null
@@ -1,68 +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.core.tck.dom.movies;
-
-import java.util.List;
-
-import com.google.common.collect.Lists;
-
-import org.apache.isis.applib.annotation.ObjectType;
-
-@ObjectType("movies.MOVIE")
-public class Movie {
-
- public String title() {
- return name;
- }
-
- // {{ name: String
- private String name;
- public String getName() {
- return name;
- }
- public void setName(final String name) {
- this.name = name;
- }
- // }}
-
- // {{ director: Person
- private Person director;
- public Person getDirector() {
- return director;
- }
- public void setDirector(final Person director) {
- this.director = director;
- }
-
- // }}
-
- // {{ roles: List
- private final List<Role> roles = Lists.newArrayList();
- public List<Role> getRoles() {
- return roles;
- }
- public void addToRoles(final Role role) {
- roles.add(role);
- }
- public void removeFromRoles(final Role role) {
- roles.remove(role);
- }
- // }}
-}