Updated Branches: refs/heads/master da47b564a -> 988b2c5cc
ISIS-381: mothballed sql profilestore * this component was never implemented. Project: http://git-wip-us.apache.org/repos/asf/isis/repo Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/988b2c5c Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/988b2c5c Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/988b2c5c Branch: refs/heads/master Commit: 988b2c5cca1fbe86e6dbf12cd8db5911d6e45fa9 Parents: da47b56 Author: Dan Haywood <[email protected]> Authored: Mon May 20 14:12:33 2013 +0100 Committer: Dan Haywood <[email protected]> Committed: Mon May 20 14:12:33 2013 +0100 ---------------------------------------------------------------------- component/profilestore/sql/NOTICE | 7 - component/profilestore/sql/pom.xml | 128 --------------- .../appended-resources/supplemental-models.xml | 106 ------------ .../isis/profilestore/sql/SqlUserProfileStore.java | 55 ------ .../sql/SqlUserProfileStoreInstaller.java | 47 ------ component/profilestore/sql/src/site/apt/index.apt | 43 ----- .../profilestore/sql/src/site/apt/jottings.apt | 24 --- component/profilestore/sql/src/site/site.xml | 39 ----- mothballed/component/profilestore/sql/NOTICE | 7 + mothballed/component/profilestore/sql/pom.xml | 128 +++++++++++++++ .../appended-resources/supplemental-models.xml | 106 ++++++++++++ .../isis/profilestore/sql/SqlUserProfileStore.java | 55 ++++++ .../sql/SqlUserProfileStoreInstaller.java | 47 ++++++ .../profilestore/sql/src/site/apt/index.apt | 43 +++++ .../profilestore/sql/src/site/apt/jottings.apt | 24 +++ .../component/profilestore/sql/src/site/site.xml | 39 +++++ pom.xml | 1 - 17 files changed, 449 insertions(+), 450 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/isis/blob/988b2c5c/component/profilestore/sql/NOTICE ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/NOTICE b/component/profilestore/sql/NOTICE deleted file mode 100755 index ba21d0c..0000000 --- a/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/988b2c5c/component/profilestore/sql/pom.xml ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/pom.xml b/component/profilestore/sql/pom.xml deleted file mode 100755 index 45a37c2..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml b/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml deleted file mode 100644 index ecd3906..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java b/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java deleted file mode 100755 index 66114e9..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java b/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java deleted file mode 100755 index 10f9b00..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/site/apt/index.apt ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/site/apt/index.apt b/component/profilestore/sql/src/site/apt/index.apt deleted file mode 100755 index a3591d0..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/site/apt/jottings.apt ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/site/apt/jottings.apt b/component/profilestore/sql/src/site/apt/jottings.apt deleted file mode 100755 index c5d1200..0000000 --- a/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/988b2c5c/component/profilestore/sql/src/site/site.xml ---------------------------------------------------------------------- diff --git a/component/profilestore/sql/src/site/site.xml b/component/profilestore/sql/src/site/site.xml deleted file mode 100755 index 55d03a7..0000000 --- a/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/988b2c5c/mothballed/component/profilestore/sql/NOTICE ---------------------------------------------------------------------- diff --git a/mothballed/component/profilestore/sql/NOTICE b/mothballed/component/profilestore/sql/NOTICE new file mode 100755 index 0000000..ba21d0c --- /dev/null +++ b/mothballed/component/profilestore/sql/NOTICE @@ -0,0 +1,7 @@ +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/988b2c5c/mothballed/component/profilestore/sql/pom.xml ---------------------------------------------------------------------- diff --git a/mothballed/component/profilestore/sql/pom.xml b/mothballed/component/profilestore/sql/pom.xml new file mode 100755 index 0000000..45a37c2 --- /dev/null +++ b/mothballed/component/profilestore/sql/pom.xml @@ -0,0 +1,128 @@ +<?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/988b2c5c/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 new file mode 100644 index 0000000..ecd3906 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/main/appended-resources/supplemental-models.xml @@ -0,0 +1,106 @@ +<?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/988b2c5c/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 new file mode 100755 index 0000000..66114e9 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStore.java @@ -0,0 +1,55 @@ +/** + * 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/988b2c5c/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 new file mode 100755 index 0000000..10f9b00 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/main/java/org/apache/isis/profilestore/sql/SqlUserProfileStoreInstaller.java @@ -0,0 +1,47 @@ +/** + * 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/988b2c5c/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 new file mode 100755 index 0000000..a3591d0 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/site/apt/index.apt @@ -0,0 +1,43 @@ +~~ 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/988b2c5c/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 new file mode 100755 index 0000000..c5d1200 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/site/apt/jottings.apt @@ -0,0 +1,24 @@ +~~ 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/988b2c5c/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 new file mode 100755 index 0000000..55d03a7 --- /dev/null +++ b/mothballed/component/profilestore/sql/src/site/site.xml @@ -0,0 +1,39 @@ +<?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/988b2c5c/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 48cfce0..59093e7 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,6 @@ <module>component/progmodel/groovy</module> <module>component/profilestore/xml</module> - <module>component/profilestore/sql</module> <module>component/security/file</module> <module>component/security/shiro</module>
