You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/06/23 05:34:28 UTC
svn commit: r193064 - in /portals/jetspeed-2/trunk/app-servers: ./ security/
security/jboss/ security/jboss/etc/ security/jboss/src/
security/jboss/src/java/ security/jboss/src/java/META-INF/
security/jboss/src/java/META-INF/jboss-secsvc/ security/jbos...
Author: taylor
Date: Wed Jun 22 20:34:26 2005
New Revision: 193064
URL: http://svn.apache.org/viewcvs?rev=193064&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-297
Added:
portals/jetspeed-2/trunk/app-servers/
portals/jetspeed-2/trunk/app-servers/security/
portals/jetspeed-2/trunk/app-servers/security/jboss/
portals/jetspeed-2/trunk/app-servers/security/jboss/etc/
portals/jetspeed-2/trunk/app-servers/security/jboss/etc/repository_database.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/locator.ent
portals/jetspeed-2/trunk/app-servers/security/jboss/locator.path
portals/jetspeed-2/trunk/app-servers/security/jboss/maven.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/project.properties
portals/jetspeed-2/trunk/app-servers/security/jboss/project.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/jboss-security-service.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-atz.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-managers.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-providers.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atn.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atz.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/transaction.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-service.xml
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityService.java
portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityServiceMBean.java
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/etc/repository_database.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/etc/repository_database.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/etc/repository_database.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/etc/repository_database.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,77 @@
+<!-- @version $Id: repository_database.xml,v 1.1 2004/09/25 23:03:18 dlestrat Exp $ -->
+
+<!--
+#/* Copyright 2002-2004 The Apache Software Foundation
+ *
+ * Licensed 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.
+ */
+-->
+
+<!--
+Define here all used connections.
+One defined connection should be defined as the default one,
+by set default-connection="true" - this could be done at runtime too.
+
+It is possible to set user/password at
+runtime or let login different users at runtime using the same
+database. Use different PBKey with same jcdAlias name but
+different user/password.
+
+Ditto it is possible to add jdbc-connection-descriptor at runtime
+using the MetadataManager.
+-->
+
+ <jdbc-connection-descriptor
+ jcd-alias="jetspeed"
+ platform="@PLATFORM@"
+ default-connection="true"
+ jdbc-level="2.0"
+ jndi-datasource-name="java:comp/env/jdbc/jetspeed"
+ batch-mode="false"
+ >
+
+ <connection-pool
+ maxActive="21"
+ validationQuery="" />
+
+ <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
+ <attribute attribute-name="grabSize" attribute-value="20"/>
+ <attribute attribute-name="autoNaming" attribute-value="true"/>
+ <attribute attribute-name="globalSequenceId" attribute-value="false"/>
+ <attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
+ </sequence-manager>
+ </jdbc-connection-descriptor>
+
+ <!-- Special connection to be used by jetspeed security service. -->
+
+ <jdbc-connection-descriptor
+ jcd-alias="jetspeed-global"
+ platform="@PLATFORM@"
+ default-connection="false"
+ jdbc-level="2.0"
+ jndi-datasource-name="java:/DefaultDS"
+ batch-mode="false"
+ >
+
+ <connection-pool
+ maxActive="21"
+ validationQuery="" />
+
+ <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
+ <attribute attribute-name="grabSize" attribute-value="20"/>
+ <attribute attribute-name="autoNaming" attribute-value="true"/>
+ <attribute attribute-name="globalSequenceId" attribute-value="false"/>
+ <attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
+ </sequence-manager>
+ </jdbc-connection-descriptor>
+
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/locator.ent
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/locator.ent?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/locator.ent (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/locator.ent Wed Jun 22 20:34:26 2005
@@ -0,0 +1,2 @@
+<!-- derive locator.ent from parent -->
+<!ENTITY % locator-ent SYSTEM "file:../../../locator.ent"> %locator-ent;
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/locator.path
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/locator.path?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/locator.path (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/locator.path Wed Jun 22 20:34:26 2005
@@ -0,0 +1 @@
+../../../
\ No newline at end of file
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/maven.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/maven.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/maven.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/maven.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,197 @@
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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 default="sar:sar"
+ xmlns:j="jelly:core"
+ xmlns:ant="jelly:ant"
+ xmlns:license="license"
+ xmlns:define="jelly:define"
+ xmlns:util="jelly:util"
+ xmlns:maven="jelly:maven">
+
+ <goal name="ojb.set.production.database.platform">
+ <copy todir="${maven.build.dest}" overwrite="true">
+ <fileset dir="etc"/>
+ <filterset begintoken="@" endtoken="@">
+ <filter token="PLATFORM"
+ value="${org.apache.jetspeed.production.database.ojb.platform}"/>
+ </filterset>
+ </copy>
+ </goal>
+
+ <preGoal name="sar:sar">
+ <attainGoal name="ojb.set.production.database.platform"/>
+ </preGoal>
+
+ <goal name="sar:sar"
+ description="Create the deliverable jar file."
+ prereqs="test:test">
+
+ <j:choose>
+ <j:when test="${pom.currentVersion == null}">
+ <ant:fail>You must define currentVersion in your POM.</ant:fail>
+ </j:when>
+ </j:choose>
+
+ <ant:available property="maven.jar.manifest.available"
+ file="${maven.jar.manifest}"/>
+
+ <j:set var="specificationTitle" value="${pom.shortDescription.trim()}"/>
+ <j:if test="${specificationTitle.length() gt 49}">
+ <ant:echo>Warning: shortDescription is greater than 49 characters - trimming for specification title.</ant:echo>
+ <j:set var="specificationTitle" value="${specificationTitle.substring(0,46)}..."/>
+ </j:if>
+
+ <j:forEach var="lib" items="${pom.artifacts}">
+ <j:set var="dep" value="${lib.dependency}"/>
+ <j:choose>
+ <j:when test="${dep.artifactId == 'jetspeed-security'}">
+ <!-- *.xml files in META-INF prevent deployment in JBoss -->
+ <ant:delete dir="${maven.build.dir}/tmp"/>
+ <ant:unzip src="${lib.path}" dest="${maven.build.dir}/tmp"/>
+ <ant:zip destfile="${maven.build.dest}/${lib.name}"
+ basedir="${maven.build.dir}/tmp"
+ excludes="META-INF/*.xml"/>
+ <ant:mkdir dir="${maven.build.dest}/META-INF"/>
+ <ant:copy todir="${maven.build.dest}/META-INF">
+ <ant:fileset dir="${maven.build.dir}/tmp/META-INF"
+ includes="security_repository.xml"/>
+ </ant:copy>
+ <ant:delete dir="${maven.build.dir}/tmp"/>
+ </j:when>
+ <j:when test="${dep.getProperty('sar.bundle')=='true'}">
+ <ant:copy todir="${maven.build.dest}" file="${lib.path}"/>
+ </j:when>
+ </j:choose>
+ </j:forEach>
+
+ <!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
+ <!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
+ <ant:jar
+ jarfile="${maven.build.dir}/${maven.final.name}.sar"
+ basedir="${maven.build.dest}"
+ index="${maven.jar.index}"
+ compress="${maven.jar.compress}"
+ excludes="${maven.jar.excludes}">
+
+ <j:if test="${maven.jar.manifest.available}">
+ <ant:setProperty name="manifest" value="${maven.jar.manifest}" />
+ </j:if>
+
+ <j:if test="${context.getVariable('maven.jar.includes') != null}">
+ <ant:setProperty name="includes" value="${maven.jar.includes}" />
+ </j:if>
+
+ <j:set var="licenseFileName"><license:fileName/></j:set>
+ <util:file name="${licenseFileName}" var="licenseFile"/>
+ <ant:metainf dir="${licenseFile.canonicalFile.parent}">
+ <ant:include name="${licenseFile.canonicalFile.name}"/>
+ </ant:metainf>
+ <ant:manifest>
+ <ant:attribute name="Built-By" value="${user.name}"/>
+ <ant:attribute name="Created-By" value="Apache Jakarta Maven"/>
+ <ant:attribute name="Package" value="${pom.package}"/>
+ <ant:attribute name="Build-Jdk" value="${java.version}"/>
+
+ <j:set var="jarClasspath" value="${maven.jar.manifest.classpath.add}"/>
+ <j:if test="${jarClasspath}">
+ <j:forEach var="dep" items="${pom.dependencies}">
+ <j:if test="${dep.getProperty('jar.manifest.classpath')=='true'}">
+ <j:set var="maven.jar.classpath" value="${maven.jar.classpath} ${dep.artifact}" />
+ </j:if>
+ </j:forEach>
+ <j:if test="${maven.jar.classpath.length() != 0}">
+ <ant:attribute name="Class-Path" value="${maven.jar.classpath}"/>
+ </j:if>
+ </j:if>
+ <!-- added supplementary entries -->
+ <ant:attribute name="Extension-Name" value="${pom.artifactId}"/>
+ <ant:attribute name="Specification-Title" value="${specificationTitle}" />
+ <ant:attribute name="Specification-Vendor" value="${pom.organization.name}"/>
+ <!--
+ <ant:attribute name="Specification-Version" value="${pom.currentVersion}"/>
+ -->
+ <ant:attribute name="Implementation-Title" value="${pom.package}"/>
+ <ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
+ <ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
+ <j:set var="mainclass" value="${maven.jar.mainclass}" />
+ <j:if test="${!empty(mainclass)}">
+ <ant:attribute name="Main-Class" value="${mainclass}"/>
+ </j:if>
+
+ <j:set var="jarExtensions" value="${maven.jar.manifest.extensions.add}"/>
+ <j:if test="${jarExtensions == 'true'}">
+ <j:set var="extensionList" value=""/>
+ <j:forEach var="artifact" items="${pom.artifacts}">
+ <j:set var="dep" value="${artifact.dependency}"/>
+ <j:if test="${dep.type == 'jar' || empty(dep.type)}">
+ <j:set var="extensionList" value="${extensionList} ${dep.artifactId}"/>
+ </j:if>
+ </j:forEach>
+
+ <j:if test="${extensionList.length() != 0}">
+ <j:set var="extensionList" value="${extensionList.substring(1)}"/>
+ <ant:attribute name="Extension-List" value="${extensionList}"/>
+ </j:if>
+
+ <j:forEach var="artifact" items="${pom.artifacts}">
+ <j:set var="dep" value="${artifact.dependency}"/>
+ <j:if test="${dep.type == 'jar' || empty(dep.type)}">
+ <ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
+ <ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
+
+ <j:choose>
+ <j:when test="${empty(dep.url) || dep.url.toString().trim().length() == 0}">
+ <ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
+ </j:when>
+ <j:otherwise>
+ <ant:attribute name="${dep.artifactId}-Implementation-URL" value="${dep.url}"/>
+ </j:otherwise>
+ </j:choose>
+ </j:if>
+ </j:forEach>
+ </j:if>
+
+ <j:if test="${context.getVariable('maven.jar.manifest.attributes.list') != null}">
+ <util:tokenize var="attributeList" delim="," trim="true">${maven.jar.manifest.attributes.list}</util:tokenize>
+ <j:forEach var="attribute" items="${attributeList}">
+ <j:set var="name" value="maven.jar.manifest.attribute.${attribute}"/>
+ <j:set var="value" value="${context.findVariable(name)}"/>
+ <ant:attribute name="${attribute}" value="${value}"/>
+ </j:forEach>
+ </j:if>
+
+ <j:if test="${context.getVariable('maven.jar.manifest.groups.list') != null}">
+ <util:tokenize var="groupList" delim="," trim="true">${maven.jar.manifest.groups.list}</util:tokenize>
+ <j:forEach var="group" items="${groupList}">
+ <j:set var="nameVar" value="maven.jar.manifest.${group}.name"/>
+ <j:set var="groupName" value="${context.findVariable(nameVar)}"/>
+ <j:set var="attributeListVar" value="maven.jar.manifest.${group}.attributes.list"/>
+ <j:set var="groupAttributes" value="${context.findVariable(attributeListVar)}"/>
+ <util:tokenize var="attributeList" delim="," trim="true">${groupAttributes}</util:tokenize>
+ <ant:section name="${groupName}">
+ <j:forEach var="attribute" items="${attributeList}">
+ <j:set var="name" value="maven.jar.manifest.${group}.attribute.${attribute}"/>
+ <j:set var="value" value="${context.findVariable(name)}"/>
+ <ant:attribute name="${attribute}" value="${value}"/>
+ </j:forEach>
+ </ant:section>
+ </j:forEach>
+ </j:if>
+ </ant:manifest>
+ </ant:jar>
+ </goal>
+
+</project>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/project.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/project.properties?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/project.properties (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/project.properties Wed Jun 22 20:34:26 2005
@@ -0,0 +1,19 @@
+# Copyright 2004 The Apache Software Foundation
+#
+# Licensed 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.
+#
+# $Id: project.properties,v 1.8 2004/07/11 03:25:23 paulsp Exp $
+#
+
+maven.multiproject.type=jar
+maven.license.licenseFile=${basedir}/../../../LICENSE.TXT
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/project.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/project.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/project.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/project.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE project [
+ <!ENTITY % locator-entities SYSTEM "file:locator.ent"> %locator-entities;
+]>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+
+ $Id: project.xml,v 1.28 2005/03/31 14:07:14 ate Exp $
+-->
+<project>
+ <extend>${basedir}/../../../project.xml</extend>
+ <pomVersion>3</pomVersion>
+ <id>jetspeed-jboss-security-service</id>
+ <groupId>jetspeed2</groupId>
+ <name>Jetspeed-2 JBoss Security Service</name>
+
+ <package>org.apache.jetspeed</package>
+ <description>
+ Security Service for JBoss
+ </description>
+ <shortDescription>Security Service</shortDescription>
+
+ <repository>
+ <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-jetspeed-2/appservers/security/jboss</connection>
+ <url>http://cvs.apache.org/viewcvs/jakarta-jetspeed-2/appservers/security/jboss</url>
+ </repository>
+
+ <dependencies>
+
+ <!-- Dependencies copied from general (included)
+ dependencies. Must be copied (and preceeding the included
+ dependencies) for setting the sar.bundle property. May be removed
+ if sar.bundle property is maintained in included file. -->
+
+ <dependency>
+ <id>springframework:spring</id> <version>1.1.5</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>aopalliance</id>
+ <version>1.0</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>ojb:db-ojb</id>
+ <version>1.0.1</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-lang</id>
+ <version>2.0</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>jetspeed-commons</id>
+ <groupId>jetspeed2</groupId>
+ <version>&jetspeed-version;</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-configuration</id>
+ <version>1.0</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <!-- General dependencies -->
+
+ &spring-deps;
+
+ &db-ojb-deps;
+
+ &commons-config-dep;
+
+ <!-- Components -->
+
+ <dependency>
+ <id>jetspeed-security</id>
+ <groupId>jetspeed2</groupId>
+ <version>&jetspeed-version;</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>jetspeed-cm</id>
+ <groupId>jetspeed2</groupId>
+ <version>&jetspeed-version;</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>jetspeed-api</id>
+ <groupId>jetspeed2</groupId>
+ <version>&jetspeed-version;</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-pool</id>
+ <version>1.2</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-dbcp</id>
+ <version>1.2.1</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-codec</id>
+ <version>1.3</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>commons-collections</id>
+ <version>3.0</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+
+ <!-- Testing only -->
+ </dependencies>
+
+ <build>
+
+ <sourceDirectory>src/java</sourceDirectory>
+
+ <resources>
+
+ <resource>
+ <directory>${basedir}/src/java</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+
+ <resource>
+ <directory>${org.apache.jetspeed.project.home}/etc/db-ojb</directory>
+ <includes>
+ <include>*.xml</include>
+ <include>*.dtd</include>
+ <include>*.properties</include>
+ </includes>
+ <excludes>
+ <exclude>repository_database.xml</exclude>
+ </excludes>
+ </resource>
+
+ </resources>
+
+ </build>
+ <reports>
+
+ &j2-reports;
+
+ </reports>
+</project>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/jboss-security-service.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/jboss-security-service.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/jboss-security-service.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/jboss-security-service.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <import resource="security-atz.xml"/>
+ <import resource="security-managers.xml"/>
+ <import resource="security-providers.xml"/>
+ <import resource="security-spi-atn.xml"/>
+ <import resource="security-spi-atz.xml"/>
+ <import resource="security-spi.xml"/>
+ <import resource="transaction.xml"/>
+
+ <!-- Security: User Manager -->
+ <bean id="org.apache.jetspeed.security.UserManager"
+ class="org.apache.jetspeed.security.impl.UserManagerImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
+ </bean>
+
+ <!-- ************** Login Module ************** -->
+ <!-- Security: Login Module Proxy -->
+ <bean id="org.apache.jetspeed.security.LoginModuleProxy"
+ class="org.apache.jetspeed.security.impl.LoginModuleProxyImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.UserManager"/></constructor-arg>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-atz.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-atz.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-atz.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-atz.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- Security: RDBMS Policy implementation for JAAS -->
+ <bean id="org.apache.jetspeed.security.impl.RdbmsPolicy"
+ class="org.apache.jetspeed.security.impl.RdbmsPolicy"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.PermissionManager"/></constructor-arg>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-managers.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-managers.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-managers.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-managers.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- Security: User Manager -->
+ <bean id="org.apache.jetspeed.security.UserManager"
+ class="org.apache.jetspeed.security.impl.UserManagerImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
+ </bean>
+
+ <!-- Security: Group Manager -->
+ <bean id="org.apache.jetspeed.security.GroupManager"
+ class="org.apache.jetspeed.security.impl.GroupManagerImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
+ </bean>
+
+ <!-- Security: Role Manager -->
+ <bean id="org.apache.jetspeed.security.RoleManager"
+ class="org.apache.jetspeed.security.impl.RoleManagerImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
+ </bean>
+
+ <!-- Security: Permission Manager -->
+ <bean id="org.apache.jetspeed.security.impl.PermissionManagerImpl"
+ class="org.apache.jetspeed.security.impl.PermissionManagerImpl" />
+
+ <bean id="org.apache.jetspeed.security.PermissionManager" parent="baseTransactionProxy"
+ name="permissionManager" >
+ <property name="proxyInterfaces">
+ <value>org.apache.jetspeed.security.PermissionManager</value>
+ </property>
+ <property name="target">
+ <ref bean="org.apache.jetspeed.security.impl.PermissionManagerImpl"/>
+ </property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="remove*">PROPAGATION_REQUIRED</prop>
+ <prop key="grant*">PROPAGATION_REQUIRED</prop>
+ <prop key="revoke*">PROPAGATION_REQUIRED</prop>
+ <prop key="grant*">PROPAGATION_REQUIRED</prop>
+ <prop key="add*">PROPAGATION_REQUIRED</prop>
+ <prop key="*">PROPAGATION_SUPPORTS</prop>
+ </props>
+ </property>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-providers.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-providers.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-providers.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-providers.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- ************** Security Providers ************** -->
+ <!-- Security: Default Authentication Provider -->
+ <bean id="org.apache.jetspeed.security.AuthenticationProvider"
+ class="org.apache.jetspeed.security.impl.AuthenticationProviderImpl"
+ >
+ <constructor-arg index="0"><value>DefaultAuthenticator</value></constructor-arg>
+ <constructor-arg index="1"><value>The default authenticator</value></constructor-arg>
+ <constructor-arg index="2"><value>login.conf</value></constructor-arg>
+ <constructor-arg index="3"><ref bean="org.apache.jetspeed.security.spi.CredentialHandler"/></constructor-arg>
+ <constructor-arg index="4"><ref bean="org.apache.jetspeed.security.spi.UserSecurityHandler"/></constructor-arg>
+ </bean>
+
+ <!-- Security: Authentication Provider Proxy -->
+ <bean id="org.apache.jetspeed.security.AuthenticationProviderProxy"
+ class="org.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl"
+ >
+ <constructor-arg >
+ <list>
+ <ref bean="org.apache.jetspeed.security.AuthenticationProvider"/>
+ </list>
+ </constructor-arg>
+ <constructor-arg ><value>DefaultAuthenticator</value></constructor-arg>
+ </bean>
+
+ <!-- Security: Security Provider -->
+ <bean id="org.apache.jetspeed.security.SecurityProvider"
+ class="org.apache.jetspeed.security.impl.SecurityProviderImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.AuthenticationProviderProxy"/></constructor-arg>
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.RoleSecurityHandler"/></constructor-arg>
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.GroupSecurityHandler"/></constructor-arg>
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityMappingHandler"/></constructor-arg>
+ </bean>
+
+ <!-- Security: Authorization Provider -->
+ <bean id="org.apache.jetspeed.security.AuthorizationProvider"
+ class="org.apache.jetspeed.security.impl.AuthorizationProviderImpl"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.impl.RdbmsPolicy"/></constructor-arg>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atn.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atn.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atn.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atn.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- ************** Security SPI Handlers ************** -->
+ <bean id="org.apache.jetspeed.security.spi.CredentialPasswordValidator"
+ class="org.apache.jetspeed.security.spi.impl.DefaultCredentialPasswordValidator"/>
+
+ <bean id="org.apache.jetspeed.security.spi.CredentialPasswordEncoder"
+ class="org.apache.jetspeed.security.spi.impl.MessageDigestCredentialPasswordEncoder">
+ <constructor-arg index="0"><value>SHA-1</value></constructor-arg>
+ </bean>
+
+ <bean id="org.apache.jetspeed.security.spi.PasswordCredentialProvider"
+ class="org.apache.jetspeed.security.spi.impl.DefaultPasswordCredentialProvider">
+ <constructor-arg index="0"><ref bean="org.apache.jetspeed.security.spi.CredentialPasswordValidator"/></constructor-arg>
+ <constructor-arg index="1"><ref bean="org.apache.jetspeed.security.spi.CredentialPasswordEncoder"/></constructor-arg>
+ </bean>
+
+ <bean id="org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor"
+ class="org.apache.jetspeed.security.spi.impl.InternalPasswordCredentialHistoryHandlingInterceptor">
+ <!-- maxNumberOfAuthenticationFailures -->
+ <constructor-arg index="0"><value>3</value></constructor-arg>
+ <!-- maxLifeSpanInDays -->
+ <constructor-arg index="1"><value>60</value></constructor-arg>
+ <!-- historySize -->
+ <constructor-arg index="2"><value>3</value></constructor-arg>
+ </bean>
+
+ <!-- Security SPI: CredentialHandler -->
+ <bean id="org.apache.jetspeed.security.spi.CredentialHandler"
+ class="org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler"
+ >
+ <constructor-arg index="0"><ref bean="org.apache.jetspeed.security.spi.SecurityAccess"/></constructor-arg>
+ <constructor-arg index="1"><ref bean="org.apache.jetspeed.security.spi.PasswordCredentialProvider"/></constructor-arg>
+ <constructor-arg index="2"><ref bean="org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor"/></constructor-arg>
+ </bean>
+
+ <!-- Security SPI: UserSecurityHandler -->
+ <!-- The DefaultUSerSecurityHandler uses the raw SecurityAccessImpl so that it
+ may demarcate its own transactions -->
+ <bean id="org.apache.jetspeed.security.spi.UserSecurityHandlerImpl"
+ class="org.apache.jetspeed.security.spi.impl.DefaultUserSecurityHandler"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityAccess"/></constructor-arg>
+ </bean>
+
+ <bean id="org.apache.jetspeed.security.spi.UserSecurityHandler" parent="baseTransactionProxy"
+ name="userSecurityHandler" >
+ <property name="proxyInterfaces">
+ <value>org.apache.jetspeed.security.spi.UserSecurityHandler</value>
+ </property>
+ <property name="target">
+ <ref bean="org.apache.jetspeed.security.spi.UserSecurityHandlerImpl"/>
+ </property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="*">PROPAGATION_REQUIRED</prop>
+ </props>
+ </property>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atz.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atz.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atz.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi-atz.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- ************** Security SPI Handlers ************** -->
+ <!-- Security SPI: RoleSecurityHandler -->
+ <bean id="org.apache.jetspeed.security.spi.RoleSecurityHandler"
+ class="org.apache.jetspeed.security.spi.impl.DefaultRoleSecurityHandler"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityAccess"/></constructor-arg>
+ </bean>
+
+ <!-- Security SPI: GroupSecurityHandler -->
+ <bean id="org.apache.jetspeed.security.spi.GroupSecurityHandler"
+ class="org.apache.jetspeed.security.spi.impl.DefaultGroupSecurityHandler"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityAccess"/></constructor-arg>
+ </bean>
+
+ <!-- Security SPI: SecurityMappingHandler -->
+ <bean id="org.apache.jetspeed.security.spi.SecurityMappingHandler"
+ class="org.apache.jetspeed.security.spi.impl.DefaultSecurityMappingHandler"
+ >
+ <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityAccess"/></constructor-arg>
+ <!-- Default role hierarchy strategy is by generalization. Add contructor-arg to change the strategy. -->
+ <!-- Default group hierarchy strategy is by generalization. Add contructor-arg to change the strategy. -->
+ </bean>
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/security-spi.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+<beans>
+
+ <!-- ************** Security SPI Handlers ************** -->
+ <!-- Security SPI: CommonQueries -->
+ <bean id="org.apache.jetspeed.security.spi.impl.SecurityAccessImpl"
+ class="org.apache.jetspeed.security.spi.impl.SecurityAccessImpl"
+ init-method="init"
+ >
+ <constructor-arg ><value>META-INF/security_repository.xml</value></constructor-arg>
+ <property name="jcdAlias"><value>jetspeed-global</value></property>
+ </bean>
+
+ <bean id="org.apache.jetspeed.security.spi.SecurityAccess" parent="baseTransactionProxy"
+ name="SecurityCommonQueries" >
+ <property name="proxyInterfaces">
+ <value>org.apache.jetspeed.security.spi.SecurityAccess</value>
+ </property>
+ <property name="target">
+ <ref bean="org.apache.jetspeed.security.spi.impl.SecurityAccessImpl"/>
+ </property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="remove*">PROPAGATION_REQUIRED</prop>
+ <prop key="set*">PROPAGATION_REQUIRED</prop>
+ <prop key="*">PROPAGATION_SUPPORTS</prop>
+ </props>
+ </property>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/transaction.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/transaction.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/transaction.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-secsvc/transaction.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+<!--
+ - Application context definition for PortletRegistry using Apache OJB.
+ -->
+<beans>
+
+ <!-- Transaction manager for a single OJB PersistenceBroker (alternative to JTA) -->
+ <bean id="transactionManager" class="org.springframework.orm.ojb.PersistenceBrokerTransactionManager">
+ <property name="jcdAlias"><value>jetspeed-global</value></property>
+ </bean>
+
+ <!-- Transaction manager that delegates to JTA (for a transactional JNDI DataSource) -->
+ <!--
+ <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"/>
+ -->
+
+
+
+ <!--
+ - A parent bean definition which is a base definition for transaction proxies.
+ - It is markes as abstract, since it is never supposed to be instantiated itself.
+ - We set shared transaction attributes here, following our naming patterns.
+ - The attributes can still be overridden in child bean definitions.
+ -->
+ <bean id="baseTransactionProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
+ abstract="true">
+ <property name="transactionManager"><ref bean="transactionManager"/></property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="*">PROPAGATION_REQUIRED</prop>
+ </props>
+ </property>
+ </bean>
+
+</beans>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-service.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-service.xml?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-service.xml (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/META-INF/jboss-service.xml Wed Jun 22 20:34:26 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+
+<server>
+
+ <mbean code="org.apache.jetspeed.appservers.security.jboss.JetspeedSecurityService"
+ name="org.apache.jetspeed:service=JetspeedSecurityService">
+ <!--
+ <attribute name="DirectoryEJBName">@@@_Utility-EJBs_EJBTimerDirectoryEJB_JNDI_Name_@@@</attribute>
+ -->
+ </mbean>
+
+</server>
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityService.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityService.java?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityService.java (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityService.java Wed Jun 22 20:34:26 2005
@@ -0,0 +1,35 @@
+/* Copyright 2004 Apache Software Foundation
+*
+* Licensed 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.jetspeed.appservers.security.jboss;
+
+import org.apache.jetspeed.security.spi.impl.SecurityAccessImpl;
+import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
+import org.springframework.context.support.GenericApplicationContext;
+import org.springframework.core.io.ClassPathResource;
+
+public class JetspeedSecurityService implements JetspeedSecurityServiceMBean {
+
+ private GenericApplicationContext ctx;
+
+ public JetspeedSecurityService () {
+ ctx = new GenericApplicationContext();
+ XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(ctx);
+ xmlReader.loadBeanDefinitions
+ (new ClassPathResource
+ ("META-INF/jboss-secsvc/jboss-security-service.xml"));
+ ctx.refresh();
+ }
+
+}
Added: portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityServiceMBean.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityServiceMBean.java?rev=193064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityServiceMBean.java (added)
+++ portals/jetspeed-2/trunk/app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/JetspeedSecurityServiceMBean.java Wed Jun 22 20:34:26 2005
@@ -0,0 +1,18 @@
+/* Copyright 2004 Apache Software Foundation
+*
+* Licensed 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.jetspeed.appservers.security.jboss;
+
+public interface JetspeedSecurityServiceMBean {
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org