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 2016/05/21 07:10:38 UTC

[37/56] [abbrv] [partial] isis git commit: ISIS-1335: deleting the mothballed directory.

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/objectstore/xml/src/test/java/org/apache/isis/objectstore/xml/internal/data/xml/XmlDataManagerTest_instances.java
----------------------------------------------------------------------
diff --git a/mothballed/component/objectstore/xml/src/test/java/org/apache/isis/objectstore/xml/internal/data/xml/XmlDataManagerTest_instances.java b/mothballed/component/objectstore/xml/src/test/java/org/apache/isis/objectstore/xml/internal/data/xml/XmlDataManagerTest_instances.java
deleted file mode 100644
index 3cb5050..0000000
--- a/mothballed/component/objectstore/xml/src/test/java/org/apache/isis/objectstore/xml/internal/data/xml/XmlDataManagerTest_instances.java
+++ /dev/null
@@ -1,315 +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.objectstore.xml.internal.data.xml;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.io.File;
-import java.io.FilenameFilter;
-
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-
-import org.apache.isis.core.commons.xml.XmlFile;
-import org.apache.isis.core.integtestsupport.IsisSystemWithFixtures;
-import org.apache.isis.core.metamodel.adapter.oid.OidMarshaller;
-import org.apache.isis.core.metamodel.adapter.oid.RootOid;
-import org.apache.isis.core.metamodel.adapter.oid.RootOidDefault;
-import org.apache.isis.core.metamodel.spec.ObjectSpecId;
-import org.apache.isis.core.tck.dom.xmlos.TeamDomainRepository;
-import org.apache.isis.objectstore.xml.XmlPersistenceMechanismInstaller;
-import org.apache.isis.objectstore.xml.internal.clock.DefaultClock;
-import org.apache.isis.objectstore.xml.internal.data.ObjectData;
-import org.apache.isis.objectstore.xml.internal.data.ObjectDataVector;
-import org.apache.isis.objectstore.xml.internal.version.FileVersion;
-
-public class XmlDataManagerTest_instances {
-    
-    @Rule
-    public IsisSystemWithFixtures iswf = IsisSystemWithFixtures.builder()
-        .with(new XmlPersistenceMechanismInstaller())
-        .withServices(new TeamDomainRepository())
-        .build();
-
-    protected XmlDataManager manager;
-    protected final int SIZE = 5;
-
-    private RootOid oids[];
-    private ObjectData data[];
-    private ObjectData pattern;
-
-    @Before
-    public void setUp() throws Exception {
-
-        clearTestDirectory();
-        final String charset = Utils.lookupCharset(iswf.getIsisSystem().getConfiguration());
-        manager = new XmlDataManager(new XmlFile(charset, "tmp/tests"));
-
-        FileVersion.setClock(new DefaultClock());
-
-        oids = new RootOid[SIZE];
-        data = new ObjectData[SIZE];
-
-        pattern = new ObjectData(RootOidDefault.deString("RLE:1", new OidMarshaller()), FileVersion.create("user", 13));
-        for (int i = 0; i < SIZE; i++) {
-            oids[i] = RootOidDefault.create(ObjectSpecId.of("RLE"), ""+i);
-            data[i] = new ObjectData(oids[i], FileVersion.create("user", 13));
-            manager.insertObject(data[i]);
-        }
-    }
-
-    protected static void clearTestDirectory() {
-        final File directory = new File("tmp" + File.separator + "tests");
-        final String[] files = directory.list(new FilenameFilter() {
-            @Override
-            public boolean accept(final File arg0, final String name) {
-                return name.endsWith(".xml");
-            }
-        });
-
-        if (files != null) {
-            for (final String file : files) {
-                new File(directory, file).delete();
-            }
-        }
-    }
-
-
-    @Test
-    public void testNumberOfInstances() {
-        assertEquals(SIZE, manager.numberOfInstances(pattern));
-    }
-
-    @Test
-    public void testRemove() throws Exception {
-        final RootOid oid = oids[2];
-        manager.remove(oid);
-
-        assertEquals(SIZE - 1, manager.numberOfInstances(pattern));
-
-        final ObjectDataVector instances = manager.getInstances(pattern);
-        for (int i = 0; i < instances.size(); i++) {
-            assertFalse(instances.element(i) == data[2]);
-        }
-
-        assertNull((manager.loadData(oid)));
-    }
-
-    @Test
-    public void testSaveObject() throws Exception {
-        data[2].set("Person", RootOidDefault.create(ObjectSpecId.of("PER"), ""+231));
-        data[2].set("Name", "Fred");
-        manager.save(data[2]);
-
-        assertTrue(manager.getInstances(pattern).contains(data[2]));
-        final ObjectData read = (ObjectData) manager.loadData(oids[2]);
-        assertEquals(data[2], read);
-        assertEquals(data[2].get("Name"), read.get("Name"));
-        assertEquals(data[2].get("Person"), read.get("Person"));
-    }
-
-    /*
-     * public void xxxtestInsertValues() throws ObjectStoreException {
-     * ObjectSpecification type =
-     * Isis.getSpecificationLoader().loadSpecification
-     * (ValueObjectExample.class.getName()); SerialOid oid = new SerialOid(99);
-     * ObjectData data = new ObjectData(type, oid);
-     * 
-     * 
-     * Date date1 = new Date(); date1.add(1,2,3); data.saveValue("Date", date1);
-     * 
-     * FloatingPointNumber floatingPoint1 = new FloatingPointNumber();
-     * floatingPoint1.setValue(3.145); data.saveValue("Floating Point",
-     * floatingPoint1);
-     * 
-     * Label label1 = new Label(); label1.setValue("Labelled");
-     * data.saveValue("Label", label1);
-     * 
-     * Logical logical1 = new Logical(); logical1.setValue(true);
-     * data.saveValue("Logical", logical1);
-     * 
-     * Money money1 = new Money(); money1.setValue(1233.45);
-     * data.saveValue("Money", money1);
-     * 
-     * Option option1 = new Option(new String[] {"Fred", "Sam", "joe"}, 1);
-     * data.saveValue("Option", option1);
-     * 
-     * Percentage percentage1 = new Percentage(); percentage1.setValue(95);
-     * data.saveValue("Percentage", percentage1);
-     * 
-     * TextString textString1 = new TextString("Fred");
-     * data.saveValue("Text String", textString1);
-     * 
-     * DateTime timestamp1 = new DateTime(); timestamp1.add(1,2,3);
-     * data.saveValue("Time Stamp", timestamp1);
-     * 
-     * Time time1 = new Time(); time1.add(1,30); data.saveValue("Time", time1);
-     * 
-     * URLString urlString1 = new URLString("http://isis.apache.org/");
-     * data.saveValue("Url String", urlString1);
-     * 
-     * WholeNumber number1 = new WholeNumber(); number1.setValue(435422);
-     * data.saveValue("Whole Number", number1);
-     * 
-     * 
-     * manager.insert(data);
-     * 
-     * 
-     * 
-     * ObjectData object = manager.loadObjectData(oid);
-     * 
-     * Date date2 = new Date(); object.restoreValue("Date", date2);
-     * assertEquals(date1, date2);
-     * 
-     * FloatingPointNumber floatingPoint2 = new FloatingPointNumber();
-     * object.restoreValue("Floating Point", floatingPoint2);
-     * assertEquals(floatingPoint1, floatingPoint2);
-     * 
-     * Label label2 = new Label(); object.restoreValue("Label", label2);
-     * assertEquals(label1, label2);
-     * 
-     * Logical logical2 = new Logical(); object.restoreValue("Logical",
-     * logical2); assertEquals(logical1, logical2);
-     * 
-     * Money money2 = new Money(); object.restoreValue("Money", money2);
-     * assertEquals(money1, money2);
-     * 
-     * Option option2 = new Option(new String [] {"Fred", "Sam", "joe"});
-     * object.restoreValue("Option", option2); assertEquals(option1, option2);
-     * 
-     * Percentage percentage2 = new Percentage();
-     * object.restoreValue("Percentage", percentage2); assertEquals(percentage1,
-     * percentage2);
-     * 
-     * Time time2 = new Time(); object.restoreValue("Time", time2);
-     * assertEquals(time1, time2);
-     * 
-     * DateTime timestamp2 = new DateTime(); object.restoreValue("Time Stamp",
-     * timestamp2); assertEquals(timestamp1, timestamp2);
-     * 
-     * TextString textString2 = new TextString();
-     * object.restoreValue("Text String", textString2);
-     * assertEquals(textString1, textString2);
-     * 
-     * URLString urlString2 = new URLString(); object.restoreValue("Url String",
-     * urlString2); assertEquals(urlString1, urlString2);
-     * 
-     * WholeNumber number2 = new WholeNumber();
-     * object.restoreValue("Whole Number", number2); assertEquals(number1,
-     * number2); }
-     * 
-     * public void xxxtestSaveValues() throws ObjectStoreException {
-     * ObjectSpecification type =
-     * Isis.getSpecificationLoader().loadSpecification
-     * (ValueObjectExample.class.getName()); SerialOid oid = new SerialOid(99);
-     * ObjectData data = new ObjectData(type, oid);
-     * 
-     * manager.insert(data);
-     * 
-     * 
-     * Date date1 = new Date(); date1.add(1,2,3); data.saveValue("Date", date1);
-     * 
-     * FloatingPointNumber floatingPoint1 = new FloatingPointNumber();
-     * floatingPoint1.setValue(3.145); data.saveValue("Floating Point",
-     * floatingPoint1);
-     * 
-     * Label label1 = new Label(); label1.setValue("Labelled");
-     * data.saveValue("Label", label1);
-     * 
-     * Logical logical1 = new Logical(); logical1.setValue(true);
-     * data.saveValue("Logical", logical1);
-     * 
-     * Money money1 = new Money(); money1.setValue(1233.45);
-     * data.saveValue("Money", money1);
-     * 
-     * Option option1 = new Option(new String[] {"Fred", "Sam", "joe"}, 1);
-     * data.saveValue("Option", option1);
-     * 
-     * Percentage percentage1 = new Percentage(); percentage1.setValue(95);
-     * data.saveValue("Percentage", percentage1);
-     * 
-     * TextString textString1 = new TextString("Fred");
-     * data.saveValue("Text String", textString1);
-     * 
-     * DateTime timestamp1 = new DateTime(); timestamp1.add(1,2,3);
-     * data.saveValue("Time Stamp", timestamp1);
-     * 
-     * Time time1 = new Time(); time1.add(1,30); data.saveValue("Time", time1);
-     * 
-     * URLString urlString1 = new URLString("http://isis.apache.org/");
-     * data.saveValue("Url String", urlString1);
-     * 
-     * WholeNumber number1 = new WholeNumber(); number1.setValue(435422);
-     * data.saveValue("Whole Number", number1);
-     * 
-     * 
-     * manager.save(data);
-     * 
-     * 
-     * 
-     * ObjectData object = manager.loadObjectData(oid);
-     * 
-     * Date date2 = new Date(); object.restoreValue("Date", date2);
-     * assertEquals(date1, date2);
-     * 
-     * FloatingPointNumber floatingPoint2 = new FloatingPointNumber();
-     * object.restoreValue("Floating Point", floatingPoint2);
-     * assertEquals(floatingPoint1, floatingPoint2);
-     * 
-     * Label label2 = new Label(); object.restoreValue("Label", label2);
-     * assertEquals(label1, label2);
-     * 
-     * Logical logical2 = new Logical(); object.restoreValue("Logical",
-     * logical2); assertEquals(logical1, logical2);
-     * 
-     * Money money2 = new Money(); object.restoreValue("Money", money2);
-     * assertEquals(money1, money2);
-     * 
-     * Option option2 = new Option(new String [] {"Fred", "Sam", "joe"});
-     * object.restoreValue("Option", option2); assertEquals(option1, option2);
-     * 
-     * Percentage percentage2 = new Percentage();
-     * object.restoreValue("Percentage", percentage2); assertEquals(percentage1,
-     * percentage2);
-     * 
-     * Time time2 = new Time(); object.restoreValue("Time", time2);
-     * assertEquals(time1, time2);
-     * 
-     * DateTime timestamp2 = new DateTime(); object.restoreValue("Time Stamp",
-     * timestamp2); assertEquals(timestamp1, timestamp2);
-     * 
-     * TextString textString2 = new TextString();
-     * object.restoreValue("Text String", textString2);
-     * assertEquals(textString1, textString2);
-     * 
-     * URLString urlString2 = new URLString(); object.restoreValue("Url String",
-     * urlString2); assertEquals(urlString1, urlString2);
-     * 
-     * WholeNumber number2 = new WholeNumber();
-     * object.restoreValue("Whole Number", number2); assertEquals(number1,
-     * number2);
-     * 
-     * }
-     */
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/objectstore/xml/tmp/tests/RLE/99.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/objectstore/xml/tmp/tests/RLE/99.xml b/mothballed/component/objectstore/xml/tmp/tests/RLE/99.xml
deleted file mode 100644
index de9edc2..0000000
--- a/mothballed/component/objectstore/xml/tmp/tests/RLE/99.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-<isis oid="RLE:99" user="tester" ver="D">
-  <value field="Name">Harry</value>
-  <association field="Person" oid="RLE:101"/>
-</isis>
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/objectstore/xml/tmp/tests/TEA/99.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/objectstore/xml/tmp/tests/TEA/99.xml b/mothballed/component/objectstore/xml/tmp/tests/TEA/99.xml
deleted file mode 100644
index 262d737..0000000
--- a/mothballed/component/objectstore/xml/tmp/tests/TEA/99.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-<isis oid="TEA:99" user="tester" ver="D">
-</isis>
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/objectstore/xml/tmp/tests/oid.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/objectstore/xml/tmp/tests/oid.xml b/mothballed/component/objectstore/xml/tmp/tests/oid.xml
deleted file mode 100644
index a1c3e8e..0000000
--- a/mothballed/component/objectstore/xml/tmp/tests/oid.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-<number>4</number>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/objectstore/xml/xml/objects/services.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/objectstore/xml/xml/objects/services.xml b/mothballed/component/objectstore/xml/xml/objects/services.xml
deleted file mode 100644
index 7a8c8e4..0000000
--- a/mothballed/component/objectstore/xml/xml/objects/services.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-<services>
-  <service oid="org.apache.isis.core.tck.dom.xmlos.TeamDomainRepository:1390427852616"/>
-</services>
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/NOTICE
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/NOTICE b/mothballed/component/profilestore/sql/NOTICE
deleted file mode 100755
index ba21d0c..0000000
--- a/mothballed/component/profilestore/sql/NOTICE
+++ /dev/null
@@ -1,7 +0,0 @@
-Apache Isis
-Copyright 2010-2013 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/pom.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/pom.xml b/mothballed/component/profilestore/sql/pom.xml
deleted file mode 100755
index 45a37c2..0000000
--- a/mothballed/component/profilestore/sql/pom.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-  
-         http://www.apache.org/licenses/LICENSE-2.0
-         
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-
-	<parent>
-		<groupId>org.apache.isis.core</groupId>
-		<artifactId>isis</artifactId>
-        <version>1.2.0-SNAPSHOT</version>
-		<relativePath>../../../core/pom.xml</relativePath>
-	</parent>
-
-	<groupId>org.apache.isis.profilestore</groupId>
-	<artifactId>isis-profilestore-sql</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-
-    <name>Isis SQL ProfileStore</name>
-
-	<properties>
-        <siteBaseDir>.</siteBaseDir>
-		<relativeUrl/>
-	</properties>
-
-    <!-- used in Site generation for relative references. -->
-    <url>http://isis.apache.org/${relativeUrl}</url>
-
-	<build>
-		<pluginManagement>
-			<plugins>
-                <!-- Apache Release Audit Tool -->
-                <plugin>
-                    <groupId>org.apache.rat</groupId>
-                    <artifactId>apache-rat-plugin</artifactId>
-                    <version>0.8</version>
-	                <configuration>
-	                    <excludes>
-	                    	<!-- 
-	                    	overriding inherited excludes from oia.core:isis 
-	                    	with a more specific set for this component
-	                    	 -->
-	                        <exclude>**/target/**</exclude>
-	                        <exclude>**/target-ide/**</exclude>
-
-	                        <exclude>**/*.project</exclude>
-	                        <exclude>**/.classpath</exclude>
-	                        <exclude>**/.settings/**</exclude>
-	                    </excludes>
-                    </configuration>
-	            </plugin>
-			</plugins>
-		</pluginManagement>
-	</build>
-	
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-project-info-reports-plugin</artifactId>
-				<version>${maven-project-info-reports-plugin}</version>
-                <inherited>false</inherited>
-                <configuration>
-                	<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
-                </configuration>
-                <reportSets>
-                    <reportSet>
-                        <inherited>false</inherited>
-                        <reports>
-                            <report>dependencies</report>
-                            <report>dependency-convergence</report>
-                            <report>plugins</report>
-                            <report>summary</report>
-                        </reports>
-                    </reportSet>
-                </reportSets>
-            </plugin>
-        </plugins>
-    </reporting>
-
-    <dependencies>
-		<dependency>
-			<groupId>org.hsqldb</groupId>
-			<artifactId>hsqldb</artifactId>
-			<scope>test</scope>
-		</dependency>
-
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-unittestsupport</artifactId>
-            <scope>test</scope>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-metamodel</artifactId>
-            <type>test-jar</type>
-            <scope>test</scope>
-        </dependency>
-
-		<dependency>
-		    <groupId>org.apache.isis.core</groupId>
-		    <artifactId>isis-core-runtime</artifactId>
-		</dependency>
-		<dependency>
-		    <groupId>org.apache.isis.core</groupId>
-		    <artifactId>isis-core-runtime</artifactId>
-		    <type>test-jar</type>
-		    <scope>test</scope>
-		</dependency>
-	</dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml b/mothballed/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml
deleted file mode 100644
index ecd3906..0000000
--- a/mothballed/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml
+++ /dev/null
@@ -1,106 +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. -->
-<supplementalDataModels xmlns="http://maven.apache.org/supplemental-model/1.0.0"
-                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                        xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd">
-
-  <supplement>
-    <project>
-      <groupId>aopalliance</groupId>
-      <artifactId>aopalliance</artifactId>
-      <version>1.0</version>
-      <licenses>
-          <license>
-              <name>Public Domain</name>
-          </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-   	<!-- not quite sure why licenses:download-license flags this, since license info seems to be in its POM -->
-    <project>
-		<groupId>org.datanucleus</groupId>
-	    <artifactId>datanucleus-jodatime</artifactId>
-	    <version>3.1.1</version>
-          <licenses>
-			<license>
-	            <name>The Apache Software License, Version 2.0</name>
-	            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-	        </license>
-	    </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>org.scannotation</groupId>
-      <artifactId>scannotation</artifactId>
-      <version>1.0.3</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-    
-  <supplement>
-    <project>
-      <groupId>dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>1.6.1</version>
-      <licenses>
-        <license>
-            <name>BSD License</name>
-            <url>http://dom4j.sourceforge.net/dom4j-1.6.1/license.html</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>net.jcip</groupId>
-      <artifactId>jcip-annotations</artifactId>
-      <version>1.0</version>
-      <licenses>
-        <license>
-            <name>Creative Commons Attribution 2.5 License</name>
-            <url>http://creativecommons.org/licenses/by/2.5/</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-  
-
-  <supplement>
-    <project>
-      <groupId>xalan</groupId>
-      <artifactId>xalan</artifactId>
-      <version>2.7.0</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
- 
-</supplementalDataModels>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java b/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java
deleted file mode 100755
index 66114e9..0000000
--- a/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You under the Apache License, Version 2.0
- *  (the "License"); you may not use this file except in compliance with
- *  the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.isis.profilestore.sql;
-
-import com.google.inject.Inject;
-
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-import org.apache.isis.core.runtime.userprofile.UserProfileStore;
-
-/**
- * 
- * 
- * @version $Rev$ $Date$
- */
-public class SqlUserProfileStore implements UserProfileStore {
-
-    @Inject
-    public SqlUserProfileStore(final IsisConfiguration configuration) {
-
-    }
-
-    @Override
-    public boolean isFixturesInstalled() {
-        // TODO Auto-generated method stub
-        return false;
-    }
-
-    @Override
-    public void save(final String userName, final UserProfile userProfile) {
-        // TODO Auto-generated method stub
-
-    }
-
-    @Override
-    public UserProfile getUserProfile(final String userName) {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java b/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java
deleted file mode 100755
index 10f9b00..0000000
--- a/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java
+++ /dev/null
@@ -1,47 +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.profilestore.sql;
-
-import java.util.List;
-
-import org.apache.isis.core.commons.config.InstallerAbstract;
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.runtime.userprofile.UserProfileStore;
-import org.apache.isis.core.runtime.userprofile.UserProfileStoreInstaller;
-
-/**
- * 
- * 
- * @version $Rev$ $Date$
- */
-public class SqlUserProfileStoreInstaller extends InstallerAbstract implements UserProfileStoreInstaller {
-
-    public SqlUserProfileStoreInstaller() {
-        super(UserProfileStoreInstaller.TYPE, "sql");
-    }
-
-    @Override
-    public UserProfileStore createUserProfileStore(final IsisConfiguration configuration) {
-        return new SqlUserProfileStore(configuration);
-    }
-
-    @Override
-    public List<Class<?>> getTypes() {
-        return listOf(UserProfileStore.class);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/site/apt/index.apt
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/site/apt/index.apt b/mothballed/component/profilestore/sql/src/site/apt/index.apt
deleted file mode 100755
index a3591d0..0000000
--- a/mothballed/component/profilestore/sql/src/site/apt/index.apt
+++ /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.
-
-
-
-SQL Profile Store (jdbc)
- 
- The <sql> (jdbc) profile store module provides a skeleton to accept 
- a persistent store for user profiles that is backed onto any jdbc 
- compatible database.
- 
- It is currently a no-op skeleton, yet to be implemented. 
- 
-
-Alternatives
-
-  Alternatives include:
-  
-  * the {{{../dflt/index.html}dflt}} (in-memory) profile store
-
-  * the {{{../xml/index.html}XML}} profile store
-
-Further Info
-  
-  See this module's {{{./apidocs/index.html}Javadoc}} for more information.
-
-
-  [] 
-  

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/site/apt/jottings.apt
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/site/apt/jottings.apt b/mothballed/component/profilestore/sql/src/site/apt/jottings.apt
deleted file mode 100755
index c5d1200..0000000
--- a/mothballed/component/profilestore/sql/src/site/apt/jottings.apt
+++ /dev/null
@@ -1,24 +0,0 @@
-~~  Licensed to the Apache Software Foundation (ASF) under one
-~~  or more contributor license agreements.  See the NOTICE file
-~~  distributed with this work for additional information
-~~  regarding copyright ownership.  The ASF licenses this file
-~~  to you under the Apache License, Version 2.0 (the
-~~  "License"); you may not use this file except in compliance
-~~  with the License.  You may obtain a copy of the License at
-~~
-~~        http://www.apache.org/licenses/LICENSE-2.0
-~~
-~~  Unless required by applicable law or agreed to in writing,
-~~  software distributed under the License is distributed on an
-~~  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-~~  KIND, either express or implied.  See the License for the
-~~  specific language governing permissions and limitations
-~~  under the License.
-
-
-
-Jottings
- 
-  This page is to capture any random jottings relating to this module prior 
-  to being moved into formal documentation. 
- 

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/sql/src/site/site.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/sql/src/site/site.xml b/mothballed/component/profilestore/sql/src/site/site.xml
deleted file mode 100755
index 55d03a7..0000000
--- a/mothballed/component/profilestore/sql/src/site/site.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-  
-         http://www.apache.org/licenses/LICENSE-2.0
-         
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-<project>
-
-	<body>
-		<breadcrumbs>
-			<item name="Sql" href="index.html"/>
-		</breadcrumbs>
-
-		<menu name="SQL (jdbc) Profile Store">
-			<item name="About" href="index.html" />
-            <item name="Jottings" href="jottings.html" />
-		</menu>
-        
-        <menu name="Profile Stores">
-            <item name="Default (In-mem)" href="../dflt/index.html" />
-            <item name="XML" href="../xml/index.html" />
-        </menu>
-        
-		<menu name="Maven Reports" ref="reports"/>
-	</body>
-</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/NOTICE
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/NOTICE b/mothballed/component/profilestore/xml/NOTICE
deleted file mode 100644
index ba21d0c..0000000
--- a/mothballed/component/profilestore/xml/NOTICE
+++ /dev/null
@@ -1,7 +0,0 @@
-Apache Isis
-Copyright 2010-2013 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/pom.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/pom.xml b/mothballed/component/profilestore/xml/pom.xml
deleted file mode 100644
index 38084af..0000000
--- a/mothballed/component/profilestore/xml/pom.xml
+++ /dev/null
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-  
-         http://www.apache.org/licenses/LICENSE-2.0
-         
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-
-    <parent>
-		<groupId>org.apache.isis.core</groupId>
-		<artifactId>isis</artifactId>
-        <version>1.6.0-SNAPSHOT</version>
-		<relativePath>../../../core/pom.xml</relativePath>
-	</parent>
-
-	<groupId>org.apache.isis.profilestore</groupId>
-	<artifactId>isis-profilestore-xml</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-
-	<name>Isis XML ProfileStore</name>
-
-	<properties>
-        <siteBaseDir>.</siteBaseDir>
-		<relativeUrl/>
-    </properties>
-
-    <!-- used in Site generation for relative references. -->
-    <url>http://isis.apache.org/${relativeUrl}</url>
-
-	<build>
-		<pluginManagement>
-			<plugins>
-                <!-- Apache Release Audit Tool -->
-                <plugin>
-                    <groupId>org.apache.rat</groupId>
-                    <artifactId>apache-rat-plugin</artifactId>
-                    <version>0.10</version>
-	                <configuration>
-	                    <excludes>
-	                    	<!-- 
-	                    	overriding inherited excludes from oia.core:isis 
-	                    	with a more specific set for this component
-	                    	 -->
-	                        <exclude>**/target/**</exclude>
-	                        <exclude>**/target-ide/**</exclude>
-
-	                        <exclude>**/*.project</exclude>
-	                        <exclude>**/.classpath</exclude>
-	                        <exclude>**/.settings/**</exclude>
-	                    </excludes>
-                    </configuration>
-	            </plugin>
-			</plugins>
-		</pluginManagement>
-	</build>
-
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-project-info-reports-plugin</artifactId>
-                <inherited>false</inherited>
-                <configuration>
-                	<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
-                </configuration>
-                <reportSets>
-                    <reportSet>
-                        <inherited>false</inherited>
-                        <reports>
-                            <report>dependencies</report>
-                            <report>dependency-convergence</report>
-                            <report>plugins</report>
-                            <report>summary</report>
-                        </reports>
-                    </reportSet>
-                </reportSets>
-            </plugin>
-        </plugins>
-    </reporting>
-    
-    <dependencyManagement>
-    	<!-- for benefit of application developers, using scope=import -->
-    	<dependencies>
-			<dependency>
-			    <groupId>org.apache.isis.profilestore</groupId>
-			    <artifactId>isis-profilestore-xml</artifactId>
-				<version>1.0.0-SNAPSHOT</version>
-			</dependency>
-    	</dependencies>
-    </dependencyManagement>
-    
-
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.isis.core</groupId>
-			<artifactId>isis-core-metamodel</artifactId>
-			<type>test-jar</type>
-			<scope>test</scope>
-        </dependency>
-		<dependency>
-			<groupId>org.apache.isis.core</groupId>
-			<artifactId>isis-core-unittestsupport</artifactId>
-			<scope>test</scope>
-        </dependency>
-
-		<dependency>
-			<groupId>org.apache.isis.core</groupId>
-			<artifactId>isis-core-runtime</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.isis.core</groupId>
-			<artifactId>isis-core-runtime</artifactId>
-			<type>test-jar</type>
-			<scope>test</scope>
-		</dependency>
-
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-	</dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/appended-resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/appended-resources/supplemental-models.xml b/mothballed/component/profilestore/xml/src/main/appended-resources/supplemental-models.xml
deleted file mode 100644
index ecd3906..0000000
--- a/mothballed/component/profilestore/xml/src/main/appended-resources/supplemental-models.xml
+++ /dev/null
@@ -1,106 +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. -->
-<supplementalDataModels xmlns="http://maven.apache.org/supplemental-model/1.0.0"
-                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                        xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd">
-
-  <supplement>
-    <project>
-      <groupId>aopalliance</groupId>
-      <artifactId>aopalliance</artifactId>
-      <version>1.0</version>
-      <licenses>
-          <license>
-              <name>Public Domain</name>
-          </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-   	<!-- not quite sure why licenses:download-license flags this, since license info seems to be in its POM -->
-    <project>
-		<groupId>org.datanucleus</groupId>
-	    <artifactId>datanucleus-jodatime</artifactId>
-	    <version>3.1.1</version>
-          <licenses>
-			<license>
-	            <name>The Apache Software License, Version 2.0</name>
-	            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-	        </license>
-	    </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>org.scannotation</groupId>
-      <artifactId>scannotation</artifactId>
-      <version>1.0.3</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-    
-  <supplement>
-    <project>
-      <groupId>dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>1.6.1</version>
-      <licenses>
-        <license>
-            <name>BSD License</name>
-            <url>http://dom4j.sourceforge.net/dom4j-1.6.1/license.html</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>net.jcip</groupId>
-      <artifactId>jcip-annotations</artifactId>
-      <version>1.0</version>
-      <licenses>
-        <license>
-            <name>Creative Commons Attribution 2.5 License</name>
-            <url>http://creativecommons.org/licenses/by/2.5/</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-  
-
-  <supplement>
-    <project>
-      <groupId>xalan</groupId>
-      <artifactId>xalan</artifactId>
-      <version>2.7.0</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
- 
-</supplementalDataModels>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStore.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStore.java b/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStore.java
deleted file mode 100644
index fb28307..0000000
--- a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStore.java
+++ /dev/null
@@ -1,64 +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.profilestore.xml;
-
-import com.google.inject.Inject;
-
-import org.apache.isis.core.commons.config.ConfigurationConstants;
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.commons.xml.XmlFile;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-import org.apache.isis.core.runtime.userprofile.UserProfileStore;
-import org.apache.isis.profilestore.xml.internal.UserProfileContentWriter;
-import org.apache.isis.profilestore.xml.internal.UserProfileDataHandler;
-import org.apache.isis.profilestore.xml.internal.XmlFileUtil;
-
-public class XmlUserProfileStore implements UserProfileStore {
-
-    private static final String XML_DIR = ConfigurationConstants.ROOT + "xmluserprofile.dir";
-    private final XmlFile xmlFile;
-
-    @Inject
-    public XmlUserProfileStore(final IsisConfiguration configuration) {
-        final String directory = configuration.getString(XML_DIR, "xml/profiles");
-        xmlFile = new XmlFile(XmlFileUtil.lookupCharset(configuration), directory);
-    }
-
-    @Override
-    public UserProfile getUserProfile(final String userName) {
-        final UserProfileDataHandler handler = new UserProfileDataHandler();
-        if (xmlFile.parse(handler, userName)) {
-            return handler.getUserProfile();
-        } else {
-            return null;
-        }
-    }
-
-    @Override
-    public boolean isFixturesInstalled() {
-        return xmlFile.isFixturesInstalled();
-    }
-
-    @Override
-    public void save(final String userName, final UserProfile userProfile) {
-        xmlFile.writeXml(userName, new UserProfileContentWriter(userProfile));
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStoreInstaller.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStoreInstaller.java b/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStoreInstaller.java
deleted file mode 100644
index d8968e4..0000000
--- a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/XmlUserProfileStoreInstaller.java
+++ /dev/null
@@ -1,45 +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.profilestore.xml;
-
-import java.util.List;
-
-import org.apache.isis.core.commons.config.InstallerAbstract;
-import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.runtime.userprofile.UserProfileStore;
-import org.apache.isis.core.runtime.userprofile.UserProfileStoreInstaller;
-
-public class XmlUserProfileStoreInstaller extends InstallerAbstract implements UserProfileStoreInstaller {
-
-    public XmlUserProfileStoreInstaller() {
-        super(UserProfileStoreInstaller.TYPE, "xml");
-    }
-
-    @Override
-    public UserProfileStore createUserProfileStore(final IsisConfiguration configuration) {
-        return new XmlUserProfileStore(configuration);
-    }
-
-    @Override
-    public List<Class<?>> getTypes() {
-        return listOf(UserProfileStore.class);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriter.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriter.java b/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriter.java
deleted file mode 100644
index 1a08e79..0000000
--- a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriter.java
+++ /dev/null
@@ -1,115 +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.profilestore.xml.internal;
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Iterator;
-
-import org.apache.isis.core.commons.lang.StringExtensions;
-import org.apache.isis.core.commons.xml.ContentWriter;
-import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
-import org.apache.isis.core.metamodel.adapter.oid.OidMarshaller;
-import org.apache.isis.core.metamodel.services.ServiceUtil;
-import org.apache.isis.core.runtime.system.context.IsisContext;
-import org.apache.isis.core.runtime.system.persistence.PersistenceSession;
-import org.apache.isis.core.runtime.userprofile.Options;
-import org.apache.isis.core.runtime.userprofile.PerspectiveEntry;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-
-public class UserProfileContentWriter implements ContentWriter {
-    private final UserProfile userProfile;
-
-    public UserProfileContentWriter(final UserProfile userProfile) {
-        this.userProfile = userProfile;
-    }
-
-    @Override
-    public void write(final Writer writer) throws IOException {
-        final StringBuffer xml = new StringBuffer();
-        xml.append("<profile>\n");
-
-        final Options options = userProfile.getOptions();
-        writeOptions(xml, options, null, 0);
-
-        xml.append("  <perspectives>\n");
-        for (final String perspectiveName : userProfile.list()) {
-            final PerspectiveEntry perspective = userProfile.getPerspective(perspectiveName);
-
-            xml.append("    <perspective" + attribute("name", perspectiveName) + ">\n");
-            xml.append("      <services>\n");
-            for (final Object service : perspective.getServices()) {
-                xml.append("        <service " + attribute("id", ServiceUtil.id(service)) + "/>\n");
-            }
-            xml.append("      </services>\n");
-            xml.append("      <objects>\n");
-            for (final Object object : perspective.getObjects()) {
-                final ObjectAdapter adapter = getPersistenceSession().getAdapterManager().adapterFor(object);
-                xml.append("        <object>" + adapter.getOid().enString(getOidMarshaller()) + "</object>\n");
-            }
-            xml.append("      </objects>\n");
-            xml.append("    </perspective>\n");
-        }
-        xml.append("  </perspectives>\n");
-
-        xml.append("</profile>\n");
-
-        writer.write(xml.toString());
-    }
-
-    private void writeOptions(final StringBuffer xml, final Options options, final String name1, final int level) {
-        final String spaces = StringExtensions.repeat("  ", level);
-
-        final Iterator<String> names = options.names();
-        if (level == 0 || names.hasNext()) {
-            xml.append(spaces + "  <options");
-            if (name1 != null) {
-                xml.append(" id=\"" + name1 + "\"");
-            }
-            xml.append(">\n");
-            while (names.hasNext()) {
-                final String name = names.next();
-                if (options.isOptions(name)) {
-                    writeOptions(xml, options.getOptions(name), name, level + 1);
-                } else {
-                    xml.append(spaces + "    <option" + attribute("id", name) + ">" + options.getString(name) + "</option>\n");
-                }
-            }
-            xml.append(spaces + "  </options>\n");
-        }
-    }
-
-    private String attribute(final String name, final String value) {
-        return " " + name + "=\"" + value + "\"";
-    }
-
-    // ///////////////////////////////////////////////////
-    // Dependencies (from context)
-    // ///////////////////////////////////////////////////
-
-    protected OidMarshaller getOidMarshaller() {
-		return IsisContext.getOidMarshaller();
-	}
-
-    protected static PersistenceSession getPersistenceSession() {
-        return IsisContext.getPersistenceSession();
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandler.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandler.java b/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandler.java
deleted file mode 100644
index 4fec8d2..0000000
--- a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandler.java
+++ /dev/null
@@ -1,145 +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.profilestore.xml.internal;
-
-import java.util.List;
-import java.util.Stack;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-import org.apache.isis.core.metamodel.services.ServiceUtil;
-import org.apache.isis.core.runtime.system.context.IsisContext;
-import org.apache.isis.core.runtime.userprofile.Options;
-import org.apache.isis.core.runtime.userprofile.PerspectiveEntry;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-
-public class UserProfileDataHandler extends DefaultHandler {
-    private final StringBuffer data = new StringBuffer();
-    private final UserProfile userProfile = new UserProfile();
-    private final Stack<Options> options = new Stack<Options>();
-    private String optionName;
-    private boolean isProfile;
-    private boolean isOptions;
-    private boolean isPerspectives;
-    private PerspectiveEntry perspective;
-    private boolean isServices;
-    private boolean isObjects;
-
-    public UserProfile getUserProfile() {
-        return userProfile;
-    }
-
-    @Override
-    public void characters(final char[] ch, final int start, final int end) throws SAXException {
-        data.append(new String(ch, start, end));
-    }
-
-    @Override
-    public void endElement(final String ns, final String name, final String tagName) throws SAXException {
-        if (tagName.equals("options")) {
-            options.pop();
-            isOptions = options.size() > 0;
-        } else if (tagName.equals("perspectives")) {
-            isPerspectives = false;
-        } else if (tagName.equals("perspective")) {
-            // TODO add perspective to profile
-
-            perspective = null;
-        } else if (tagName.equals("services")) {
-            isServices = false;
-        } else if (tagName.equals("objects")) {
-            isObjects = false;
-        } else if (tagName.equals("option")) {
-            final String value = data.toString();
-            options.peek().addOption(optionName, value);
-        } else if (tagName.equals("name")) {
-            final String value = data.toString();
-            System.out.println(value);
-        }
-    }
-
-    @Override
-    public void startElement(final String ns, final String name, final String tagName, final Attributes attributes) throws SAXException {
-
-        if (isProfile) {
-            if (isOptions) {
-                if (tagName.equals("option")) {
-                    optionName = attributes.getValue("id");
-                    data.setLength(0);
-                } else if (tagName.equals("options")) {
-                    final String optionsName = attributes.getValue("id");
-                    final Options newOptions = new Options();
-                    options.peek().addOptions(optionsName, newOptions);
-                    options.push(newOptions);
-                } else {
-                    throw new SAXException("Invalid element in options: " + tagName);
-                }
-            } else if (isPerspectives) {
-                if (perspective != null) {
-                    if (isServices) {
-                        if (tagName.equals("service")) {
-                            final String serviceId = attributes.getValue("id");
-                            final List<Object> serviceObjects = IsisContext.getServices();
-                            for (final Object service : serviceObjects) {
-                                if (ServiceUtil.id(service).equals(serviceId)) {
-                                    perspective.addToServices(service);
-                                    break;
-                                }
-                            }
-                        } else {
-                            throw new SAXException("Invalid element in services: " + tagName);
-                        }
-                    } else if (isObjects) {
-                        // TODO reload objects
-                    } else if (tagName.equals("services")) {
-                        isServices = true;
-                    } else if (tagName.equals("objects")) {
-                        isObjects = true;
-                    } else {
-                        throw new SAXException("Invalid element in perspective: " + tagName);
-                    }
-                } else if (tagName.equals("perspective")) {
-                    perspective = userProfile.newPerspective(attributes.getValue("name"));
-                } else {
-                    throw new SAXException("Invalid element in perspectives: " + tagName);
-                }
-            } else if (tagName.equals("options")) {
-                isOptions = true;
-                options.push(userProfile.getOptions());
-            } else if (tagName.equals("perspectives") && !isOptions) {
-                isPerspectives = true;
-            } else {
-                throw new SAXException("Invalid element in profile: " + tagName);
-            }
-
-        }
-        /*
-         * else { throw new SAXException("Invalid data"); } }
-         */
-
-        if (tagName.equals("profile")) {
-            isProfile = true;
-        }
-
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/XmlFileUtil.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/XmlFileUtil.java b/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/XmlFileUtil.java
deleted file mode 100644
index 68f9b00..0000000
--- a/mothballed/component/profilestore/xml/src/main/java/org/apache/isis/profilestore/xml/internal/XmlFileUtil.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-package org.apache.isis.profilestore.xml.internal;
-
-import org.apache.isis.core.commons.config.ConfigurationConstants;
-import org.apache.isis.core.commons.config.IsisConfiguration;
-
-public class XmlFileUtil {
-
-    public static final String ENCODING_PROPERTY = ConfigurationConstants.ROOT + "xmlos.encoding";
-    public static final String DEFAULT_ENCODING = "ISO-8859-1";
-
-    public static String lookupCharset(final IsisConfiguration configuration) {
-        return configuration.getString(ENCODING_PROPERTY, DEFAULT_ENCODING);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/site/apt/index.apt
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/site/apt/index.apt b/mothballed/component/profilestore/xml/src/site/apt/index.apt
deleted file mode 100644
index 61e9f4b..0000000
--- a/mothballed/component/profilestore/xml/src/site/apt/index.apt
+++ /dev/null
@@ -1,36 +0,0 @@
-~~  Licensed to the Apache Software Foundation (ASF) under one
-~~  or more contributor license agreements.  See the NOTICE file
-~~  distributed with this work for additional information
-~~  regarding copyright ownership.  The ASF licenses this file
-~~  to you under the Apache License, Version 2.0 (the
-~~  "License"); you may not use this file except in compliance
-~~  with the License.  You may obtain a copy of the License at
-~~
-~~        http://www.apache.org/licenses/LICENSE-2.0
-~~
-~~  Unless required by applicable law or agreed to in writing,
-~~  software distributed under the License is distributed on an
-~~  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-~~  KIND, either express or implied.  See the License for the
-~~  specific language governing permissions and limitations
-~~  under the License.
-
-
-
-XML ProfileStore
-
- The <xml> profile store provides a simple way to persist user profile 
- information to file storage.  The format of this file is a
- proprietary XML schema.
- 
-
-Alternatives
-
-  Alternatives include:
-  
-  * the {{{../dflt/index.html}dflt}} (in-memory) profile store
-
-  * the {{{../sql/index.html}SQL}} (jdbc) profile store (incomplete)
-
-  [] 
- 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/site/apt/jottings.apt
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/site/apt/jottings.apt b/mothballed/component/profilestore/xml/src/site/apt/jottings.apt
deleted file mode 100644
index c5d1200..0000000
--- a/mothballed/component/profilestore/xml/src/site/apt/jottings.apt
+++ /dev/null
@@ -1,24 +0,0 @@
-~~  Licensed to the Apache Software Foundation (ASF) under one
-~~  or more contributor license agreements.  See the NOTICE file
-~~  distributed with this work for additional information
-~~  regarding copyright ownership.  The ASF licenses this file
-~~  to you under the Apache License, Version 2.0 (the
-~~  "License"); you may not use this file except in compliance
-~~  with the License.  You may obtain a copy of the License at
-~~
-~~        http://www.apache.org/licenses/LICENSE-2.0
-~~
-~~  Unless required by applicable law or agreed to in writing,
-~~  software distributed under the License is distributed on an
-~~  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-~~  KIND, either express or implied.  See the License for the
-~~  specific language governing permissions and limitations
-~~  under the License.
-
-
-
-Jottings
- 
-  This page is to capture any random jottings relating to this module prior 
-  to being moved into formal documentation. 
- 

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/site/site.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/site/site.xml b/mothballed/component/profilestore/xml/src/site/site.xml
deleted file mode 100644
index 8ba380f..0000000
--- a/mothballed/component/profilestore/xml/src/site/site.xml
+++ /dev/null
@@ -1,45 +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>
-
-	<body>
-		<breadcrumbs>
-			<item name="XML"  href="index.html"/>
-		</breadcrumbs>
-
-		<menu name="XML Profile Store">
-			<item name="About" href="index.html" />
-            <item name="Jottings" href="jottings.html" />
-		</menu>
-
-        <menu name="Profile Stores">
-            <item name="Default (In-mem)" href="../dflt/index.html" />
-            <item name="XML" href="../xml/index.html" />
-            <item name="SQL (jdbc)" href="../sql/index.html" />
-        </menu>
-
-		<menu name="Documentation">
-			<item name="${docbkxGuideTitle} (PDF)" href="docbkx/pdf/${docbkxGuideName}.pdf" />
-			<item name="${docbkxGuideTitle} (HTML)" href="docbkx/html/guide/${docbkxGuideName}.html" />
-		</menu>
-
-        <menu name="Maven Reports" ref="reports" />
-	</body>
-</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/TestServiceObject1.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/TestServiceObject1.java b/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/TestServiceObject1.java
deleted file mode 100644
index da30c7e..0000000
--- a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/TestServiceObject1.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-package org.apache.isis.profilestore.xml.internal;
-
-public class TestServiceObject1 {
-    public static final String ID = "test service";
-
-    public String getId() {
-        return ID;
-    }
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriterTest.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriterTest.java b/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriterTest.java
deleted file mode 100644
index 2de9fb9..0000000
--- a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileContentWriterTest.java
+++ /dev/null
@@ -1,105 +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.profilestore.xml.internal;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.IOException;
-import java.io.StringWriter;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import org.apache.isis.core.runtime.userprofile.Options;
-import org.apache.isis.core.runtime.userprofile.PerspectiveEntry;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-
-public class UserProfileContentWriterTest {
-
-    private UserProfileContentWriter writer1;
-    private UserProfile profile;
-    private StringWriter writer;
-
-    @Before
-    public void setup() throws Exception {
-        profile = new UserProfile();
-        writer1 = new UserProfileContentWriter(profile);
-        writer = new StringWriter();
-
-    }
-
-    @Test
-    public void emptyStructure() throws Exception {
-        writeContent();
-        assertEquals("<profile>\n  <options>\n  </options>\n  <perspectives>\n  </perspectives>\n</profile>\n", writer.toString());
-    }
-
-    @Test
-    public void singleOption() throws Exception {
-        profile.addToOptions("option1", "value1");
-        profile.addToOptions("option2", "value2");
-        assertLine("    <option id=\"option2\">value2</option>", 2);
-        assertLine("    <option id=\"option1\">value1</option>", 3);
-    }
-
-    @Test
-    public void recursiveOptions() throws Exception {
-        final Options options = new Options();
-        options.addOption("option2", "value2");
-        profile.getOptions().addOptions("option1", options);
-        assertLine("    <options id=\"option1\">", 2);
-        assertLine("      <option id=\"option2\">value2</option>", 3);
-        assertLine("    </options>", 4);
-    }
-
-    @Test
-    public void emptyOptionsAreIgnored() throws Exception {
-        final Options options = new Options();
-        profile.getOptions().addOptions("option1", options);
-        debug();
-        assertLine("  </options>", 2);
-    }
-
-    @Test
-    public void perspective() throws Exception {
-        final PerspectiveEntry perspective = new PerspectiveEntry();
-        perspective.setName("test");
-        profile.addToPerspectives(perspective);
-        // debug();
-        writeContent();
-        assertEquals("<profile>\n  <options>\n  </options>\n  <perspectives>\n" + "    <perspective name=\"test\">\n      <services>\n      </services>\n      <objects>\n      </objects>\n    </perspective>\n" + "  </perspectives>\n</profile>\n", writer.toString());
-    }
-
-    // // Helpers
-
-    private void assertLine(final String expected, final int line) throws IOException {
-        writeContent();
-        assertEquals(expected, writer.toString().split("\n")[line]);
-    }
-
-    private void debug() throws IOException {
-        writeContent();
-        System.out.println(writer.toString());
-    }
-
-    private void writeContent() throws IOException {
-        writer1.write(writer);
-    }
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandlerTest.java
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandlerTest.java b/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandlerTest.java
deleted file mode 100644
index 621332a..0000000
--- a/mothballed/component/profilestore/xml/src/test/java/org/apache/isis/profilestore/xml/internal/UserProfileDataHandlerTest.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.profilestore.xml.internal;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import java.io.FileInputStream;
-import java.io.InputStreamReader;
-import java.util.Arrays;
-import java.util.List;
-
-import org.jmock.auto.Mock;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.xml.sax.InputSource;
-import org.xml.sax.XMLReader;
-import org.xml.sax.helpers.XMLReaderFactory;
-
-import org.apache.isis.applib.DomainObjectContainer;
-import org.apache.isis.core.commons.config.IsisConfigurationDefault;
-import org.apache.isis.core.metamodel.adapter.oid.OidMarshaller;
-import org.apache.isis.core.metamodel.spec.SpecificationLoader;
-import org.apache.isis.core.runtime.authentication.AuthenticationManager;
-import org.apache.isis.core.runtime.authorization.AuthorizationManager;
-import org.apache.isis.core.runtime.imageloader.TemplateImageLoader;
-import org.apache.isis.core.runtime.system.DeploymentType;
-import org.apache.isis.core.runtime.system.context.IsisContextStatic;
-import org.apache.isis.core.runtime.system.persistence.PersistenceSessionFactory;
-import org.apache.isis.core.runtime.system.session.IsisSessionFactory;
-import org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault;
-import org.apache.isis.core.runtime.userprofile.Options;
-import org.apache.isis.core.runtime.userprofile.UserProfile;
-import org.apache.isis.core.runtime.userprofile.UserProfileLoader;
-import org.apache.isis.core.unittestsupport.jmocking.JUnitRuleMockery2;
-import org.apache.isis.core.unittestsupport.jmocking.JUnitRuleMockery2.Mode;
-
-public class UserProfileDataHandlerTest {
-
-    @Rule
-    public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(Mode.INTERFACES_AND_CLASSES);
-    
-    @Mock
-    private TemplateImageLoader mockTemplateImageLoader;
-    @Mock
-    private SpecificationLoader mockSpecificationLoader;
-    @Mock
-    private AuthenticationManager mockAuthenticationManager;
-    @Mock
-    private AuthorizationManager mockAuthorizationManager;
-    @Mock
-    private UserProfileLoader mockUserProfileLoader;
-    @Mock
-    private PersistenceSessionFactory mockPersistenceSessionFactory;
-    @Mock
-    private DomainObjectContainer mockContainer;
-    
-    private TestServiceObject1 service;
-    private UserProfile profile;
-
-    
-    @Before
-    public void setup() throws Exception {
-        org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);
-        service = new TestServiceObject1();
-        final IsisSessionFactory executionContextFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockSpecificationLoader, mockTemplateImageLoader, mockAuthenticationManager,
-                mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory, mockContainer, Arrays.<Object>asList(service), new OidMarshaller());
-
-        IsisContextStatic.createRelaxedInstance(executionContextFactory);
-
-        final XMLReader parser = XMLReaderFactory.createXMLReader();
-        final UserProfileDataHandler handler = new UserProfileDataHandler();
-        parser.setContentHandler(handler);
-        parser.parse(new InputSource(new InputStreamReader(new FileInputStream("test.xml"))));
-
-        profile = handler.getUserProfile();
-    }
-
-    @Test
-    public void stringOption() throws Exception {
-        assertEquals("on", profile.getOptions().getString("power"));
-    }
-
-    @Test
-    public void unknownOptionReturnsNull() throws Exception {
-        assertEquals(null, profile.getOptions().getString("device"));
-    }
-
-    @Test
-    public void integerOption() throws Exception {
-        assertEquals(50, profile.getOptions().getInteger("height", 10));
-    }
-
-    @Test
-    public void unknownIntegerReturnsDefault() throws Exception {
-        assertEquals(30, profile.getOptions().getInteger("width", 30));
-    }
-
-    @Test
-    public void unknownOptionsCreated() throws Exception {
-        final Options options = profile.getOptions().getOptions("");
-        assertNotNull(options);
-        assertEquals(false, options.names().hasNext());
-    }
-
-    @Test
-    public void containedOptions() throws Exception {
-        final Options options = profile.getOptions().getOptions("opts");
-        assertNotNull(options);
-        assertEquals("value1", options.getString("option1"));
-        assertEquals("value2", options.getString("option2"));
-    }
-
-    @Test
-    public void recursiveOptions() throws Exception {
-        Options options = profile.getOptions().getOptions("opts");
-        options = options.getOptions("options3");
-        assertEquals("value4", options.getString("option4"));
-        assertEquals("value5", options.getString("option5"));
-    }
-
-    @Test
-    public void profileNames() throws Exception {
-        final List<String> list = profile.list();
-        assertEquals(2, list.size());
-        assertEquals("Library", list.get(0));
-        assertEquals("Admin", list.get(1));
-    }
-
-    @Test
-    public void perspective() throws Exception {
-        assertEquals("Admin", profile.getPerspective().getName());
-        assertEquals(1, profile.getPerspective().getServices().size());
-        assertEquals(service, profile.getPerspective().getServices().get(0));
-    }
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/profilestore/xml/test.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/profilestore/xml/test.xml b/mothballed/component/profilestore/xml/test.xml
deleted file mode 100644
index 12fcca4..0000000
--- a/mothballed/component/profilestore/xml/test.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.
--->
-
-<profile>
-  <options>
-    <option id="power">on</option>
-    <option id="height">50</option>
-    <options id="opts">
-        <option id="option1">value1</option>
-        <options id="options3">
-            <option id="option4">value4</option>
-            <option id="option5">value5</option>
-        </options>
-        <option id="option2">value2</option>
-    </options>
-  </options>
-  <perspectives>
-  <perspective name="Library">
-    <services>
-      <service  id="Service one"/>
-      <service  id="Service two"/>
-      <service  id="Service three"/>
-    </services>
-    <objects>
-    </objects>
-  </perspective>
-  <perspective name="Admin">
-    <services>
-      <service  id="repository#org.apache.isis.xmlpersistence.profilestore.TestServiceObject"/>
-      <service  id="test service"/>
-    </services>
-    <objects>
-    </objects>
-  </perspective>
-  </perspectives>
-</profile>

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/progmodel/groovy/NOTICE
----------------------------------------------------------------------
diff --git a/mothballed/component/progmodel/groovy/NOTICE b/mothballed/component/progmodel/groovy/NOTICE
deleted file mode 100644
index ba21d0c..0000000
--- a/mothballed/component/progmodel/groovy/NOTICE
+++ /dev/null
@@ -1,7 +0,0 @@
-Apache Isis
-Copyright 2010-2013 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/a43dbdd9/mothballed/component/progmodel/groovy/applib/pom.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/progmodel/groovy/applib/pom.xml b/mothballed/component/progmodel/groovy/applib/pom.xml
deleted file mode 100644
index 3410a1d..0000000
--- a/mothballed/component/progmodel/groovy/applib/pom.xml
+++ /dev/null
@@ -1,55 +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.progmodel</groupId>
-      <artifactId>isis-progmodel-groovy</artifactId>
-      <version>1.0.0-SNAPSHOT</version>
-	</parent>
-
-    <artifactId>isis-progmodel-groovy-applib</artifactId>
-    <name>Isis Groovy ProgModel AppLib</name>
-
-	<properties>
-		<siteBaseDir>..</siteBaseDir>
-		<relativeUrl>applib/</relativeUrl>
-	</properties>
-
-    <!-- used in Site generation for relative references. -->
-    <url>http://isis.apache.org/${relativeUrl}</url>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-applib</artifactId>
-        </dependency>
-  
-  		<!-- is marked as optional in parent, so not exported as a transitive dependency -->      
-  		<dependency> 
-		    <groupId>org.codehaus.groovy</groupId> 
-		    <artifactId>groovy-all</artifactId> 
-		</dependency>
-        
-    </dependencies>
-
-</project>