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/01/26 14:25:45 UTC
[21/23] ISIS-319: release preparation tasks
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/java-ARCHIVED/claimwizard/ClaimWizardPanel.java
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/java-ARCHIVED/claimwizard/ClaimWizardPanel.java b/example/application/claims/viewer-wicket/src/main/java-ARCHIVED/claimwizard/ClaimWizardPanel.java
deleted file mode 100644
index 98b5df1..0000000
--- a/example/application/claims/viewer-wicket/src/main/java-ARCHIVED/claimwizard/ClaimWizardPanel.java
+++ /dev/null
@@ -1,154 +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.claims.viewer.wicket.claimwizard;
-
-import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
-import org.apache.isis.core.progmodel.facets.object.validate.ValidateObjectFacet;
-import org.apache.isis.viewer.wicket.model.models.EntityModel;
-import org.apache.isis.viewer.wicket.ui.panels.ProcessObjectPanelAbstract;
-import org.apache.wicket.Session;
-import org.apache.wicket.feedback.FeedbackMessage;
-import org.apache.wicket.markup.html.form.Button;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.form.FormComponent;
-import org.apache.wicket.markup.html.form.validation.AbstractFormValidator;
-import org.apache.wicket.markup.html.panel.ComponentFeedbackPanel;
-import org.apache.wicket.markup.html.panel.FeedbackPanel;
-import org.apache.wicket.model.Model;
-
-public class ClaimWizardPanel extends ProcessObjectPanelAbstract {
-
- private static final long serialVersionUID = 1L;
-
- private static final String ID_CLAIM_WIZARD_PROPERTIES_FORM = "claimWizardPropertiesForm";
- private static final String ID_PROPERTIES = "properties";
- private static final String ID_PROPERTY = "property";
-
- public ClaimWizardPanel(String id, EntityModel model) {
- super(id, model);
- buildGui();
- }
-
- private ClaimWizardForm claimWizardForm;
-
- private void buildGui() {
- EntityModel entityModel = getModel();
- entityModel.toEditMode();
-
- claimWizardForm = new ClaimWizardForm(ID_CLAIM_WIZARD_PROPERTIES_FORM, getModel());
- addOrReplace(claimWizardForm);
- }
-
- class ClaimWizardForm extends Form<ObjectAdapter> {
-
- private static final long serialVersionUID = 1L;
-
- private static final String ID_FEEDBACK = "feedback";
- private static final String ID_PREVIOUS = "previous";
- private static final String ID_NEXT = "next";
- private static final String ID_FINISH = "finish";
-
- private static final String PREVIOUS_ACTION_ID = "previous()";
- private static final String NEXT_ACTION_ID = "next()";
- private static final String FINISH_ACTION_ID = "finish()";
-
- private FeedbackPanel feedback;
-
- public ClaimWizardForm(String id, EntityModel entityModel) {
- super(id, entityModel);
-
- buildFormGui();
- }
-
- private void buildFormGui() {
- addProperties(this, ID_PROPERTIES, ID_PROPERTY);
- addButtons();
- addFeedbackGui();
-
- addValidator();
- }
-
- private void addButtons() {
- add(createButton(ID_PREVIOUS, "Previous", PREVIOUS_ACTION_ID));
- add(createButton(ID_NEXT, "Next", NEXT_ACTION_ID));
- add(createButton(ID_FINISH, "Finish", FINISH_ACTION_ID));
- }
-
- private Button createButton(final String id, final String label, final String actionId) {
- return new Button(id, Model.of(label)) {
- private static final long serialVersionUID = 1L;
-
- @Override
- public void onSubmit() {
- boolean isValid = ClaimWizardPanel.this.isValid(getForm());
- if (!isValid) {
- return;
- }
-
- executeNoArgAction(actionId);
- }
- };
- }
-
- private void addFeedbackGui() {
- final FeedbackPanel feedback = addOrReplaceFeedback();
-
- ObjectAdapter adapter = getModel().getObject();
- if (adapter == null) {
- feedback.error("cannot locate object:" + getEntityModel().getObjectAdapterMemento().toString());
- }
- }
-
- private FeedbackPanel addOrReplaceFeedback() {
- feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
- feedback.setOutputMarkupPlaceholderTag(true);
- addOrReplace(feedback);
- return feedback;
- }
-
- private void addValidator() {
- add(new AbstractFormValidator() {
-
- private static final long serialVersionUID = 1L;
-
- @Override
- public FormComponent<?>[] getDependentFormComponents() {
- return new FormComponent<?>[0];
- }
-
- @Override
- public void validate(Form<?> form) {
- EntityModel entityModel = (EntityModel) getModel();
- ObjectAdapter adapter = entityModel.getObject();
- ValidateObjectFacet facet = adapter.getSpecification().getFacet(ValidateObjectFacet.class);
- if (facet == null) {
- return;
- }
- String invalidReasonIfAny = facet.invalidReason(adapter);
- if (invalidReasonIfAny != null) {
- Session.get().getFeedbackMessages()
- .add(new FeedbackMessage(form, invalidReasonIfAny, FeedbackMessage.ERROR));
- }
- }
- });
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/java/org/apache/isis/example/application/claims/viewer/wicket/app/ClaimsApplication.java
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/java/org/apache/isis/example/application/claims/viewer/wicket/app/ClaimsApplication.java b/example/application/claims/viewer-wicket/src/main/java/org/apache/isis/example/application/claims/viewer/wicket/app/ClaimsApplication.java
deleted file mode 100644
index 4d9c116..0000000
--- a/example/application/claims/viewer-wicket/src/main/java/org/apache/isis/example/application/claims/viewer/wicket/app/ClaimsApplication.java
+++ /dev/null
@@ -1,44 +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.viewer.wicket.app;
-
-import org.apache.isis.viewer.wicket.viewer.IsisWicketApplication;
-
-import com.google.inject.AbstractModule;
-import com.google.inject.Module;
-import com.google.inject.util.Modules;
-
-
-public class ClaimsApplication extends IsisWicketApplication {
-
- private static final long serialVersionUID = 1L;
-
- @Override
- protected Module newIsisWicketModule() {
- return Modules.override(
- super.newIsisWicketModule()).with(
- new AbstractModule() {
- @Override
- protected void configure() {
- }
- });
- }
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/resources/META-INF/services/org.apache.isis.viewer.wicket.ui.ComponentFactory
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/resources/META-INF/services/org.apache.isis.viewer.wicket.ui.ComponentFactory b/example/application/claims/viewer-wicket/src/main/resources/META-INF/services/org.apache.isis.viewer.wicket.ui.ComponentFactory
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/resources/css/application.css
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/resources/css/application.css b/example/application/claims/viewer-wicket/src/main/resources/css/application.css
deleted file mode 100644
index 6b81fb2..0000000
--- a/example/application/claims/viewer-wicket/src/main/resources/css/application.css
+++ /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.
- */
-/*
-div.entitySummary > label.entityTitle {
- color: maroon;
- font-size: xx-large;
- font-weight: bolder;
-}
-.Claim-description .scalarName {
- color: maroon;
- font-weight: bolder;
-}
-
-*/
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authentication_file.passwords
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authentication_file.passwords b/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authentication_file.passwords
deleted file mode 100644
index 7f07af5..0000000
--- a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authentication_file.passwords
+++ /dev/null
@@ -1,20 +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.
-sven:pass
-dick:pass
-bob:pass
-joe:pass
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authorization_file.allow
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authorization_file.allow b/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authorization_file.allow
deleted file mode 100644
index 928983a..0000000
--- a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/authorization_file.allow
+++ /dev/null
@@ -1,16 +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.
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/isis.properties
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/isis.properties b/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/isis.properties
deleted file mode 100644
index 0d04d59..0000000
--- a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/isis.properties
+++ /dev/null
@@ -1,205 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-#################################################################################
-#
-# specify system components.
-#
-# The values correspond to the named components in the installer-registry.properties file
-# in the org.apache.isis.runtimes.dflt:runtime JAR (in the org.apache.isis.runtimes.dflt.runtime package)
-#
-# Although all configuration could reside in isis.properties, the recommendation is
-# to split out into component specific files:
-#
-# xxx_yyy.properties files
-#
-# where
-# * xxx is the component type, and
-# * yyy is the component name.
-#
-# For example, persistor_sql.properties holds configuration information specific to the
-#
-#
-# If the components are changed, also remember to edit pom.xml (further comments can be
-# found in the persistor_xxx.properties files)
-#
-#################################################################################
-
-#
-# configure the persistor (object store) to use
-#
-# * in-memory requires no additional configuration, but stores object in-memory.
-# Only suitable for prototyping
-# * datanucleus uses JDO DataNucleus to persist objects to relational database.
-# for objectstore-specific properties, see persistor_datanucleus.properties
-# * fileserver uses a simple FileServer to persist objects as JSON documents. It requires the fileserver component to be running
-# for objectstore-specific properties, see persistor_fileserver.properties
-# * mongodb uses MongoDB to be persist objects as JSON documents. It requires MongoDB to be installed and running
-# for objectstore-specific properties, see persistor_fileserver.properties
-# * sql uses an RDBMS to persist objects as table rows.
-# for objectstore-specific properties, see persistor_sql.properties
-# * xml uses the XML ObjectStore to be persist objects to a set of XML files. Only suitable for prototyping.
-# for objectstore-specific properties, see persistor_xml.properties
-#
-# NOTE:
-# * edit isis.services (below) and pom.xml to reference appropriate objstore-xxx module
-# * for datanucleus objectstore, also edit isis.reflector.facets and isis.reflector.class-substitutor (below)
-# * for sql and datanucleus objectstores, also edit pom.xml to reference appropriate JDBC driver
-#
-
-isis.persistor=in-memory
-#isis.persistor=datanucleus
-#isis.persistor=fileserver
-#isis.persistor=mongodb
-#isis.persistor=sql
-#isis.persistor=xml
-
-
-
-
-
-#
-# configure authentication mechanis to use (to logon to the system)
-# note that the Scimpi view allows access to anonymous users
-#
-isis.authentication=file
-
-
-#
-# configure authorization mechanism to use
-
-# The authorization mechanism define each users' permissions to view/edit object properties
-# or collections, and to view/invoke object actions
-#
-# >>>
-# >>> NB: authorization also requires a "facet decorator" to be installed,
-# >>>
-#
-isis.authorization=file
-
-
-
-
-#
-# configure the user profile store to use.
-#
-# the user profile store is supported by some viewers as a way to store
-# user-specific settings (eg colours, themes etc)
-#
-isis.user-profile-store=in-memory
-
-
-
-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
-
-
-#################################################################################
-#
-# System MetaModel and Runtime Components
-#
-#################################################################################
-
-#
-# programming model facets
-#
-# Some components require an additional set of facets to be defined.
-#
-
-# for datanucleus object store
-#isis.reflector.facets=org.apache.isis.runtimes.dflt.objectstores.jdo.datanucleus.metamodel.specloader.progmodelfacets.DataNucleusProgrammingModelFacets
-
-
-#
-# enable authorization
-#
-# authorization requires that a "facet decorator" be installed; this intercepts every
-# request and delegates to the configured authorization mechanism.
-#
-
-#isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl
-
-
-
-
-
-
-################################################################################
-#
-# Viewer defaults
-#
-#################################################################################
-
-#
-# Specify viewer defaults
-#
-
-isis.viewers.paged.standalone=30
-isis.viewers.paged.parented=10
-
-
-
-#################################################################################
-#
-# Application Services and fixtures
-#
-#################################################################################
-
-#
-# Specify the domain services.
-#
-# These are the most important configuration properties in the system, as they define
-# the set of the classes for Isis to instantiate as domain service singletons.
-# From these domain service instances the rest of the metamodel is discovered, while the
-# end-user gains access to other domain objects by invoking the actions of the domain services.
-#
-# The implementations depend on the configured (see isis.persistor above)
-#
-
-# if using the in-memory or XML object stores:
-isis.services.prefix = org.apache.isis.example.application.claims.dom
-isis.services = employee.EmployeeRepository, claim.ClaimRepository
-
-
-
-
-#
-# Specify the (optional) test fixtures
-#
-# Fixtures are used to seed the object store with an initial set of data. For the
-# in-memory object store, the fixtures are installed on every run. For other
-# object stores, they are used only when the object store is first initialized.
-#
-isis.fixtures.prefix= org.apache.isis.example.application.claims.fixture
-isis.fixtures= ClaimsFixture
-
-
-
-
-isis.exploration.users=sven, dick, bob
-
-
-
-
-
-
-
-###############################
-# archived
-###############################
-#isis.reflector.facets.include=org.apache.isis.viewer.wicket.metamodel.wizardpagedesc.WizardPageDescriptionAnnotationFacetFactory
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/web.xml b/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 4c72def..0000000
--- a/example/application/claims/viewer-wicket/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,53 +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.
--->
-<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>
-
- <!--
- There are three means to configure Wickets configuration mode and they
- are tested in the order given. 1) A system property:
- -Dwicket.configuration 2) servlet specific <init-param> 3) context
- specific <context-param> The value might be either "development"
- (reloading when templates change) or "deployment". If no configuration
- is found, "development" is the default.
- -->
-
- <filter>
- <filter-name>wicket.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.IsisWicketApplication</param-value>
- <!--
- <param-value>org.apache.isis.example.claims.viewer.wicket.app.ClaimsApplication</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/a23e6e73/example/application/onlinedemo/dom/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/pom.xml b/example/application/onlinedemo/dom/pom.xml
deleted file mode 100644
index d183241..0000000
--- a/example/application/onlinedemo/dom/pom.xml
+++ /dev/null
@@ -1,43 +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>
-
- <!--
- mvn javadoc:javadoc
- mvn org.apache.maven.plugins:maven-jxr-plugin:2.2:jxr
- -->
-
- <parent>
- <groupId>org.apache.isis.example.application</groupId>
- <artifactId>onlinedemo</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>onlinedemo-dom</artifactId>
- <name>Online Demo DOM</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-applib</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/demo/DemoFixtures.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/demo/DemoFixtures.java b/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/demo/DemoFixtures.java
deleted file mode 100644
index bf3979e..0000000
--- a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/demo/DemoFixtures.java
+++ /dev/null
@@ -1,50 +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.onlinedemo.dom.demo;
-
-import java.util.List;
-
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.Idempotent;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.example.application.onlinedemo.dom.items.ToDoItem;
-
-/**
- * Install fixtures (test data set) for the currently logged-in user.
- *
- * <p>
- * Typically fixtures are installed directly by the framework, using the
- * <tt>isis.fixtures</tt> key within the <tt>isis.properties</tt> configuration
- * file. In this case though, because the online demo is intended to be
- * multi-user, we have made this capability available directly in the UI. (In
- * production, this service would be excluded from the final build)
- */
-@Named("Demo")
-// name to use in the UI
-public interface DemoFixtures {
-
-
- @ActionSemantics(Of.IDEMPOTENT) // post-conditions are always same
- @MemberOrder(sequence = "1")
- public List<ToDoItem> resetFixtures();
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Categories.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Categories.java b/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Categories.java
deleted file mode 100644
index 3a83e76..0000000
--- a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Categories.java
+++ /dev/null
@@ -1,78 +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.onlinedemo.dom.items;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.QueryOnly;
-
-/**
- * A repository for {@link Category}.
- *
- * <p>
- * The implementation depends on the configured object store.
- */
-@Hidden
-@Named("Categories")
-public class Categories extends AbstractFactoryAndRepository {
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "categories";
- }
-
- public String iconName() {
- return "Category";
- }
- // }}
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1")
- public List<Category> all() {
- return allInstances(Category.class);
- }
-
- @Hidden
- // intended for fixtures only, so is hidden in the UI
- public Category newCategory(String description) {
- Category category = find(description);
- if (category != null) {
- return category;
- }
- category = newTransientInstance(Category.class);
- category.setDescription(description);
- persist(category);
- return category;
- }
-
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "2")
- public Category find(@Named("Description") String description) {
- return firstMatch(Category.class, Category.matching(description));
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Category.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Category.java b/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Category.java
deleted file mode 100644
index e6733cc..0000000
--- a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/Category.java
+++ /dev/null
@@ -1,65 +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.onlinedemo.dom.items;
-
-import com.google.common.base.Objects;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.Bounded;
-import org.apache.isis.applib.annotation.Immutable;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Title;
-import org.apache.isis.applib.filter.Filter;
-
-@Immutable
-// cannot be modified through the UI
-@Bounded
-// a bounded number of instances (viewers typically display all instances in a
-// drop-down)
-public class Category extends AbstractDomainObject {
-
- // {{ Description
- private String description;
-
- @Title
- // use as the title
- @MemberOrder(sequence = "1")
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
-
- // }}
-
- // {{ filters (programmatic)
- public static Filter<Category> matching(final String description) {
- return new Filter<Category>() {
- @Override
- public boolean accept(final Category category) {
- return Objects.equal(category.getDescription(), description);
- }
- };
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItem.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItem.java b/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItem.java
deleted file mode 100644
index d8bf3a8..0000000
--- a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItem.java
+++ /dev/null
@@ -1,296 +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.onlinedemo.dom.items;
-
-import java.util.List;
-
-import com.google.common.base.Objects;
-
-import org.apache.isis.applib.annotation.Disabled;
-import org.apache.isis.applib.annotation.Hidden;
-import org.apache.isis.applib.annotation.Ignore;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Programmatic;
-import org.apache.isis.applib.annotation.RegEx;
-import org.apache.isis.applib.clock.Clock;
-import org.apache.isis.applib.filter.Filter;
-import org.apache.isis.applib.filter.Filters;
-import org.apache.isis.applib.util.TitleBuffer;
-import org.apache.isis.applib.value.Date;
-
-/**
- * A todo item (task) owned by a particular user.
- */
-public class ToDoItem implements Comparable<ToDoItem> {
-
- private static final long ONE_WEEK_IN_MILLIS = 7 * 24 * 60 * 60 * 1000L;
-
- // {{ Identification on the UI
- public String title() {
- final TitleBuffer buf = new TitleBuffer();
- buf.append(getDescription());
- if (isComplete()) {
- buf.append(" - Completed!");
- } else {
- if (getDueBy() != null) {
- buf.append(" due by ", getDueBy());
- }
- }
- return buf.toString();
- }
-
- // }}
-
- // {{ Description (property)
- private String description;
-
- @RegEx(validation = "\\w[@&:\\-\\,\\.\\+ \\w]*")
- // words, spaces and selected punctuation
- @MemberOrder(sequence = "1")
- // ordering within UI
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
-
- // }}
-
- // {{ DueBy (property)
- private Date dueBy;
-
- @Optional
- // need not be set
- @MemberOrder(sequence = "2")
- public Date getDueBy() {
- return dueBy;
- }
-
- public void setDueBy(final Date dueBy) {
- this.dueBy = dueBy;
- }
-
- // proposed new value is validated before setting
- public String validateDueBy(final Date dueBy) {
- if (dueBy == null) {
- return null;
- }
- return isMoreThanOneWeekInPast(dueBy) ? "Due by date cannot be more than one week old" : null;
- }
-
- // }}
-
- // {{ Category (property)
- private Category category;
-
- @MemberOrder(sequence = "3")
- public Category getCategory() {
- return category;
- }
-
- public void setCategory(final Category category) {
- this.category = category;
- }
-
- // }}
-
- // {{ UserName (property)
- private String userName;
-
- @Hidden
- // not shown in the UI
- public String getUserName() {
- return userName;
- }
-
- public void setUserName(final String userName) {
- this.userName = userName;
- }
-
- // }}
-
- // {{ Complete (property)
- private boolean complete;
-
- @Disabled
- // cannot be edited as a property
- @MemberOrder(sequence = "5")
- public boolean isComplete() {
- return complete;
- }
-
- public void setComplete(final boolean complete) {
- this.complete = complete;
- }
-
- // }}
-
- // {{ completed (action)
- @MemberOrder(sequence = "1")
- public ToDoItem completed() {
- setComplete(true);
- return this;
- }
-
- // disable action dependent on state of object
- public String disableCompleted() {
- return complete ? "Already completed" : null;
- }
-
- // }}
-
- // {{ notYetCompleted (action)
- @MemberOrder(sequence = "2")
- public ToDoItem notYetCompleted() {
- setComplete(false);
- return this;
- }
-
- // disable action dependent on state of object
- public String disableNotYetCompleted() {
- return !complete ? "Not yet completed" : null;
- }
-
- // }}
-
- // {{ clone (action)
- @Named("Clone")
- // the name of the action in the UI
- @MemberOrder(sequence = "3")
- // nb: method is not called "clone()" is inherited by java.lang.Object and
- // (a) has different semantics and (b) is in any case automatically ignored
- // by the framework
- public ToDoItem duplicate() {
- return toDoItems.newToDo(getDescription() + " - Copy", getCategory(), getDueBy());
- }
-
- // }}
-
- // {{ isDue (programmatic)
- @Programmatic
- // excluded from the framework's metamodel
- public boolean isDue() {
- if (getDueBy() == null) {
- return false;
- }
- return !isMoreThanOneWeekInPast(getDueBy());
- }
-
- // }}
-
- // {{ SimilarItems (collection)
- @MemberOrder(sequence = "5")
- public List<ToDoItem> getSimilarItems() {
- return toDoItems.similarTo(this);
- }
-
- // }}
-
- // {{ compareTo (programmatic)
- /**
- * by complete flag, then due by date, then description
- */
- @Programmatic
- // exclude from the framework's metamodel
- @Override
- public int compareTo(final ToDoItem other) {
- if (isComplete() && !other.isComplete()) {
- return +1;
- }
- if (!isComplete() && other.isComplete()) {
- return -1;
- }
- if (getDueBy() == null && other.getDueBy() != null) {
- return +1;
- }
- if (getDueBy() != null && other.getDueBy() == null) {
- return -1;
- }
- if (getDueBy() == null && other.getDueBy() == null || getDueBy().equals(this.getDueBy())) {
- return getDescription().compareTo(other.getDescription());
- }
- return (int) (getDueBy().getMillisSinceEpoch() - other.getDueBy().getMillisSinceEpoch());
- }
-
- // }}
-
- // {{ helpers
- private static boolean isMoreThanOneWeekInPast(final Date dueBy) {
- return dueBy.getMillisSinceEpoch() < Clock.getTime() - ONE_WEEK_IN_MILLIS;
- }
-
- // }}
-
- // {{ filters (programmatic)
- public static Filter<ToDoItem> thoseDue() {
- return Filters.and(Filters.not(thoseComplete()), new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem t) {
- return t.isDue();
- }
- });
- }
-
- public static Filter<ToDoItem> thoseComplete() {
- return new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem t) {
- return t.isComplete();
- }
- };
- }
-
- public static Filter<ToDoItem> thoseOwnedBy(final String currentUser) {
- return new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem toDoItem) {
- return Objects.equal(toDoItem.getUserName(), currentUser);
- }
-
- };
- }
-
- public static Filter<ToDoItem> thoseSimilarTo(final ToDoItem toDoItem) {
- return new Filter<ToDoItem>() {
- @Override
- public boolean accept(final ToDoItem eachToDoItem) {
- return Objects.equal(toDoItem.getCategory(), eachToDoItem.getCategory()) &&
- Objects.equal(toDoItem.getUserName(), eachToDoItem.getUserName()) &&
- eachToDoItem != toDoItem;
- }
-
- };
- }
-
- // }}
-
- // {{ injected: ToDoItems
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItems.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItems.java b/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItems.java
deleted file mode 100644
index 53aed51..0000000
--- a/example/application/onlinedemo/dom/src/main/java/org/apache/isis/example/application/onlinedemo/dom/items/ToDoItems.java
+++ /dev/null
@@ -1,119 +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.onlinedemo.dom.items;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.applib.annotation.ActionSemantics;
-import org.apache.isis.applib.annotation.ActionSemantics.Of;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.filter.Filters;
-import org.apache.isis.applib.value.Date;
-
-/**
- * A repository for {@link ToDoItem}s.
- *
- * <p>
- * The implementation depends on the configured object store.
- */
-@Named("ToDos")
-public class ToDoItems extends AbstractFactoryAndRepository {
-
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "toDoItems";
- }
-
- public String iconName() {
- return "ToDoItem";
- }
-
- // }}
-
- // {{ ToDosForToday (action)
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "1") // order in the UI
- public List<ToDoItem> toDosForToday() {
- return allMatches(ToDoItem.class, Filters.and(ToDoItem.thoseOwnedBy(currentUser()), ToDoItem.thoseDue()));
- }
-
- // }}
-
- // {{ NewToDo (action)
- @MemberOrder(sequence = "2")
- public ToDoItem newToDo(@Named("Description") String description, Category category, @Named("Due by") @Optional Date dueBy) {
- final ToDoItem toDoItem = newTransientInstance(ToDoItem.class);
- toDoItem.setDescription(description);
- toDoItem.setCategory(category);
- toDoItem.setDueBy(dueBy);
- toDoItem.setUserName(currentUser());
- persist(toDoItem);
- return toDoItem;
- }
- // }}
-
- // {{ AllToDos (action)
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "3")
- public List<ToDoItem> allToDos() {
- final String currentUser = currentUser();
- final List<ToDoItem> items = allMatches(ToDoItem.class, ToDoItem.thoseOwnedBy(currentUser));
- Collections.sort(items);
- return items;
- }
-
- // }}
-
- // {{ SimilarTo (action)
- @ActionSemantics(Of.SAFE)
- @MemberOrder(sequence = "4")
- public List<ToDoItem> similarTo(ToDoItem toDoItem) {
- return allMatches(ToDoItem.class, ToDoItem.thoseSimilarTo(toDoItem));
- }
-
- // }}
-
- // {{ RemoveCompleted (action)
- @ActionSemantics(Of.IDEMPOTENT) // same post-conditions
- @MemberOrder(sequence = "5")
- public void removeCompleted() {
- final List<ToDoItem> complete = allMatches(ToDoItem.class, ToDoItem.thoseComplete());
- for (final ToDoItem toDoItem : complete) {
- getContainer().remove(toDoItem);
- }
- final int size = complete.size();
- getContainer().informUser("" + size + " item" + (size != 1 ? "s" : "") + " removed");
- }
-
- // }}
-
- // {{ helpers
- private String currentUser() {
- return getContainer().getUser().getName();
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/resources/images/Category.gif
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/resources/images/Category.gif b/example/application/onlinedemo/dom/src/main/resources/images/Category.gif
deleted file mode 100644
index 39ec56b..0000000
Binary files a/example/application/onlinedemo/dom/src/main/resources/images/Category.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/dom/src/main/resources/images/ToDoItem.gif
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/dom/src/main/resources/images/ToDoItem.gif b/example/application/onlinedemo/dom/src/main/resources/images/ToDoItem.gif
deleted file mode 100644
index cc536e1..0000000
Binary files a/example/application/onlinedemo/dom/src/main/resources/images/ToDoItem.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/fixture/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/fixture/pom.xml b/example/application/onlinedemo/fixture/pom.xml
deleted file mode 100644
index 64c4844..0000000
--- a/example/application/onlinedemo/fixture/pom.xml
+++ /dev/null
@@ -1,38 +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>onlinedemo</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>onlinedemo-fixture</artifactId>
- <name>Online Demo Fixtures</name>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-dom</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/DemoFixturesDefault.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/DemoFixturesDefault.java b/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/DemoFixturesDefault.java
deleted file mode 100644
index 269e4e1..0000000
--- a/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/DemoFixturesDefault.java
+++ /dev/null
@@ -1,80 +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.onlinedemo.fixture.items;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractFactoryAndRepository;
-import org.apache.isis.example.application.onlinedemo.dom.demo.DemoFixtures;
-import org.apache.isis.example.application.onlinedemo.dom.items.Categories;
-import org.apache.isis.example.application.onlinedemo.dom.items.ToDoItem;
-import org.apache.isis.example.application.onlinedemo.dom.items.ToDoItems;
-
-public class DemoFixturesDefault extends AbstractFactoryAndRepository implements DemoFixtures {
-
- // {{ Id, iconName
- @Override
- public String getId() {
- return "demo";
- }
-
- public String iconName() {
- return "demo";
- }
-
- // }}
-
- @Override
- public List<ToDoItem> resetFixtures() {
- final ToDoItemsFixture fixture = new ToDoItemsFixture();
- injectServicesInto(fixture);
-
- fixture.install();
-
- return toDoItems.allToDos();
- }
-
- // {{ helpers
- private void injectServicesInto(final ToDoItemsFixture fixture) {
- fixture.setCategories(categories);
- fixture.setContainer(getContainer());
- fixture.setToDoItems(toDoItems);
- }
-
- // }}
-
- // {{ injected: Categories
- private Categories categories;
-
- public void setCategories(final Categories categories) {
- this.categories = categories;
- }
-
- // }}
-
- // {{ injected: ToDoItems
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/ToDoItemsFixture.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/ToDoItemsFixture.java b/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/ToDoItemsFixture.java
deleted file mode 100644
index a02d718..0000000
--- a/example/application/onlinedemo/fixture/src/main/java/org/apache/isis/example/application/onlinedemo/fixture/items/ToDoItemsFixture.java
+++ /dev/null
@@ -1,95 +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.onlinedemo.fixture.items;
-
-import java.util.List;
-
-import org.apache.isis.applib.clock.Clock;
-import org.apache.isis.applib.fixtures.AbstractFixture;
-import org.apache.isis.applib.value.Date;
-import org.apache.isis.example.application.onlinedemo.dom.items.Categories;
-import org.apache.isis.example.application.onlinedemo.dom.items.Category;
-import org.apache.isis.example.application.onlinedemo.dom.items.ToDoItem;
-import org.apache.isis.example.application.onlinedemo.dom.items.ToDoItems;
-
-public class ToDoItemsFixture extends AbstractFixture {
-
- @Override
- public void install() {
- final Category domesticCategory = findOrCreateCategory("Domestic");
- final Category professionalCategory = findOrCreateCategory("Professional");
-
- removeAllToDosForCurrentUser();
-
- createToDoItemForCurrentUser("Buy milk", domesticCategory, daysFromToday(0));
- createToDoItemForCurrentUser("Buy stamps", domesticCategory, daysFromToday(0));
- createToDoItemForCurrentUser("Pick up laundry", domesticCategory, daysFromToday(6));
- createToDoItemForCurrentUser("Write blog post", professionalCategory, null);
- createToDoItemForCurrentUser("Organize brown bag", professionalCategory, daysFromToday(14));
-
- getContainer().flush();
- }
-
- // {{ helpers
- private Category findOrCreateCategory(final String description) {
- final Category category = categories.find(description);
- if (category != null) {
- return category;
- }
- return categories.newCategory(description);
- }
-
- private void removeAllToDosForCurrentUser() {
- final List<ToDoItem> allToDos = toDoItems.allToDos();
- for (final ToDoItem toDoItem : allToDos) {
- getContainer().remove(toDoItem);
- }
- }
-
- private ToDoItem createToDoItemForCurrentUser(final String description, final Category category, final Date dueBy) {
- return toDoItems.newToDo(description, category, dueBy);
- }
-
- private static Date daysFromToday(final int i) {
- final Date date = new Date(Clock.getTimeAsDateTime());
- date.add(0, 0, i);
- return date;
- }
-
- // }}
-
- // {{ injected: Categories
- private Categories categories;
-
- public void setCategories(final Categories categories) {
- this.categories = categories;
- }
-
- // }}
-
- // {{ injected: ToDoItems
- private ToDoItems toDoItems;
-
- public void setToDoItems(final ToDoItems toDoItems) {
- this.toDoItems = toDoItems;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/pom.xml b/example/application/onlinedemo/pom.xml
deleted file mode 100644
index f41d333..0000000
--- a/example/application/onlinedemo/pom.xml
+++ /dev/null
@@ -1,308 +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>onlinedemo</artifactId>
- <version>1.0.0-SNAPSHOT</version>
-
- <name>Online Demo</name>
-
- <packaging>pom</packaging>
-
- <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>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>
-
- <dependencyManagement>
- <dependencies>
-
- <!-- this project's own modules -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-dom</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-fixture</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-objstore-dflt</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-webapp</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
-
- <!-- isis: applib -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-applib</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-applib</artifactId>
- <classifier>javadoc</classifier>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: core -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-metamodel</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
-
- <!-- isis: security: dflt -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-security</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>isis-security-ldap</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: security: file -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>isis-security-file</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes: dflt -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-runtime</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-html-monitoring</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-webserver</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-bytecode-cglib</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-bytecode-javassist</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstores: dflt -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-objectstore</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstores: xml -->
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-xml</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: objectstore: sql -->
- <dependency>
- <groupId>org.apache.isis.objectstore</groupId>
- <artifactId>isis-objectstore-sql-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: profilestores: dflt -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-profilestore</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- <!-- isis: runtimes-dflt: profilestores: xml -->
- <dependency>
- <groupId>org.apache.isis.profilestore</groupId>
- <artifactId>isis-profilestore-xml</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
-
- <!-- isis: viewer: html -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-html-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
-
- <!-- isis: viewer: restfulobjects -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-restfulobjects</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-restfulobjects-applib</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-restfulobjects-impl</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <modules>
- <module>dom</module>
- <module>fixture</module>
- <module>webapp</module>
- </modules>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/pom.xml
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/pom.xml b/example/application/onlinedemo/webapp/pom.xml
deleted file mode 100644
index 19db399..0000000
--- a/example/application/onlinedemo/webapp/pom.xml
+++ /dev/null
@@ -1,133 +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>onlinedemo</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>onlinedemo-webapp</artifactId>
- <name>Online Demo Webapp with HTML+RestfulObjects Viewers</name>
-
- <packaging>war</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- </plugin>
-
- <!-- mvn package -->
- <plugin>
- <groupId>org.simplericity.jettyconsole</groupId>
- <artifactId>jetty-console-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>createconsole</goal>
- </goals>
- <configuration>
- <backgroundImage>${basedir}/src/main/jettyconsole/isis-onlinedemo-banner.png</backgroundImage>
- </configuration>
- <phase>package</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
-
- <!-- other modules in this project -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-dom</artifactId>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>onlinedemo-fixture</artifactId>
- </dependency>
-
-
- <!-- isis viewer -->
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-html-impl</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.isis.viewer</groupId>
- <artifactId>isis-viewer-restfulobjects-impl</artifactId>
- </dependency>
-
- <!-- isis 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.profilestore</groupId>
- <artifactId>isis-profilestore-xml</artifactId>
- </dependency>
-
-
- <!-- isis security implementations -->
- <dependency>
- <groupId>org.apache.isis.security</groupId>
- <artifactId>isis-security-file</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-security</artifactId>
- </dependency>
-
- <!-- to run using WebServer (optional) -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-webserver</artifactId>
- <scope>runtime</scope>
- <optional>true</optional>
- </dependency>
-
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-servlet_2.5_spec</artifactId>
- <version>1.2</version>
- </dependency>
-
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticationManagerSupportingInMemoryRegistrationInstaller.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticationManagerSupportingInMemoryRegistrationInstaller.java b/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticationManagerSupportingInMemoryRegistrationInstaller.java
deleted file mode 100644
index 57cf972..0000000
--- a/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticationManagerSupportingInMemoryRegistrationInstaller.java
+++ /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.
- */
-
-package org.apache.isis.example.application.onlinedemo.auth;
-
-import java.util.List;
-
-import com.google.common.collect.Lists;
-
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.runtime.authentication.AuthenticationManagerStandardInstallerAbstractForDfltRuntime;
-import org.apache.isis.core.runtime.authentication.standard.Authenticator;
-
-public class AuthenticationManagerSupportingInMemoryRegistrationInstaller extends AuthenticationManagerStandardInstallerAbstractForDfltRuntime {
-
- public AuthenticationManagerSupportingInMemoryRegistrationInstaller() {
- super("demo");
- }
-
- @Override
- protected List<Authenticator> createAuthenticators(final IsisConfiguration configuration) {
- return Lists.<Authenticator> newArrayList(
- // new FileAuthenticator(configuration),
- new AuthenticatorInMemory(configuration));
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticatorInMemory.java
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticatorInMemory.java b/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticatorInMemory.java
deleted file mode 100644
index b76cf00..0000000
--- a/example/application/onlinedemo/webapp/src/main/java/org/apache/isis/example/application/onlinedemo/auth/AuthenticatorInMemory.java
+++ /dev/null
@@ -1,81 +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.onlinedemo.auth;
-
-import java.util.Map;
-
-import com.google.common.base.Objects;
-import com.google.common.collect.Maps;
-
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.runtime.authentication.AuthenticationRequest;
-import org.apache.isis.core.runtime.authentication.AuthenticationRequestPassword;
-import org.apache.isis.core.runtime.authentication.RegistrationDetails;
-import org.apache.isis.core.runtime.authentication.standard.AuthenticatorAbstract;
-import org.apache.isis.core.runtime.authentication.standard.Registrar;
-import org.apache.isis.core.runtime.authentication.standard.RegistrationDetailsPassword;
-
-public class AuthenticatorInMemory extends AuthenticatorAbstract implements Registrar {
-
- private static AuthenticatorInMemory instance;
-
- /**
- * Rather nasty, but is required to make available to the Users repository.
- */
- public static AuthenticatorInMemory getInstance() {
- return instance;
- }
-
- private final Map<String, String> passwordsByUser = Maps.newHashMap();
-
- public AuthenticatorInMemory(final IsisConfiguration configuration) {
- super(configuration);
- instance = this;
- }
-
- @Override
- public final boolean canAuthenticate(final Class<? extends AuthenticationRequest> authenticationRequestClass) {
- return AuthenticationRequestPassword.class.isAssignableFrom(authenticationRequestClass);
- }
-
- @Override
- public boolean isValid(final AuthenticationRequest authRequest) {
- final AuthenticationRequestPassword request = (AuthenticationRequestPassword) authRequest;
- final String userId = request.getName();
- return Objects.equal(request.getPassword(), passwordsByUser.get(userId));
- }
-
- @Override
- public boolean canRegister(final Class<? extends RegistrationDetails> registrationDetailsClass) {
- return RegistrationDetailsPassword.class.isAssignableFrom(registrationDetailsClass);
- }
-
- @Override
- public boolean register(final RegistrationDetails registrationDetails) {
- final RegistrationDetailsPassword registration = (RegistrationDetailsPassword) registrationDetails;
- final String userId = registration.getUser();
- if (passwordsByUser.containsKey(userId)) {
- return false;
- }
- passwordsByUser.put(userId, registration.getPassword());
- return true;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.pdn
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.pdn b/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.pdn
deleted file mode 100644
index e343a39..0000000
Binary files a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.pdn and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.png
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.png b/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.png
deleted file mode 100644
index 05cb365..0000000
Binary files a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-banner.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.pdn
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.pdn b/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.pdn
deleted file mode 100644
index 7438417..0000000
Binary files a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.pdn and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.png
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.png b/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.png
deleted file mode 100644
index 1a2f96a..0000000
Binary files a/example/application/onlinedemo/webapp/src/main/jettyconsole/isis-onlinedemo-banner.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/resources/images/Default.png
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/resources/images/Default.png b/example/application/onlinedemo/webapp/src/main/resources/images/Default.png
deleted file mode 100644
index 8409e46..0000000
Binary files a/example/application/onlinedemo/webapp/src/main/resources/images/Default.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/a23e6e73/example/application/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties
----------------------------------------------------------------------
diff --git a/example/application/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties b/example/application/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties
deleted file mode 100644
index 6375d4a..0000000
--- a/example/application/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties
+++ /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.
-
-
-# these are the services/repositories that are instantiated by the
-# framework. These are automatically injected into any domain object
-# that declares a dependency. Those that are not hidden are also
-# shown in the user interface.
-isis.services.prefix = org.apache.isis.example.application.onlinedemo
-isis.services = dom.items.ToDoItems,\
- objstore.dflt.items.Categories,\
- fixture.items.DemoFixturesDefault
-
-
-# the online demo does not use the framework to setup fixtures;
-# instead users can install their own fixtures
-isis.fixtures.prefix= org.apache.isis.example.application.onlinedemo
-//isis.fixtures= fixture.LogonAsSvenFixture,fixture.items.ToDoItemsFixture
-
-
-
-# the authentication mechanism is configurable. the onlinedemo uses its own implementation,
-# which uses an in-memory list of registered users.
-isis.authentication=org.apache.isis.examples.onlinedemo.auth.AuthenticationManagerSupportingInMemoryRegistrationInstaller
-
-
-# the framework supports authorization; the usual implementation maps roles to permissions.
-# this is switched off for the onlinedemo, however
-#isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl
-
-
-# the default authorization mechanism can be put into "learn" mode, so that it allows all
-# requests through, and writes out the permission entries that were checked.
-#isis.authorization.learn=true
-
-
-# configure the profile store. this facility is not supported by the viewers used in
-# the onlinedemo, so is included here for completeness only
-isis.user-profile-store=in-memory
-
-
-# configure the object store. using the inmemory objectstore means that all data will
-# be lost when the app is restarted. it is commonly used for prototyping and testing
-isis.persistor=in-memory