Return-Path: X-Original-To: apmail-incubator-isis-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-isis-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1204E9638 for ; Sat, 26 Nov 2011 21:38:28 +0000 (UTC) Received: (qmail 71365 invoked by uid 500); 26 Nov 2011 21:38:28 -0000 Delivered-To: apmail-incubator-isis-commits-archive@incubator.apache.org Received: (qmail 71348 invoked by uid 500); 26 Nov 2011 21:38:27 -0000 Mailing-List: contact isis-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: isis-dev@incubator.apache.org Delivered-To: mailing list isis-commits@incubator.apache.org Received: (qmail 71341 invoked by uid 99); 26 Nov 2011 21:38:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 21:38:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 21:38:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E74852388860; Sat, 26 Nov 2011 21:38:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1206608 [1/2] - in /incubator/isis/trunk/examples/onlinedemo: ./ dom/ dom/src/ dom/src/main/ dom/src/main/java/ dom/src/main/java/dom/ dom/src/main/java/dom/todo/ dom/src/main/java/org/ dom/src/main/java/org/apache/ dom/src/main/java/org/a... Date: Sat, 26 Nov 2011 21:38:02 -0000 To: isis-commits@incubator.apache.org From: danhaywood@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111126213803.E74852388860@eris.apache.org> Author: danhaywood Date: Sat Nov 26 21:37:57 2011 New Revision: 1206608 URL: http://svn.apache.org/viewvc?rev=1206608&view=rev Log: ISIS-130: take-on of initial cut of onlinedemo Added: incubator/isis/trunk/examples/onlinedemo/ incubator/isis/trunk/examples/onlinedemo/dom/ incubator/isis/trunk/examples/onlinedemo/dom/pom.xml incubator/isis/trunk/examples/onlinedemo/dom/src/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/dom/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/dom/todo/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItem.java incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItemRepository.java incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/images/ incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/images/ToDoItem.gif (with props) incubator/isis/trunk/examples/onlinedemo/fixture/ incubator/isis/trunk/examples/onlinedemo/fixture/pom.xml incubator/isis/trunk/examples/onlinedemo/fixture/src/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/fixture/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/fixture/todo/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/LogonAsSvenFixture.java incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ToDoItemsFixture.java incubator/isis/trunk/examples/onlinedemo/objstore-default/ incubator/isis/trunk/examples/onlinedemo/objstore-default/pom.xml incubator/isis/trunk/examples/onlinedemo/objstore-default/src/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/objstore/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/objstore/dflt/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/objstore/dflt/todo/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ToDoItemRepositoryDefault.java incubator/isis/trunk/examples/onlinedemo/pom.xml incubator/isis/trunk/examples/onlinedemo/webapp/ incubator/isis/trunk/examples/onlinedemo/webapp/ide/ incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/ incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/ incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/onlinedemo-webapp.launch incubator/isis/trunk/examples/onlinedemo/webapp/pom.xml incubator/isis/trunk/examples/onlinedemo/webapp/src/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/images/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/images/Default.png (with props) incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/logging.properties incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.allow incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.passwords incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/viewer_html.properties incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/default.css incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/images/ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/images/banner-bg.png (with props) incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/images/banner.png (with props) Added: incubator/isis/trunk/examples/onlinedemo/dom/pom.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/dom/pom.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/dom/pom.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/dom/pom.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,38 @@ + + + 4.0.0 + + + org.apache.isis.examples + onlinedemo + 0.2.0-incubating-SNAPSHOT + + + onlinedemo-dom + Quickstart DOM + + + + org.apache.isis + applib + + + + Added: incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItem.java URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItem.java?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItem.java (added) +++ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItem.java Sat Nov 26 21:37:57 2011 @@ -0,0 +1,86 @@ +/* + * 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.examples.onlinedemo.dom.todo; + +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.Optional; + +public class ToDoItem extends AbstractDomainObject { + + // {{ Title + public String title() { + return getDescription(); + } + // }} + + + // {{ Description + private String description; + + @MemberOrder(sequence = "1") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + // }} + + + // {{ Done + private boolean done; + + @Disabled + @MemberOrder(sequence = "3") + public boolean getDone() { + return done; + } + + public void setDone(boolean done) { + this.done = done; + } + // }} + + + + // {{ markAsDone + @MemberOrder(sequence = "1") + public void markAsDone() { + setDone(true); + } + public String disableMarkAsDone() { + return done?"Already done":null; + } + // }} + + // {{ markAsNotDone + @MemberOrder(sequence = "2") + public void markAsNotDone() { + setDone(false); + } + public String disableMarkAsNotDone() { + return !done?"Not yet done":null; + } + // }} + +} Added: incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItemRepository.java URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItemRepository.java?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItemRepository.java (added) +++ incubator/isis/trunk/examples/onlinedemo/dom/src/main/java/org/apache/isis/examples/onlinedemo/dom/todo/ToDoItemRepository.java Sat Nov 26 21:37:57 2011 @@ -0,0 +1,39 @@ +/* + * 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.examples.onlinedemo.dom.todo; + +import java.util.List; + +import org.apache.isis.applib.annotation.MemberOrder; +import org.apache.isis.applib.annotation.Named; +import org.apache.isis.applib.annotation.QueryOnly; + +@Named("ToDos") +public interface ToDoItemRepository { + + @QueryOnly + @MemberOrder(sequence="1") + public List notYetDone(); + + @MemberOrder(sequence="2") + public ToDoItem newToDo( + @Named("Description") String description); + +} Added: incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/images/ToDoItem.gif URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/images/ToDoItem.gif?rev=1206608&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/isis/trunk/examples/onlinedemo/dom/src/main/resources/images/ToDoItem.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/isis/trunk/examples/onlinedemo/fixture/pom.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/fixture/pom.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/fixture/pom.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/fixture/pom.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,38 @@ + + + 4.0.0 + + + org.apache.isis.examples + onlinedemo + 0.2.0-incubating-SNAPSHOT + + + onlinedemo-fixture + Quickstart Fixtures + + + + ${project.groupId} + onlinedemo-objstore-dflt + + + + Added: incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/LogonAsSvenFixture.java URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/LogonAsSvenFixture.java?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/LogonAsSvenFixture.java (added) +++ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/LogonAsSvenFixture.java Sat Nov 26 21:37:57 2011 @@ -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. + */ + + +package org.apache.isis.examples.onlinedemo.fixture; + +import org.apache.isis.applib.fixtures.LogonFixture; + +public class LogonAsSvenFixture extends LogonFixture { + + public LogonAsSvenFixture() { + super("sven"); + } + +} Added: incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ToDoItemsFixture.java URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ToDoItemsFixture.java?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ToDoItemsFixture.java (added) +++ incubator/isis/trunk/examples/onlinedemo/fixture/src/main/java/org/apache/isis/examples/onlinedemo/fixture/todo/ToDoItemsFixture.java Sat Nov 26 21:37:57 2011 @@ -0,0 +1,50 @@ +/* + * 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.examples.onlinedemo.fixture.todo; + + +import org.apache.isis.applib.fixtures.AbstractFixture; +import org.apache.isis.examples.onlinedemo.dom.todo.ToDoItem; +import org.apache.isis.examples.onlinedemo.dom.todo.ToDoItemRepository; + + +public class ToDoItemsFixture extends AbstractFixture { + + @Override + public void install() { + createToDoItem("Buy milk"); + createToDoItem("Pick up laundry"); + createToDoItem("Buy stamps"); + createToDoItem("Write blog post"); + createToDoItem("Organize brown bag"); + } + + private ToDoItem createToDoItem(String description) { + return toDoItemRepository.newToDo(description); + } + + + private ToDoItemRepository toDoItemRepository; + public void setToDoItemRepository(ToDoItemRepository toDoItemRepository) { + this.toDoItemRepository = toDoItemRepository; + } + +} Added: incubator/isis/trunk/examples/onlinedemo/objstore-default/pom.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/objstore-default/pom.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/objstore-default/pom.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/objstore-default/pom.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,41 @@ + + + 4.0.0 + + + org.apache.isis.examples + onlinedemo + 0.2.0-incubating-SNAPSHOT + + + onlinedemo-objstore-dflt + Quickstart Repositories (for ObjectStore Default) + + + + + + ${project.groupId} + onlinedemo-dom + + + + + Added: incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ToDoItemRepositoryDefault.java URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ToDoItemRepositoryDefault.java?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ToDoItemRepositoryDefault.java (added) +++ incubator/isis/trunk/examples/onlinedemo/objstore-default/src/main/java/org/apache/isis/examples/onlinedemo/objstore/dflt/todo/ToDoItemRepositoryDefault.java Sat Nov 26 21:37:57 2011 @@ -0,0 +1,66 @@ +/* + * 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.examples.onlinedemo.objstore.dflt.todo; + +import java.util.List; + + +import org.apache.isis.applib.AbstractFactoryAndRepository; +import org.apache.isis.applib.filter.Filter; +import org.apache.isis.examples.onlinedemo.dom.todo.ToDoItem; +import org.apache.isis.examples.onlinedemo.dom.todo.ToDoItemRepository; + +public class ToDoItemRepositoryDefault extends AbstractFactoryAndRepository implements ToDoItemRepository { + + // {{ Id, iconName + @Override + public String getId() { + return "toDoItems"; + } + + public String iconName() { + return "ToDoItem"; + } + // }} + + + @Override + public List notYetDone() { + return allMatches(ToDoItem.class, new Filter() { + @Override + public boolean accept(ToDoItem t) { + return !t.getDone(); + } + }); + } + + + // {{ NewToDo + @Override + public ToDoItem newToDo(String description) { + ToDoItem toDoItem = newTransientInstance(ToDoItem.class); + toDoItem.setDescription(description); + persist(toDoItem); + return toDoItem; + } + // }} + + +} Added: incubator/isis/trunk/examples/onlinedemo/pom.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/pom.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/pom.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/pom.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,576 @@ + + + 4.0.0 + + org.apache.isis.examples + onlinedemo + 0.2.0-incubating-SNAPSHOT + + Quickstart App + + pom + + + 0.2.0-incubating-SNAPSHOT + + + + + apache.snapshots + Apache Snapshots + https://repository.apache.org/content/repositories/snapshots/ + + false + + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.1 + + 1.6 + 1.6 + + + + source + compile + + + test + test-compile + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.5 + + + **/Test*.java + + true + false + ${project.build.directory}/surefire-reports + + + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.5 + + + **/Test*.java + + false + + + + test + + + + + + org.mortbay.jetty + maven-jetty-plugin + 6.1.25 + + + + org.apache.maven.plugins + maven-shade-plugin + 1.4 + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.6 + + + + run + + + + + + + org.simplericity.jettyconsole + jetty-console-maven-plugin + 1.43 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-surefire-report-plugin + + + + + + + + + + ${project.groupId} + onlinedemo-dom + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + onlinedemo-fixture + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + onlinedemo-objstore-dflt + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + onlinedemo-viewer-html + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + onlinedemo-viewer-json + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + onlinedemo-tests-bdd + 0.2.0-incubating-SNAPSHOT + + + + ${project.groupId} + tests-junit + ${project.version} + + + + + + + + org.apache.isis + applib + ${isis.version} + + + org.apache.isis + applib + javadoc + ${isis.version} + + + + + org.apache.isis.core + commons + ${isis.version} + + + org.apache.isis.core + metamodel + ${isis.version} + + + org.apache.isis.core + progmodel + ${isis.version} + + + org.apache.isis.core + runtime + ${isis.version} + + + org.apache.isis.core + webapp + ${isis.version} + + + + + org.apache.isis.progmodels + dflt + ${isis.version} + + + + + org.apache.isis.progmodels + wrapper + ${isis.version} + + + org.apache.isis.progmodels + wrapper-applib + ${isis.version} + + + org.apache.isis.progmodels + wrapper-metamodel + ${isis.version} + + + + + org.apache.isis.progmodels + groovy + ${isis.version} + + + org.apache.isis.progmodels + groovy-applib + ${isis.version} + + + org.apache.isis.progmodels + groovy-metamodel + ${isis.version} + + + + + org.apache.isis.security + dflt + ${isis.version} + + + + + org.apache.isis.security + ldap + ${isis.version} + + + + + org.apache.isis.security + file + ${isis.version} + + + + + org.apache.isis.runtimes.dflt + runtime + ${isis.version} + + + org.apache.isis.runtimes.dflt + monitoring + ${isis.version} + + + org.apache.isis.runtimes.dflt + webapp + ${isis.version} + + + org.apache.isis.runtimes.dflt + webserver + ${isis.version} + + + org.apache.isis.runtimes.dflt.bytecode + dflt + ${isis.version} + + + org.apache.isis.runtimes.dflt.bytecode + identity + ${isis.version} + + + org.apache.isis.runtimes.dflt.bytecode + javassist + ${isis.version} + + + + + org.apache.isis.runtimes.dflt.objectstores + dflt + ${isis.version} + + + + + org.apache.isis.runtimes.dflt.objectstores + xml + ${isis.version} + + + + + org.apache.isis.runtimes.dflt.objectstores + sql-impl + ${isis.version} + + + + + + + + + org.apache.isis.runtimes.dflt.profilestores + dflt + ${isis.version} + + + + + org.apache.isis.runtimes.dflt.profilestores + xml + ${isis.version} + + + + + + + + org.apache.isis.runtimes + embedded + ${isis.version} + + + + + + org.apache.isis.viewer + html + ${isis.version} + + + + + org.apache.isis.viewer + json + ${isis.version} + + + org.apache.isis.viewer + json-applib + ${isis.version} + + + org.apache.isis.viewer + json-viewer + ${isis.version} + + + + + org.apache.isis.viewer + junit + ${isis.version} + + + + + org.apache.isis.viewer + bdd + ${isis.version} + + + org.apache.isis.viewer + bdd-common + ${isis.version} + + + org.apache.isis.viewer + bdd-concordion + ${isis.version} + + + + junit + junit + 4.8.2 + + + + + + + + + + + + + + + + + + dom + fixture + objstore-default + webapp + + Added: incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/onlinedemo-webapp.launch URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/onlinedemo-webapp.launch?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/onlinedemo-webapp.launch (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/ide/eclipse/launch/onlinedemo-webapp.launch Sat Nov 26 21:37:57 2011 @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + Added: incubator/isis/trunk/examples/onlinedemo/webapp/pom.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/pom.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/pom.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/pom.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,129 @@ + + + 4.0.0 + + + org.apache.isis.examples + onlinedemo + 0.2.0-incubating-SNAPSHOT + + + onlinedemo-webapp + Online Demo Webapp with HTML+JSON Viewers + + war + + + + + org.mortbay.jetty + maven-jetty-plugin + + + + + org.simplericity.jettyconsole + jetty-console-maven-plugin + + + + createconsole + + package + + + + + + + + + + + ${project.groupId} + onlinedemo-dom + + + + ${project.groupId} + onlinedemo-fixture + + + + + + org.apache.isis.viewer + html + + + + org.apache.isis.viewer + json-viewer + + + + + org.apache.isis.runtimes.dflt.bytecode + dflt + + + org.apache.isis.runtimes.dflt.objectstores + dflt + + + org.apache.isis.runtimes.dflt.objectstores + xml + + + org.apache.isis.runtimes.dflt.profilestores + dflt + + + org.apache.isis.runtimes.dflt.profilestores + xml + + + + + org.apache.isis.progmodels + dflt + + + + + org.apache.isis.security + file + + + org.apache.isis.security + dflt + + + + + org.apache.isis.runtimes.dflt + webserver + runtime + true + + + + + Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/images/Default.png URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/images/Default.png?rev=1206608&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/resources/images/Default.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/isis.properties Sat Nov 26 21:37:57 2011 @@ -0,0 +1,45 @@ +# 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.examples.onlinedemo.objstore.dflt +isis.services = todo.ToDoItemRepositoryDefault + +isis.fixtures.prefix= org.apache.isis.examples.onlinedemo.fixture +//isis.fixtures= LogonAsSvenFixture,todo.ToDoItemsFixture +isis.fixtures= todo.ToDoItemsFixture + +isis.exploration.users=sven, dick, bob + + +isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.dflt.classsubstitutor.CglibClassSubstitutor +#isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.javassist.classsubstitutor.JavassistClassSubstitutor +#isis.reflector.class-substitutor=org.apache.isis.runtimes.dflt.bytecode.identity.classsubstitutor.ClassSubstitutorIdentity + +isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.dflt.objectfactory.CglibObjectFactory +#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.javassist.objectfactory.JavassistObjectFactory +#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.identity.objectfactory.ObjectFactoryBasic + + +isis.persistor.domain-object-container=org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault +#isis.persistor.domain-object-container=org.apache.isis.progmodel.wrapper.metamodel.DomainObjectContainerWrapperFactory + + +#isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl +#isis.authorization.learn=true + +isis.user-profile-store=in-memory +isis.persistor=in-memory +#isis.xmlos.dir=/tmp/xml \ No newline at end of file Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/logging.properties URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/logging.properties?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/logging.properties (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/logging.properties Sat Nov 26 21:37:57 2011 @@ -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 Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.allow URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.allow?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.allow (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.allow Sat Nov 26 21:37:57 2011 @@ -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. Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.passwords URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.passwords?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.passwords (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/security_file.passwords Sat Nov 26 21:37:57 2011 @@ -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 Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/viewer_html.properties URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/viewer_html.properties?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/viewer_html.properties (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/viewer_html.properties Sat Nov 26 21:37:57 2011 @@ -0,0 +1,19 @@ +# 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.viewer.html.header= +isis.viewer.html.footer= +isis.viewer.html.port=8080 Added: incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml?rev=1206608&view=auto ============================================================================== --- incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/isis/trunk/examples/onlinedemo/webapp/src/main/webapp/WEB-INF/web.xml Sat Nov 26 21:37:57 2011 @@ -0,0 +1,190 @@ + + + + + Apache Isis HTML Viewer + + + org.apache.isis.runtimes.dflt.webapp.IsisWebAppBootstrapper + + + + org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap + + + + isis.viewers + html,json + + + + viewer-html.suffix + htmlviewer + + + + javax.ws.rs.Application + org.apache.isis.viewer.json.viewer.JsonApplication + + + + IsisSessionFilterForHtml + org.apache.isis.runtimes.dflt.webapp.IsisSessionFilter + + logonPage + /logon.htmlviewer + + + cacheAuthSessionOnHttpSession + true + + + + IsisSessionFilterForHtml + *.htmlviewer + + + IsisSessionFilterForHtml + /htmlviewer + + + + IsisSessionFilterForJson + org.apache.isis.runtimes.dflt.webapp.IsisSessionFilter + + + authenticationSessionLookupStrategy + org.apache.isis.viewer.json.viewer.authentication.AuthenticationSessionLookupStrategyHeader + + + cacheAuthSessionOnHttpSession + false + + + logonPage + /notAuthenticated + + + + IsisSessionFilterForJson + * + + + + ResourceCachingFilter + org.apache.isis.core.webapp.content.ResourceCachingFilter + + CacheTime + 86400 + + + + ResourceCachingFilter + *.css + + + ResourceCachingFilter + *.png + + + ResourceCachingFilter + *.jpg + + + ResourceCachingFilter + *.gif + + + + Logon + org.apache.isis.viewer.html.servlet.LogonServlet + + startPage + start.htmlviewer + + + + Logon + /logon.htmlviewer + + + + Forward + org.apache.isis.core.webapp.routing.ForwardingServlet + + forwardTo + logon.htmlviewer + + + + Forward + /htmlviewer + + + + Controller + org.apache.isis.viewer.html.servlet.ControllerServlet + + + Controller + *.htmlviewer + + + + RestEasy + org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher + + + RestEasy + / + + + + Resource + org.apache.isis.core.webapp.content.ResourceServlet + + + Resource + *.css + + + Resource + *.png + + + Resource + *.jpg + + + Resource + *.gif + + + Resource + *.js + + + Resource + *.html + + +