JBoss Identity SVN: r451 - identity-federation/trunk/assembly.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-04-22 17:46:11 -0400 (Wed, 22 Apr 2009)
New Revision: 451
Modified:
identity-federation/trunk/assembly/bin.xml
identity-federation/trunk/assembly/sources.xml
Log:
fix the module names
Modified: identity-federation/trunk/assembly/bin.xml
===================================================================
--- identity-federation/trunk/assembly/bin.xml 2009-04-22 15:17:41 UTC (rev 450)
+++ identity-federation/trunk/assembly/bin.xml 2009-04-22 21:46:11 UTC (rev 451)
@@ -5,19 +5,19 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
- <directory>${basedir}/../identity-xmlsecmodel/target/classes</directory>
+ <directory>${basedir}/../jboss-identity-xmlsec-model/target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-model/target/classes</directory>
+ <directory>${basedir}/../jboss-identity-fed-model/target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-core/target/classes</directory>
+ <directory>${basedir}/../jboss-identity-fed-core/target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-api/target/classes/</directory>
+ <directory>${basedir}/../jboss-identity-fed-api/target/classes/</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
Modified: identity-federation/trunk/assembly/sources.xml
===================================================================
--- identity-federation/trunk/assembly/sources.xml 2009-04-22 15:17:41 UTC (rev 450)
+++ identity-federation/trunk/assembly/sources.xml 2009-04-22 21:46:11 UTC (rev 451)
@@ -6,19 +6,19 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
- <directory>${basedir}/../identity-xmlsecmodel/src/main/java</directory>
+ <directory>${basedir}/../jboss-identity-xmlsec-model/src/main/java</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-model/src/main/java</directory>
+ <directory>${basedir}/../jboss-identity-fed-model/src/main/java</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-core/src/main/java</directory>
+ <directory>${basedir}/../jboss-identity-fed-core/src/main/java</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
- <directory>${basedir}/../identity-fed-api/src/main/java</directory>
+ <directory>${basedir}/../jboss-identity-fed-api/src/main/java</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
15 years, 9 months
JBoss Identity SVN: r450 - in idm/trunk/integration/jboss5/src/main: resources and 1 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-22 11:17:41 -0400 (Wed, 22 Apr 2009)
New Revision: 450
Modified:
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java
idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
idm/trunk/integration/jboss5/src/main/resources/assembly.xml
Log:
* Refactor the IDMService, using the @JMX instead.
* update the jboss-beans.xml, adding the dependency for datasource.
Modified: idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java
===================================================================
--- idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java 2009-04-21 03:58:16 UTC (rev 449)
+++ idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java 2009-04-22 15:17:41 UTC (rev 450)
@@ -5,9 +5,9 @@
import java.util.logging.Logger;
-import javax.management.MBeanServer;
import javax.naming.InitialContext;
+import org.jboss.aop.microcontainer.aspects.jmx.JMX;
import org.jboss.identity.idm.api.IdentitySessionFactory;
import org.jboss.identity.idm.impl.configuration.IdentityConfigurationImpl;
@@ -18,6 +18,7 @@
* @author Jeff Yu
*
*/
+(a)JMX(exposedInterface=IDMServiceMBean.class, name="jboss.identity:service=IDMService")
public class IDMService implements IDMServiceMBean {
public final static String DEFAULT_JNDI = "java:/IdentitySessionFactory";
@@ -29,14 +30,11 @@
private String idmSessionFactoryJNDI;
private String SQLScript;
-
- private MBeanServer mbeanServer;
-
+
private IdentitySessionFactory sessionFactory;
- public IDMService(String idmConfigFile, MBeanServer mbeanServer) {
+ public IDMService(String idmConfigFile) {
this.idmConfigFile = idmConfigFile;
- this.mbeanServer = mbeanServer;
}
@@ -61,9 +59,8 @@
}
- public void create() throws Exception {
+ public void start() throws Exception {
logger.info("Starting the JBoss Identity Management Service");
- mbeanServer.registerMBean(this, IDMServiceMBean.OBJECT_NAME);
startIdentitySessionFactory();
logger.info("Started the JBoss Identity Management Service");
}
@@ -74,9 +71,11 @@
context.bind(getIdmSessionFactoryJNDI(), sessionFactory);
}
+ public void stop() throws Exception {
+ logger.info("Stopping the JBoss Identity Management Service");
+ }
+
public void destroy() throws Exception {
- logger.info("Stopping the JBoss Identity Management Service");
- mbeanServer.unregisterMBean(IDMServiceMBean.OBJECT_NAME);
sessionFactory.close();
InitialContext context = new InitialContext();
context.unbind(getIdmSessionFactoryJNDI());
Modified: idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml 2009-04-21 03:58:16 UTC (rev 449)
+++ idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml 2009-04-22 15:17:41 UTC (rev 450)
@@ -9,10 +9,10 @@
class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss-idm.xml</parameter>
- <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
</constructor>
<property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
<property name="SQLScript">hsql/idm.create.hsqldb.sql</property>
+ <depends>jboss.jca:service=DataSourceBinding,name=jbossidmDS</depends>
</bean>
</deployment>
\ No newline at end of file
Modified: idm/trunk/integration/jboss5/src/main/resources/assembly.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/assembly.xml 2009-04-21 03:58:16 UTC (rev 449)
+++ idm/trunk/integration/jboss5/src/main/resources/assembly.xml 2009-04-22 15:17:41 UTC (rev 450)
@@ -12,7 +12,7 @@
<includes>
<include>META-INF/*.xml</include>
<include>jboss-idm.xml</include>
- <include>hibernate-jboss-identity.cfg.xml</include>
+ <include>jboss.idm.hibernate.cfg.xml</include>
</includes>
</fileSet>
</fileSets>
15 years, 9 months
JBoss Identity SVN: r449 - identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/util/cert.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-04-20 23:58:16 -0400 (Mon, 20 Apr 2009)
New Revision: 449
Modified:
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/util/cert/KeyStoreUtil.java
Log:
keystore related util methods
Modified: identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/util/cert/KeyStoreUtil.java
===================================================================
--- identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/util/cert/KeyStoreUtil.java 2009-04-21 03:37:19 UTC (rev 448)
+++ identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/util/cert/KeyStoreUtil.java 2009-04-21 03:58:16 UTC (rev 449)
@@ -23,6 +23,7 @@
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
@@ -43,6 +44,20 @@
public class KeyStoreUtil
{
/**
+ * Get the KeyStore
+ * @param keyStoreFile
+ * @param storePass
+ * @return
+ * @throws GeneralSecurityException
+ * @throws IOException
+ */
+ public static KeyStore getKeyStore(File keyStoreFile, char[] storePass) throws GeneralSecurityException, IOException
+ {
+ FileInputStream fis = new FileInputStream(keyStoreFile);
+ return getKeyStore(fis,storePass);
+ }
+
+ /**
* Get the Keystore given the url to the keystore file as a string
* @param fileURL
* @param storePass
@@ -128,8 +143,30 @@
// Get public key
publicKey = cert.getPublicKey();
- }
-
+ }
return publicKey;
}
+
+ /**
+ * Add a certificate to the KeyStore
+ * @param keystoreFile
+ * @param storePass
+ * @param alias
+ * @param cert
+ * @throws GeneralSecurityException
+ * @throws IOException
+ */
+ public static void addCertificate(File keystoreFile, char[] storePass, String alias, Certificate cert)
+ throws GeneralSecurityException, IOException
+ {
+ KeyStore keystore = getKeyStore(keystoreFile, storePass);
+
+ // Add the certificate
+ keystore.setCertificateEntry(alias, cert);
+
+ // Save the new keystore contents
+ FileOutputStream out = new FileOutputStream(keystoreFile);
+ keystore.store(out, storePass);
+ out.close();
+ }
}
\ No newline at end of file
15 years, 9 months
JBoss Identity SVN: r448 - identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-04-20 23:37:19 -0400 (Mon, 20 Apr 2009)
New Revision: 448
Added:
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilderUnitTestCase.java
Log:
JBID-42: metadata profile building blocks
Added: identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilderUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilderUnitTestCase.java (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilderUnitTestCase.java 2009-04-21 03:37:19 UTC (rev 448)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.identity.federation.api.saml.v2.metadata;
+
+import static org.junit.Assert.*;
+
+import org.jboss.identity.federation.api.saml.v2.metadata.KeyDescriptorMetaDataBuilder;
+import org.jboss.identity.federation.api.w3.xmldsig.KeyInfoBuilder;
+import org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType;
+import org.jboss.identity.xmlsec.w3.xmldsig.KeyInfoType;
+import org.junit.Test;
+
+
+/**
+ * Unit Test the KeyDescriptorMetaDataBuilder
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Apr 20, 2009
+ */
+public class KeyDescriptorMetaDataBuilderUnitTestCase
+{
+ @Test
+ public void testCreateKeyDescriptor()
+ {
+ KeyInfoType keyInfo = KeyInfoBuilder.createKeyInfo("testKey");
+
+ String algorithm = "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
+
+ KeyDescriptorType keyDescriptor = KeyDescriptorMetaDataBuilder.createKeyDescriptor(
+ keyInfo, algorithm, 256, false, true);
+ assertNotNull("Key Descriptor not null", keyDescriptor);
+ }
+
+}
\ No newline at end of file
15 years, 9 months
JBoss Identity SVN: r447 - in identity-federation/trunk: jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2 and 7 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2009-04-20 23:28:49 -0400 (Mon, 20 Apr 2009)
New Revision: 447
Added:
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilder.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/MetaDataBuilder.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/xmldsig/
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/xmldsig/KeyInfoBuilder.java
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/
identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/MetaDataBuilderUnitTestCase.java
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/metadata/
Modified:
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLConstants.java
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLURIConstants.java
Log:
JBID-42: metadata profile building blocks
Added: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilder.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilder.java (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/KeyDescriptorMetaDataBuilder.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.api.saml.v2.metadata;
+
+import java.math.BigInteger;
+
+import org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.KeyTypes;
+import org.jboss.identity.federation.saml.v2.metadata.ObjectFactory;
+import org.jboss.identity.xmlsec.w3.xmldsig.KeyInfoType;
+import org.jboss.identity.xmlsec.w3.xmlenc.EncryptionMethodType;
+
+/**
+ * MetaDataBuilder for the KeyDescriptor
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Apr 20, 2009
+ */
+public class KeyDescriptorMetaDataBuilder
+{
+ /**
+ * Create a Key Descriptor Type
+ * @return
+ */
+ public static KeyDescriptorType createKeyDescriptor(KeyInfoType keyInfo,
+ String algorithm, int keySize,
+ boolean isSigningKey, boolean isEncryptionKey)
+ {
+ if(keyInfo == null)
+ throw new IllegalArgumentException("keyInfo is null");
+
+ if(isSigningKey == isEncryptionKey)
+ throw new IllegalArgumentException("Only one of isSigningKey " +
+ "and isEncryptionKey should be true");
+
+ KeyDescriptorType keyDescriptor = getObjectFactory().createKeyDescriptorType();
+
+ if(algorithm != null && algorithm.length() > 0)
+ {
+ EncryptionMethodType encryptionMethod = new EncryptionMethodType();
+ encryptionMethod.setAlgorithm(algorithm);
+
+ encryptionMethod.getContent().add(BigInteger.valueOf(keySize));
+
+ keyDescriptor.getEncryptionMethod().add(encryptionMethod);
+ }
+
+ if(isSigningKey)
+ keyDescriptor.setUse(KeyTypes.SIGNING);
+ if(isEncryptionKey)
+ keyDescriptor.setUse(KeyTypes.ENCRYPTION);
+
+ return keyDescriptor;
+ }
+
+ /**
+ * Return the metadata object factory
+ * @return
+ */
+ public static ObjectFactory getObjectFactory()
+ {
+ return MetaDataBuilder.getObjectFactory();
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/MetaDataBuilder.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/MetaDataBuilder.java (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/saml/v2/metadata/MetaDataBuilder.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -0,0 +1,178 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.api.saml.v2.metadata;
+
+import java.util.List;
+
+import org.jboss.identity.federation.core.saml.v2.constants.JBossSAMLConstants;
+import org.jboss.identity.federation.saml.v2.assertion.AttributeType;
+import org.jboss.identity.federation.saml.v2.metadata.EndpointType;
+import org.jboss.identity.federation.saml.v2.metadata.EntityDescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.IDPSSODescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.LocalizedNameType;
+import org.jboss.identity.federation.saml.v2.metadata.LocalizedURIType;
+import org.jboss.identity.federation.saml.v2.metadata.ObjectFactory;
+import org.jboss.identity.federation.saml.v2.metadata.OrganizationType;
+import org.jboss.identity.federation.saml.v2.metadata.SPSSODescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.SSODescriptorType;
+
+/**
+ * SAML2 Metadata Builder API
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Apr 19, 2009
+ */
+public class MetaDataBuilder
+{
+ private static ObjectFactory oFact = new ObjectFactory();
+
+ /**
+ * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint)
+ * @param binding
+ * @param location
+ * @param responseLocation
+ * @return
+ */
+ public static EndpointType createEndpoint(String binding, String location,
+ String responseLocation)
+ {
+ EndpointType endpoint = oFact.createEndpointType();
+ endpoint.setBinding(binding);
+ endpoint.setLocation(location);
+ endpoint.setResponseLocation(responseLocation);
+ return endpoint;
+ }
+
+ /**
+ * Create an Organization
+ * @param organizationName
+ * @param organizationDisplayName
+ * @param organizationURL
+ * @param lang
+ * @return
+ */
+ public static OrganizationType createOrganization(String organizationName,
+ String organizationDisplayName, String organizationURL, String lang)
+ {
+ if(organizationName == null)
+ throw new IllegalArgumentException("organizationName is null");
+ if(organizationDisplayName == null)
+ throw new IllegalArgumentException("organizationDisplayName is null");
+ if(organizationURL == null)
+ throw new IllegalArgumentException("organizationURL is null");
+ if(lang == null)
+ lang = JBossSAMLConstants.LANG_EN.get();
+
+ //orgName
+ LocalizedNameType orgName = oFact.createLocalizedNameType();
+ orgName.setValue(organizationName);
+ orgName.setLang(lang);
+
+ //orgDisplayName
+ LocalizedNameType orgDisplayName = oFact.createLocalizedNameType();
+ orgDisplayName.setValue(organizationDisplayName);
+ orgDisplayName.setLang(lang);
+
+ //orgURL
+ LocalizedURIType orgURL = oFact.createLocalizedURIType();
+ orgURL.setValue(organizationURL);
+ orgURL.setLang(lang);
+
+ OrganizationType orgType = oFact.createOrganizationType();
+ orgType.getOrganizationName().add(orgName);
+ orgType.getOrganizationDisplayName().add(orgDisplayName);
+ orgType.getOrganizationURL().add(orgURL);
+ return orgType;
+ }
+
+ /**
+ * Create an Entity Descriptor
+ * @param idpOrSPDescriptor a descriptor for either the IDP or SSO
+ * @return
+ */
+ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor)
+ {
+ EntityDescriptorType entity = oFact.createEntityDescriptorType();
+ entity.getRoleDescriptorOrIDPSSODescriptorOrSPSSODescriptor().add(idpOrSPDescriptor);
+ return entity;
+ }
+
+ /**
+ * Create a IDP SSO metadata descriptor
+ * @param requestsSigned
+ * @param keyDescriptorType
+ * @param ssoEndPoint
+ * @param sloEndPoint
+ * @param attributes
+ * @param org
+ * @return
+ */
+ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned,
+ KeyDescriptorType keyDescriptorType,
+ EndpointType ssoEndPoint,
+ EndpointType sloEndPoint,
+ List<AttributeType> attributes,
+ OrganizationType org)
+ {
+ IDPSSODescriptorType idp = oFact.createIDPSSODescriptorType();
+ idp.getSingleSignOnService().add(ssoEndPoint);
+ idp.getSingleLogoutService().add(sloEndPoint);
+ idp.getAttribute().addAll(attributes);
+ idp.getKeyDescriptor().add(keyDescriptorType);
+ idp.setWantAuthnRequestsSigned(requestsSigned);
+ idp.setOrganization(org);
+ return idp;
+ }
+
+ /**
+ * Create a IDP SSO metadata descriptor
+ * @param requestsSigned
+ * @param keyDescriptorType
+ * @param ssoEndPoint
+ * @param sloEndPoint
+ * @param attributes
+ * @param org
+ * @return
+ */
+ public static SPSSODescriptorType createSPSSODescriptor(boolean requestsSigned,
+ KeyDescriptorType keyDescriptorType,
+ EndpointType sloEndPoint,
+ List<AttributeType> attributes,
+ OrganizationType org)
+ {
+ SPSSODescriptorType sp = oFact.createSPSSODescriptorType();
+ sp.getSingleLogoutService().add(sloEndPoint);
+ sp.getKeyDescriptor().add(keyDescriptorType);
+ sp.setAuthnRequestsSigned(requestsSigned);
+ sp.setOrganization(org);
+ return sp;
+ }
+
+ /**
+ * Get the ObjectFactory for method chaining
+ * @return
+ */
+ public static ObjectFactory getObjectFactory()
+ {
+ return oFact;
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/xmldsig/KeyInfoBuilder.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/xmldsig/KeyInfoBuilder.java (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/w3/xmldsig/KeyInfoBuilder.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.federation.api.w3.xmldsig;
+
+import org.jboss.identity.xmlsec.w3.xmldsig.KeyInfoType;
+import org.jboss.identity.xmlsec.w3.xmldsig.ObjectFactory;
+
+
+/**
+ * Builder for the W3C xml-dsig KeyInfoType
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Apr 20, 2009
+ */
+public class KeyInfoBuilder
+{
+ private static ObjectFactory oFact = new ObjectFactory();
+
+ /**
+ * Create a KeyInfoType
+ * @return
+ */
+ public static KeyInfoType createKeyInfo(String id)
+ {
+ KeyInfoType keyInfo = oFact.createKeyInfoType();
+
+ keyInfo.setId(id);
+ return keyInfo;
+ }
+
+ /**
+ * Return the object factory. Useful in method chaining
+ * @return
+ */
+ public static ObjectFactory getObjectFactory()
+ {
+ return oFact;
+ }
+}
\ No newline at end of file
Added: identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/MetaDataBuilderUnitTestCase.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/MetaDataBuilderUnitTestCase.java (rev 0)
+++ identity-federation/trunk/jboss-identity-fed-api/src/test/java/org/jboss/test/identity/federation/api/saml/v2/metadata/MetaDataBuilderUnitTestCase.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -0,0 +1,168 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.identity.federation.api.saml.v2.metadata;
+
+import static org.junit.Assert.*;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.identity.federation.api.saml.v2.metadata.KeyDescriptorMetaDataBuilder;
+import org.jboss.identity.federation.api.saml.v2.metadata.MetaDataBuilder;
+import org.jboss.identity.federation.api.w3.xmldsig.KeyInfoBuilder;
+import org.jboss.identity.federation.core.saml.v2.constants.JBossSAMLURIConstants;
+import org.jboss.identity.federation.saml.v2.assertion.AttributeType;
+import org.jboss.identity.federation.saml.v2.metadata.EndpointType;
+import org.jboss.identity.federation.saml.v2.metadata.EntityDescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.IDPSSODescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType;
+import org.jboss.identity.federation.saml.v2.metadata.OrganizationType;
+import org.jboss.identity.federation.saml.v2.metadata.SPSSODescriptorType;
+import org.jboss.identity.xmlsec.w3.xmldsig.KeyInfoType;
+import org.junit.Test;
+
+/**
+ * Unit test the MetaDataBuilder API
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Apr 20, 2009
+ */
+public class MetaDataBuilderUnitTestCase
+{
+ String organizationName = "JBoss";
+ String organizationDisplayName = "JBoss Unit";
+ String organizationURL = "http://www.jboss.org";
+ String lang = "en";
+
+
+ @Test
+ public void testCreateOrganization()
+ {
+ OrganizationType org = createJBossOrganization("en");
+
+ assertNotNull("Org is not null", org);
+ assertEquals(organizationName,org.getOrganizationName().get(0).getValue());
+ assertEquals(organizationDisplayName, org.getOrganizationDisplayName().get(0).getValue());
+ assertEquals(organizationURL, org.getOrganizationURL().get(0).getValue());
+
+ //Check the lang
+ assertEquals(lang, org.getOrganizationName().get(0).getLang());
+ assertEquals(lang, org.getOrganizationDisplayName().get(0).getLang());
+ assertEquals(lang, org.getOrganizationURL().get(0).getLang());
+ }
+
+ @Test
+ public void testCreateEntityDescriptor()
+ {
+ IDPSSODescriptorType idp = this.createIDPSSODescriptor();
+ EntityDescriptorType idpEntity = MetaDataBuilder.createEntityDescriptor(idp);
+ assertNotNull("IDP Entity Descriptor not null", idpEntity);
+
+ SPSSODescriptorType sp = this.createSPSSODescriptor();
+ EntityDescriptorType spEntity = MetaDataBuilder.createEntityDescriptor(sp);
+ assertNotNull("SP Entity Descriptor not null", spEntity);
+ }
+
+ @Test
+ public void testCreateIDPSSODescriptor()
+ {
+ IDPSSODescriptorType idp = this.createIDPSSODescriptor();
+ assertNotNull("IDPSSODescriptor is not null", idp);
+ }
+
+ @Test
+ public void testCreateSPSSODescriptor()
+ {
+ SPSSODescriptorType sp = createSPSSODescriptor();
+
+ assertNotNull("IDPSSODescriptor is not null", sp);
+ }
+
+ private SPSSODescriptorType createSPSSODescriptor()
+ {
+ String id = "test-key";
+
+ //TODO: improve keyinfo
+ KeyInfoType keyInfo = KeyInfoBuilder.createKeyInfo(id);
+
+ String algorithm = null;
+
+ KeyDescriptorType keyDescriptorType =
+ KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo,
+ algorithm, 0, true, false);
+
+ List<AttributeType> attributes = new ArrayList<AttributeType>();
+
+ EndpointType sloEndPoint = MetaDataBuilder.createEndpoint(
+ JBossSAMLURIConstants.METADATA_HTTP_REDIRECT_BINDING.get(),
+ "https://SProvider.com/SAML/SLO/Browser",
+ "https://SProvider.com/SAML/SLO/Response");
+
+ SPSSODescriptorType sp = MetaDataBuilder.createSPSSODescriptor(true,
+ keyDescriptorType,
+ sloEndPoint,
+ attributes,
+ createJBossOrganization(lang));
+ return sp;
+ }
+
+ private OrganizationType createJBossOrganization(String language)
+ {
+ return MetaDataBuilder.createOrganization(organizationName,
+ organizationDisplayName,
+ organizationURL,
+ language);
+ }
+
+ private IDPSSODescriptorType createIDPSSODescriptor()
+ {
+ String id = "test-key";
+
+ //TODO: improve keyinfo
+ KeyInfoType keyInfo = KeyInfoBuilder.createKeyInfo(id);
+
+ String algorithm = null;
+
+ KeyDescriptorType keyDescriptorType =
+ KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo,
+ algorithm, 0, true, false);
+
+ List<AttributeType> attributes = new ArrayList<AttributeType>();
+
+ EndpointType ssoEndPoint = MetaDataBuilder.createEndpoint(
+ JBossSAMLURIConstants.METADATA_HTTP_REDIRECT_BINDING.get(),
+ "https://IdentityProvider.com/SAML/SSO/Browser",
+ "https://IdentityProvider.com/SAML/SSO/Response");
+
+ EndpointType sloEndPoint = MetaDataBuilder.createEndpoint(
+ JBossSAMLURIConstants.METADATA_HTTP_REDIRECT_BINDING.get(),
+ "https://IdentityProvider.com/SAML/SLO/Browser",
+ "https://IdentityProvider.com/SAML/SLO/Response");
+
+ return MetaDataBuilder.createIDPSSODescriptor(true,
+ keyDescriptorType,
+ ssoEndPoint,
+ sloEndPoint,
+ attributes,
+ createJBossOrganization(lang));
+
+ }
+}
\ No newline at end of file
Modified: identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLConstants.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLConstants.java 2009-04-20 16:04:30 UTC (rev 446)
+++ identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLConstants.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -28,6 +28,7 @@
*/
public enum JBossSAMLConstants
{
+ LANG_EN("en"),
SIGNATURE_SHA1_WITH_DSA("SHA1withDSA"),
SIGNATURE_SHA1_WITH_RSA("SHA1withRSA"),
VERSION_2_0("2.0");
Modified: identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLURIConstants.java
===================================================================
--- identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLURIConstants.java 2009-04-20 16:04:30 UTC (rev 446)
+++ identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/saml/v2/constants/JBossSAMLURIConstants.java 2009-04-21 03:28:49 UTC (rev 447)
@@ -32,19 +32,31 @@
AC_PASSWORD_PROTECTED_TRANSPORT("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"),
ASSERTION_NSURI("urn:oasis:names:tc:SAML:2.0:assertion"),
ATTRIBUTE_FORMAT_BASIC("urn:oasis:names:tc:SAML:2.0:attrname-format:basic"),
+
+ METADATA_HTTP_REDIRECT_BINDING("urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"),
+
NAMEID_FORMAT_TRANSIENT("urn:oasis:names:tc:SAML:2.0:nameid-format:transient"),
NAMEID_FORMAT_PERSISTENT("urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"),
+
PROTOCOL_NSURI("urn:oasis:names:tc:SAML:2.0:protocol"),
+
SIGNATURE_DSA_SHA1("http://www.w3.org/2000/09/xmldsig#dsa-sha1"),
SIGNATURE_RSA_SHA1("http://www.w3.org/2000/09/xmldsig#rsa-sha1"),
+
SUBJECT_CONFIRMATION_BEARER("urn:oasis:names:tc:SAML:2.0:cm:bearer"),
+
+
STATUS_AUTHNFAILED("urn:oasis:names:tc:SAML:2.0:status:AuthnFailed"),
STATUS_REQUESTOR("urn:oasis:names:tc:SAML:2.0:status:Requestor"),
STATUS_RESPONDER("urn:oasis:names:tc:SAML:2.0:status:Responder"),
STATUS_SUCCESS("urn:oasis:names:tc:SAML:2.0:status:Success"),
STATUS_VERSION_MISMATCH("urn:oasis:names:tc:SAML:2.0:status:VersionMismatch"),
+
+
TRANSFORM_ENVELOPED_SIGNATURE("http://www.w3.org/2000/09/xmldsig#enveloped-signature"),
TRANSFORM_C14N_EXCL_OMIT_COMMENTS("http://www.w3.org/2001/10/xml-exc-c14n#WithComments"),
+
+
XMLSCHEMA_NSURI("http://www.w3.org/2001/XMLSchema"),
XMLDSIG_NSURI("http://www.w3.org/2000/09/xmldsig#"),
XMLENC_NSURI("http://www.w3.org/2001/04/xmlenc#");
15 years, 9 months
JBoss Identity SVN: r446 - in idm/trunk: distro/src/main/resources/installer and 1 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-20 12:04:30 -0400 (Mon, 20 Apr 2009)
New Revision: 446
Added:
idm/trunk/integration/jboss5/src/main/resources/jboss.idm.hibernate.cfg.xml
Removed:
idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml
Modified:
idm/trunk/distro/scripts/antrun-installer.xml
idm/trunk/distro/src/main/resources/installer/install-definition.xml
idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml
Log:
update the hibernate config file name.
(Still one issue left, need to specify the sar depends on the ds JNDI in AS5 way).
Modified: idm/trunk/distro/scripts/antrun-installer.xml
===================================================================
--- idm/trunk/distro/scripts/antrun-installer.xml 2009-04-20 10:37:49 UTC (rev 445)
+++ idm/trunk/distro/scripts/antrun-installer.xml 2009-04-20 16:04:30 UTC (rev 446)
@@ -38,7 +38,7 @@
<property name="compile_classpath" value="${maven.compile.classpath}"/>
<property name="database" value="hsqldb.url" />
- <property name="jdbc.hsqldb.url" value="jdbc:hsqldb:file:target/db/jbossIdm" />
+ <property name="jdbc.hsqldb.url" value="jdbc:hsqldb:file:target/db/jbossidm" />
<property name="config.files.dir" value="${deploy.artifacts.resources}/jbidm-hsqldb-config" />
<property name="db.scripts.dir" value="${output.dir}/config.tool.tmp/hsqldb.scripts" />
<property name="tmp.dir" value="${output.dir}/config.tool.tmp" />
Modified: idm/trunk/distro/src/main/resources/installer/install-definition.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/install-definition.xml 2009-04-20 10:37:49 UTC (rev 445)
+++ idm/trunk/distro/src/main/resources/installer/install-definition.xml 2009-04-20 16:04:30 UTC (rev 446)
@@ -11,11 +11,6 @@
<writeinstallationinformation>no</writeinstallationinformation>
</info>
<guiprefs width="600" height="440" resizable="yes">
- <!--
- <laf name="kunststoff">
- <os family="unix" />
- </laf>
- -->
</guiprefs>
<locale>
<langpack iso3="eng" />
@@ -50,14 +45,6 @@
<!-- Conditions -->
<conditions>
<!-- Target Server Conditions -->
- <condition type="variable" id="isJBoss422">
- <name>jbossSelection</name>
- <value>jboss422</value>
- </condition>
- <condition type="variable" id="isJBoss423">
- <name>jbossSelection</name>
- <value>jboss423</value>
- </condition>
<condition type="variable" id="isJBoss500">
<name>jbossSelection</name>
<value>jboss500</value>
@@ -109,7 +96,7 @@
-->
<pack name="jbossIdm Installation Files" required="yes" preselected="yes">
- <description>Installation directory containing docs, libs, and sources</description>
+ <description>Installation directory containing libs, dbscripts, modules and sources</description>
<!-- jbossidm/doc-->
<file src="@{deploy.artifacts.dir}/jboss.eula.txt" targetdir="$INSTALL_PATH" override="true" />
@@ -136,12 +123,10 @@
<pack name="Install JBoss Identity in JBoss" required="no" preselected="yes">
- <description>Installing the JBoss Identity into JBoss</description>
+ <description>Installing the JBoss idm into JBoss ( the idm-service.sar, and the corresponding datasource)</description>
<!-- jboss idm/idm-service.sar -->
- <fileset dir="@{deploy.artifacts.dir}/modules/idm-service.sar" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar" override="true">
- <include name="*.*"/>
- </fileset>
+ <fileset dir="@{deploy.artifacts.dir}/modules/idm-service.sar" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar" />
<!--
==============================
@@ -166,7 +151,7 @@
<fileset dir="@{deploy.artifacts.dir}/resources/hsqldb"
targetdir="${jbossInstallPath}/server/${jbossTargetServer}/data/hypersonic"
condition="isHypersonic">
- <include name="jbIdm.*" />
+ <include name="jbossidm.*" />
</fileset>
<!-- Database MySQL -->
Deleted: idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml 2009-04-20 10:37:49 UTC (rev 445)
+++ idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml 2009-04-20 16:04:30 UTC (rev 446)
@@ -1,61 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ JBoss, a division of Red Hat ~
- ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
- ~ contributors as indicated by the @authors tag. See the ~
- ~ copyright.txt in the distribution for a full listing of ~
- ~ individual contributors. ~
- ~ ~
- ~ This is free software; you can redistribute it and/or modify it ~
- ~ under the terms of the GNU Lesser General Public License as ~
- ~ published by the Free Software Foundation; either version 2.1 of ~
- ~ the License, or (at your option) any later version. ~
- ~ ~
- ~ This software is distributed in the hope that it will be useful, ~
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
- ~ Lesser General Public License for more details. ~
- ~ ~
- ~ You should have received a copy of the GNU Lesser General Public ~
- ~ License along with this software; if not, write to the Free ~
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
- ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-
-<!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
-<hibernate-configuration>
- <session-factory>
-
- <property name="show_sql">false</property>
- <property name="cache.use_second_level_cache">true</property>
- <property name="cache.use_query_cache">false</property>
-
- <property name="current_session_context_class">thread</property>
-
- <!--<property name="connection.datasource"></property>-->
-
- <property name="hibernate.connection.url">jdbc:hsqldb:mem:guvnor-identity</property>
- <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
- <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
- <property name="hibernate.hbm2ddl.auto">create-drop</property>
- <property name="hibernate.connection.username">sa</property>
- <property name="hibernate.connection.password"></property>
-
- <!-- Mapping classes -->
- <!-- all nessesary mappings are added programatically to the configuration -->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>-->
- <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>-->
-
- </session-factory>
-</hibernate-configuration>
\ No newline at end of file
Modified: idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml 2009-04-20 10:37:49 UTC (rev 445)
+++ idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml 2009-04-20 16:04:30 UTC (rev 446)
@@ -90,7 +90,7 @@
<options>
<option>
<name>hibernateConfiguration</name>
- <value>hibernate-jboss-identity.cfg.xml</value>
+ <value>jboss.idm.hibernate.cfg.xml</value>
</option>
<option>
<name>populateRelationshipTypes</name>
Copied: idm/trunk/integration/jboss5/src/main/resources/jboss.idm.hibernate.cfg.xml (from rev 442, idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml)
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/jboss.idm.hibernate.cfg.xml (rev 0)
+++ idm/trunk/integration/jboss5/src/main/resources/jboss.idm.hibernate.cfg.xml 2009-04-20 16:04:30 UTC (rev 446)
@@ -0,0 +1,61 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+
+ <property name="show_sql">false</property>
+ <property name="cache.use_second_level_cache">true</property>
+ <property name="cache.use_query_cache">false</property>
+
+ <property name="current_session_context_class">thread</property>
+
+ <!--<property name="connection.datasource"></property>-->
+
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbossidm</property>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.hbm2ddl.auto">create-drop</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+
+ <!-- Mapping classes -->
+ <!-- all nessesary mappings are added programatically to the configuration -->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>-->
+
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Property changes on: idm/trunk/integration/jboss5/src/main/resources/jboss.idm.hibernate.cfg.xml
___________________________________________________________________
Name: svn:mergeinfo
+
15 years, 9 months
JBoss Identity SVN: r445 - in idm/trunk: parent and 1 other directory.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-20 06:37:49 -0400 (Mon, 20 Apr 2009)
New Revision: 445
Modified:
idm/trunk/parent/pom.xml
idm/trunk/pom.xml
Log:
Add the distro profile for building distribution.
Modified: idm/trunk/parent/pom.xml
===================================================================
--- idm/trunk/parent/pom.xml 2009-04-20 04:16:33 UTC (rev 444)
+++ idm/trunk/parent/pom.xml 2009-04-20 10:37:49 UTC (rev 445)
@@ -71,6 +71,52 @@
</plugins>
</pluginManagement>
</build>
+
+ <!-- Profiles -->
+ <profiles>
+
+ <profile>
+ <id>distro</id>
+ <modules>
+ <module>../distro</module>
+ </modules>
+ <properties>
+ <skipTests>true</skipTests>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<repositories>
<repository>
Modified: idm/trunk/pom.xml
===================================================================
--- idm/trunk/pom.xml 2009-04-20 04:16:33 UTC (rev 444)
+++ idm/trunk/pom.xml 2009-04-20 10:37:49 UTC (rev 445)
@@ -23,53 +23,7 @@
<module>assembly</module>
</modules>
- <!-- Profiles -->
- <profiles>
- <profile>
- <id>distro</id>
- <modules>
- <module>distro</module>
- </modules>
- <properties>
- <skipTests>true</skipTests>
- </properties>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-
<reporting>
<plugins>
<plugin>
15 years, 9 months
JBoss Identity SVN: r444 - in idm/trunk: distro/src/main/resources/installer and 5 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-20 00:16:33 -0400 (Mon, 20 Apr 2009)
New Revision: 444
Added:
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMServiceMBean.java
Removed:
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/
Modified:
idm/trunk/distro/scripts/antrun-installer.xml
idm/trunk/distro/scripts/assembly-deploy-artifacts.xml
idm/trunk/distro/src/main/resources/installer/install-definition.xml
idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
Log:
Refactor the IDMService pakcage name, add the 'idm'.
Add the sources into distribution. (Trying to remove the assembly module, as the distro will contain all of it)
Modified: idm/trunk/distro/scripts/antrun-installer.xml
===================================================================
--- idm/trunk/distro/scripts/antrun-installer.xml 2009-04-19 18:26:53 UTC (rev 443)
+++ idm/trunk/distro/scripts/antrun-installer.xml 2009-04-20 04:16:33 UTC (rev 444)
@@ -46,7 +46,7 @@
</ant>
<sql driver="org.hsqldb.jdbcDriver"
- url="jdbc:hsqldb:file:target/db/jbossIdm"
+ url="jdbc:hsqldb:file:target/db/jbossidm"
userid="sa"
password=""
onerror="continue">
Modified: idm/trunk/distro/scripts/assembly-deploy-artifacts.xml
===================================================================
--- idm/trunk/distro/scripts/assembly-deploy-artifacts.xml 2009-04-19 18:26:53 UTC (rev 443)
+++ idm/trunk/distro/scripts/assembly-deploy-artifacts.xml 2009-04-20 04:16:33 UTC (rev 444)
@@ -32,7 +32,8 @@
<scope>test</scope>
<unpack>false</unpack>
</dependencySet>
- <!-- resources -->
+
+ <!-- modules -->
<dependencySet>
<outputDirectory>modules</outputDirectory>
<useStrictFiltering>true</useStrictFiltering>
@@ -52,5 +53,35 @@
</includes>
<outputDirectory></outputDirectory>
</fileSet>
+
+ <!-- source -->
+ <fileSet>
+ <directory>../idm-common/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../idm-model/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../idm-api/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../idm-spi/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../idm/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../integration/jboss5/src/main/java</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../integration/jboss5/src/main/resources</directory>
+ <outputDirectory>src</outputDirectory>
+ </fileSet>
</fileSets>
</assembly>
\ No newline at end of file
Modified: idm/trunk/distro/src/main/resources/installer/install-definition.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/install-definition.xml 2009-04-19 18:26:53 UTC (rev 443)
+++ idm/trunk/distro/src/main/resources/installer/install-definition.xml 2009-04-20 04:16:33 UTC (rev 444)
@@ -111,16 +111,17 @@
<pack name="jbossIdm Installation Files" required="yes" preselected="yes">
<description>Installation directory containing docs, libs, and sources</description>
- <!-- jbossIdm/ -->
+ <!-- jbossidm/doc-->
<file src="@{deploy.artifacts.dir}/jboss.eula.txt" targetdir="$INSTALL_PATH" override="true" />
<file src="@{deploy.artifacts.dir}/license.txt" targetdir="$INSTALL_PATH" override="true" />
- <!-- jbossIdm/doc -->
+ <!-- jbossidm-->
<fileset dir="@{deploy.artifacts.dir}/db.scripts" targetdir="$INSTALL_PATH/db" />
<fileset dir="@{deploy.artifacts.dir}/resources" targetdir="$INSTALL_PATH/resources" />
<fileset dir="@{deploy.artifacts.dir}/modules" targetdir="$INSTALL_PATH/modules" />
+ <fileset dir="@{deploy.artifacts.dir}/src" targetdir="$INSTALL_PATH/src" />
- <!-- jbpm4/lib -->
+ <!-- jbbossidm/lib -->
<fileset dir="@{deploy.artifacts.dir}/lib" targetdir="$INSTALL_PATH/lib" override="true">
<include name="*.jar" />
</fileset>
Added: idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java
===================================================================
--- idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java (rev 0)
+++ idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMService.java 2009-04-20 04:16:33 UTC (rev 444)
@@ -0,0 +1,86 @@
+/**
+ *
+ */
+package org.jboss.identity.idm.integration.jboss5;
+
+import java.util.logging.Logger;
+
+import javax.management.MBeanServer;
+import javax.naming.InitialContext;
+
+import org.jboss.identity.idm.api.IdentitySessionFactory;
+import org.jboss.identity.idm.impl.configuration.IdentityConfigurationImpl;
+
+
+/**
+ * Start the {@link IdentitySessionFactory}, and register it in the JNDI.
+ *
+ * @author Jeff Yu
+ *
+ */
+public class IDMService implements IDMServiceMBean {
+
+ public final static String DEFAULT_JNDI = "java:/IdentitySessionFactory";
+
+ private static Logger logger = Logger.getLogger(IDMService.class.getName());
+
+ private String idmConfigFile;
+
+ private String idmSessionFactoryJNDI;
+
+ private String SQLScript;
+
+ private MBeanServer mbeanServer;
+
+ private IdentitySessionFactory sessionFactory;
+
+ public IDMService(String idmConfigFile, MBeanServer mbeanServer) {
+ this.idmConfigFile = idmConfigFile;
+ this.mbeanServer = mbeanServer;
+
+ }
+
+ public String getIdmConfigFile() {
+ return this.idmConfigFile;
+ }
+
+ public String getIdmSessionFactoryJNDI() {
+ return idmSessionFactoryJNDI;
+ }
+
+ public String getSQLScript() {
+ return this.SQLScript;
+ }
+
+ public void setIdmSessionFactoryJNDI(String idmSessionFactoryJNDI) {
+ this.idmSessionFactoryJNDI = idmSessionFactoryJNDI;
+ }
+
+ public void setSQLScript(String script) {
+ SQLScript = script;
+ }
+
+
+ public void create() throws Exception {
+ logger.info("Starting the JBoss Identity Management Service");
+ mbeanServer.registerMBean(this, IDMServiceMBean.OBJECT_NAME);
+ startIdentitySessionFactory();
+ logger.info("Started the JBoss Identity Management Service");
+ }
+
+ private void startIdentitySessionFactory() throws Exception {
+ sessionFactory = new IdentityConfigurationImpl().configure(getIdmConfigFile()).buildIdentitySessionFactory();
+ InitialContext context = new InitialContext();
+ context.bind(getIdmSessionFactoryJNDI(), sessionFactory);
+ }
+
+ public void destroy() throws Exception {
+ logger.info("Stopping the JBoss Identity Management Service");
+ mbeanServer.unregisterMBean(IDMServiceMBean.OBJECT_NAME);
+ sessionFactory.close();
+ InitialContext context = new InitialContext();
+ context.unbind(getIdmSessionFactoryJNDI());
+ logger.info("Stopped the JBoss Identity Management Service");
+ }
+
+}
Added: idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMServiceMBean.java
===================================================================
--- idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMServiceMBean.java (rev 0)
+++ idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/idm/integration/jboss5/IDMServiceMBean.java 2009-04-20 04:16:33 UTC (rev 444)
@@ -0,0 +1,28 @@
+/**
+ *
+ */
+package org.jboss.identity.idm.integration.jboss5;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+
+/**
+ *
+ * Interface for exposing JMX operations.
+ *
+ * @author Jeff Yu
+ *
+ */
+public interface IDMServiceMBean {
+
+ ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.identity:service=IDMService");
+
+ String getIdmConfigFile() ;
+
+ String getIdmSessionFactoryJNDI();
+
+ String getSQLScript();
+
+}
Modified: idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml 2009-04-19 18:26:53 UTC (rev 443)
+++ idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml 2009-04-20 04:16:33 UTC (rev 444)
@@ -6,7 +6,7 @@
IDM Service
-->
<bean name="jboss.identity:service=IDMService"
- class="org.jboss.identity.integration.jboss5.IDMService">
+ class="org.jboss.identity.idm.integration.jboss5.IDMService">
<constructor>
<parameter>jboss-idm.xml</parameter>
<parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
15 years, 9 months
JBoss Identity SVN: r443 - in idm/trunk: distro and 11 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-19 14:26:53 -0400 (Sun, 19 Apr 2009)
New Revision: 443
Added:
idm/trunk/distro/scripts/
idm/trunk/distro/scripts/antrun-installer.xml
idm/trunk/distro/scripts/assembly-deploy-artifacts.xml
idm/trunk/distro/src/main/resources/config-tool/
idm/trunk/distro/src/main/resources/config-tool/build.properties
idm/trunk/distro/src/main/resources/config-tool/build.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/
idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/
idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/foot.jboss-idm.cfg.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/head.jboss-idm.cfg.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/mapping.jboss-idm.cfg.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/db2.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/hsqldb.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/mysql.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/oracle.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/postgresql.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/sybase.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc.properties
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/db2.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.url.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/mysql.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/oracle.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/postgresql.xml
idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/sybase.xml
idm/trunk/distro/src/main/resources/config-tool/jboss/
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-hsqldb-ds.xml
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-mysql-ds.xml
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-oracle-ds.xml
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-postgresql-ds.xml
idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-sybase-ds.xml
idm/trunk/distro/src/main/resources/installer/
idm/trunk/distro/src/main/resources/installer/ant-actions-spec.xml
idm/trunk/distro/src/main/resources/installer/auto-install-template.xml
idm/trunk/distro/src/main/resources/installer/download-helper.xml
idm/trunk/distro/src/main/resources/installer/install-definition.xml
idm/trunk/distro/src/main/resources/installer/target-panel-dir.txt
idm/trunk/distro/src/main/resources/installer/user-input-spec.xml
idm/trunk/distro/src/main/resources/jboss.eula.txt
idm/trunk/distro/src/main/resources/license.txt
Removed:
idm/trunk/distro/build.properties
idm/trunk/distro/build.xml
idm/trunk/distro/config/
idm/trunk/distro/src/main/resources/META-INF/
Modified:
idm/trunk/distro/pom.xml
idm/trunk/integration/jboss5/src/main/resources/assembly.xml
idm/trunk/pom.xml
Log:
Update the distro build, including the generation DDL.
Using the izpack to generate the installer.jar.
Deleted: idm/trunk/distro/build.properties
===================================================================
--- idm/trunk/distro/build.properties 2009-04-17 10:44:56 UTC (rev 442)
+++ idm/trunk/distro/build.properties 2009-04-19 18:26:53 UTC (rev 443)
@@ -1,7 +0,0 @@
-config.dir=config
-db.scripts.dir=src/main/resources/jboss-idm-sql
-database=hsqldb
-tmp.dir=target/tmp
-
-connection.type=jdbc
-
Deleted: idm/trunk/distro/build.xml
===================================================================
--- idm/trunk/distro/build.xml 2009-04-17 10:44:56 UTC (rev 442)
+++ idm/trunk/distro/build.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -1,75 +0,0 @@
-<project name="jboss-identity" default="generateDDL" basedir=".">
-
- <!-- input properties -->
- <property file="build.properties" />
-
- <!-- derived properties -->
- <property name="resolved.dir" value="${tmp.dir}/resolved" />
-
- <target name="generateDDL" depends="create.configuration.files">
- <delete dir="${db.scripts.dir}" />
- <mkdir dir="${db.scripts.dir}" />
- <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask"
- classpathref="maven.compile.classpath"/>
- <hibernatetool destdir=".">
- <classpath refid="maven.compile.classpath" />
- <annotationconfiguration configurationfile="${config.dir}/hibernate/jboss-idm.hibernate.cfg.xml"/>
- <hbm2ddl drop="false" create="true" export="${export}"
- outputfilename="${db.scripts.dir}/jboss.idm.${database}.create.sql" delimiter=";" format="true" />
- </hibernatetool>
- </target>
-
- <target name="create.configuration.files"
- depends="internal.load.hibernate.properties"
- description="creates a full set of jboss identity configuration files">
-
- <delete file="${config.dir}/hibernate/jboss-idm.hibernate.cfg.xml" />
- <concat destfile="${config.dir}/hibernate/jboss-idm.hibernate.cfg.xml">
- <filelist dir="${resolved.dir}">
- <file name="hibernate/cfg/head.jboss-idm.cfg.xml" />
- <file name="hibernate/${connection.type}/${database}.xml"/>
- <file name="hibernate/cfg/mapping.jboss-idm.cfg.xml"/>
- <file name="hibernate/cfg/foot.jboss-idm.cfg.xml"/>
- </filelist>
- </concat>
-
- <echo>Created jboss-idm configuration files in ${config.dir}</echo>
- </target>
-
-
- <!-- internal tasks -->
- <target name="internal.prepare">
- <delete dir="${tmp.dir}" />
- <mkdir dir="${resolved.dir}" />
- <copy todir="${tmp.dir}"
- file="${config.dir}/hibernate/jdbc.properties"
- failonerror="false"
- overwrite="true" />
- <copy todir="${resolved.dir}" filtering="true">
- <fileset dir="${config.dir}" />
- <filterset filtersfile="${tmp.dir}/jdbc.properties">
- <filter token="jboss.bind.address" value="${jboss.bind.address}"/>
- <filter token="jdbc.hsqldb.url" value="${jdbc.hsqldb.url}" />
- </filterset>
- </copy>
- </target>
-
- <target name="internal.load.hibernate.properties" depends="internal.prepare">
- <copy file="${resolved.dir}/hibernate/jdbc/${database}.xml"
- tofile="${tmp.dir}/hibernate.properties" />
- <replace file="${tmp.dir}/hibernate.properties"
- value="">
- <replacetoken><![CDATA[ <property name="]]></replacetoken>
- </replace>
- <replace file="${tmp.dir}/hibernate.properties"
- value="=">
- <replacetoken><![CDATA[">]]></replacetoken>
- </replace>
- <replace file="${tmp.dir}/hibernate.properties"
- value="">
- <replacetoken><![CDATA[</property>]]></replacetoken>
- </replace>
- <property file="${tmp.dir}/hibernate.properties" />
- </target>
-
-</project>
Modified: idm/trunk/distro/pom.xml
===================================================================
--- idm/trunk/distro/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
+++ idm/trunk/distro/pom.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -4,21 +4,27 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>idm-distro</artifactId>
<version>1.0-SNAPSHOT</version>
- <packaging>jboss-sar</packaging>
+ <packaging>jar</packaging>
<name>JBoss Identity IDM Distro </name>
- <parent>
- <groupId>org.jboss.identity</groupId>
- <artifactId>idm-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idm-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
<properties>
<hibernate-commons-annotations>3.0.0.ga</hibernate-commons-annotations>
<hibernate-tools-version>3.2.0.ga</hibernate-tools-version>
<hsqldb-version>1.8.0.7</hsqldb-version>
<idm.version>1.0.0-SNAPSHOT</idm.version>
+ <apache.ant.version>1.7.0</apache.ant.version>
+ <izpack.version>4.2.1</izpack.version>
+ <mysql.connector.version>5.0.8</mysql.connector.version>
+ <postgresql.version>8.3-603.jdbc3</postgresql.version>
+ <jtds.version>1.2.2</jtds.version>
+
</properties>
<dependencies>
@@ -27,7 +33,18 @@
<artifactId>idm</artifactId>
<version>${idm.version}</version>
</dependency>
-
+ <dependency>
+ <groupId>org.jboss.identity.integration</groupId>
+ <artifactId>idm-jboss5</artifactId>
+ <version>${idm.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.identity.integration</groupId>
+ <artifactId>idm-jboss5</artifactId>
+ <classifier>config</classifier>
+ <type>zip</type>
+ <version>${idm.version}</version>
+ </dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
@@ -46,12 +63,40 @@
<version>${hsqldb-version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>${apache.ant.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>izpack</groupId>
+ <artifactId>standalone-compiler</artifactId>
+ <version>${izpack.version}</version>
+ </dependency>
+
+ <!-- Database Drivers -->
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>${mysql.connector.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>${postgresql.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jtds</groupId>
+ <artifactId>jtds</artifactId>
+ <version>${jtds.version}</version>
+ </dependency>
+
</dependencies>
<build>
<finalName>jboss-identity</finalName>
<plugins>
- <plugin>
+ <!-- plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
@@ -63,21 +108,69 @@
</goals>
<configuration>
<tasks>
- <ant antfile="${basedir}/build.xml" inheritRefs="true">
- <target name="generateDDL" />
+ <property name="maven.test.classpath" refid="maven.test.classpath" />
+ <property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
+ <property name="maven.compile.classpath" refid="maven.compile.classpath" />
+ <ant antfile="src/main/resources/config-tool/build.xml" inheritRefs="true">
+ <target name="create.db.scripts" />
</ant>
</tasks>
</configuration>
</execution>
</executions>
+ </plugin-->
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-2</version>
+ <executions>
+ <execution>
+ <id>prepare-files-for-installer</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>directory-single</goal>
+ </goals>
+ <configuration>
+ <finalName>deploy-artifacts</finalName>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>scripts/assembly-deploy-artifacts.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jboss-packaging-maven-plugin</artifactId>
- <version>2.0-beta-1</version>
- <extensions>true</extensions>
- </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>izpack</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <property name="maven.test.classpath" refid="maven.test.classpath" />
+ <property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
+ <property name="maven.compile.classpath" refid="maven.compile.classpath" />
+ <property name="database" value="${database}" />
+ <property name="jboss.home" value="${jboss.home}" />
+ <property name="jboss500.home" value="${jboss500.home}" />
+ <property name="jbpm.target.container" value="${jbpm.target.container}" />
+ <property name="product.name" value="${project.name}" />
+ <property name="product.short.name" value="${artifactId}" />
+ <property name="product.version" value="${project.version}" />
+ <property name="user.home" value="${user.home}" />
+ <property name="user.dir" value="${user.dir}" />
+
+ <ant antfile="scripts/antrun-installer.xml" target="build-installer" inheritRefs="true"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Added: idm/trunk/distro/scripts/antrun-installer.xml
===================================================================
--- idm/trunk/distro/scripts/antrun-installer.xml (rev 0)
+++ idm/trunk/distro/scripts/antrun-installer.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project>
+
+ <!-- ================================================================== -->
+ <!-- Setup -->
+ <!-- ================================================================== -->
+ <property name="output.dir" value="${basedir}/target" />
+ <property name="resources.dir" value="${basedir}/src/main/resources" />
+ <property name="filtered.resources.dir" value="${output.dir}/resources" />
+ <property name="deploy.artifacts.dir" value="${output.dir}/deploy-artifacts" />
+ <property name="deploy.artifacts.lib" value="${deploy.artifacts.dir}/lib" />
+ <property name="deploy.artifacts.resources" value="${deploy.artifacts.dir}/resources" />
+
+ <!-- ================================================================== -->
+ <!-- Initialization -->
+ <!-- ================================================================== -->
+ <target name="init">
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Configuration -->
+ <!-- ================================================================== -->
+ <target name="configure" depends="init">
+ <mkdir dir="${deploy.artifacts.dir}/resources/hsqldb" />
+
+ <echo message="creating hsqldb db" />
+
+ <echo message="USER DIR: ${user.dir}/target/db" />
+ <mkdir dir="${user.dir}/target/db" />
+
+ <ant antfile="src/main/resources/config-tool/build.xml"
+ target="db.create"
+ inheritall="false">
+
+ <property name="test_classpath" value="${maven.test.classpath}" />
+ <property name="runtime_classpath" value="${maven.runtime.classpath}" />
+ <property name="compile_classpath" value="${maven.compile.classpath}"/>
+
+ <property name="database" value="hsqldb.url" />
+ <property name="jdbc.hsqldb.url" value="jdbc:hsqldb:file:target/db/jbossIdm" />
+ <property name="config.files.dir" value="${deploy.artifacts.resources}/jbidm-hsqldb-config" />
+ <property name="db.scripts.dir" value="${output.dir}/config.tool.tmp/hsqldb.scripts" />
+ <property name="tmp.dir" value="${output.dir}/config.tool.tmp" />
+ <property name="libs.dir" value="${deploy.artifacts.dir}/lib" />
+ </ant>
+
+ <sql driver="org.hsqldb.jdbcDriver"
+ url="jdbc:hsqldb:file:target/db/jbossIdm"
+ userid="sa"
+ password=""
+ onerror="continue">
+ <transaction>SHUTDOWN</transaction>
+
+ <classpath>
+ <pathelement path="${maven.runtime.classpath}"/>
+ </classpath>
+ </sql>
+
+ <mkdir dir="${deploy.artifacts.dir}/resources/hsqldb" />
+ <copy todir="${deploy.artifacts.dir}/resources/hsqldb">
+ <fileset dir="${user.dir}/target/db" />
+ </copy>
+
+
+ <echo message="creating db configurations" />
+ <ant antfile="src/main/resources/config-tool/build.xml" target="create.db.scripts" inheritall="false">
+
+ <property name="test_classpath" value="${maven.test.classpath}" />
+ <property name="runtime_classpath" value="${maven.runtime.classpath}" />
+ <property name="compile_classpath" value="${maven.compile.classpath}"/>
+
+ <property name="database" value="hsqldb" />
+ <property name="connection.type" value="datasource" />
+ <property name="config.files.dir" value="${deploy.artifacts.resources}/jbidm-hsqldb-config" />
+ <property name="db.scripts.dir" value="${deploy.artifacts.dir}/db.scripts" />
+ <property name="tmp.dir" value="${output.dir}/config.tool.tmp" />
+ <property name="libs.dir" value="${deploy.artifacts.dir}/lib" />
+ </ant>
+
+ <ant antfile="src/main/resources/config-tool/build.xml" target="create.db.scripts" inheritall="false">
+
+ <property name="test_classpath" value="${maven.test.classpath}" />
+ <property name="runtime_classpath" value="${maven.runtime.classpath}" />
+ <property name="compile_classpath" value="${maven.compile.classpath}"/>
+
+ <property name="database" value="mysql" />
+ <property name="connection.type" value="datasource" />
+ <property name="config.files.dir" value="${deploy.artifacts.resources}/jbidm-mysql-config" />
+ <property name="db.scripts.dir" value="${deploy.artifacts.dir}/db.scripts" />
+ <property name="tmp.dir" value="${output.dir}/config.tool.tmp" />
+ <property name="libs.dir" value="${deploy.artifacts.dir}/lib" />
+ </ant>
+ <ant antfile="src/main/resources/config-tool/build.xml" target="create.db.scripts" inheritall="false">
+
+ <property name="test_classpath" value="${maven.test.classpath}" />
+ <property name="runtime_classpath" value="${maven.runtime.classpath}" />
+ <property name="compile_classpath" value="${maven.compile.classpath}"/>
+
+ <property name="database" value="oracle" />
+ <property name="connection.type" value="datasource" />
+ <property name="config.files.dir" value="${deploy.artifacts.resources}/jbidm-oracle-config" />
+ <property name="db.scripts.dir" value="${deploy.artifacts.dir}/db.scripts" />
+ <property name="tmp.dir" value="${output.dir}/config.tool.tmp" />
+ <property name="libs.dir" value="${deploy.artifacts.dir}/lib" />
+ </ant>
+
+
+ <!-- the next copy depends on previous config-tool execution -->
+ <mkdir dir="${deploy.artifacts.dir}/resources/datasources" />
+ <copy todir="${deploy.artifacts.dir}/resources/datasources">
+ <fileset dir="${output.dir}/config.tool.tmp/resolved/jboss/datasource"/>
+ </copy>
+
+ <condition property="database.is.hsqldb" value="true" else="false">
+ <equals arg1="${database}" arg2="hsqldb"/>
+ </condition>
+ <condition property="database.is.mysql" value="true" else="false">
+ <equals arg1="${database}" arg2="mysql"/>
+ </condition>
+ <condition property="database.is.postgresql" value="true" else="false">
+ <equals arg1="${database}" arg2="postgresql"/>
+ </condition>
+ <condition property="database.is.oracle" value="true" else="false">
+ <equals arg1="${database}" arg2="oracle"/>
+ </condition>
+ <condition property="database.is.sybase" value="true" else="false">
+ <equals arg1="${database}" arg2="sybase"/>
+ </condition>
+
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Distribution -->
+ <!-- ================================================================== -->
+ <target name="build-installer" depends="configure">
+
+ <copy todir="${filtered.resources.dir}" filtering="true" overwrite="true">
+ <fileset dir="${resources.dir}/installer" />
+ <filterset>
+ <filter token="database" value="${database}" />
+ <filter token="database.is.hsqldb" value="${database.is.hsqldb}" />
+ <filter token="database.is.mysql" value="${database.is.mysql}" />
+ <filter token="database.is.postgresql" value="${database.is.postgresql}" />
+ <filter token="database.is.oracle" value="${database.is.oracle}" />
+ <filter token="database.is.sybase" value="${database.is.sybase}" />
+ <filter token="jbidm.target.container" value="${jbidm.target.container}" />
+ <filter token="jboss.home" value="${jboss.home}" />
+ <filter token="product.version" value="${product.version}" />
+ <filter token="user.home" value="${user.home}" />
+ </filterset>
+ </copy>
+
+ <!-- Allows us to use the IzPack Ant task, standalone-compiler.jar added to Ant lib -->
+ <taskdef name="izpack" classname="com.izforge.izpack.ant.IzPackTask">
+ <classpath>
+ <pathelement path="${maven.runtime.classpath}" />
+ </classpath>
+ </taskdef>
+ <property name="izpack.temp.dir" value="${output.dir}/izpack-temp" />
+ <mkdir dir="${izpack.temp.dir}" />
+
+ <!-- Run installer build -->
+ <echo message="Running IzPack to build the installer..." />
+ <izpack input="${resources.dir}/installer/install-definition.xml"
+ output="${output.dir}/jbossidm-installer-${product.version}.jar"
+ installerType="standard"
+ inheritAll="true"
+ basedir="${izpack.temp.dir}" />
+
+ <!-- Clean working directory -->
+ <delete dir="${izpack.temp.dir}" quiet="true" includeemptydirs="true" />
+ </target>
+</project>
\ No newline at end of file
Added: idm/trunk/distro/scripts/assembly-deploy-artifacts.xml
===================================================================
--- idm/trunk/distro/scripts/assembly-deploy-artifacts.xml (rev 0)
+++ idm/trunk/distro/scripts/assembly-deploy-artifacts.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,56 @@
+<assembly 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/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+
+ <id>deploy-artifacts</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <!-- Dependency Sets -->
+ <dependencySets>
+
+ <!-- lib -->
+ <dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <useStrictFiltering>true</useStrictFiltering>
+ <scope>compile</scope>
+ <unpack>false</unpack>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <useStrictFiltering>true</useStrictFiltering>
+ <scope>provided</scope>
+ <unpack>false</unpack>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <useStrictFiltering>true</useStrictFiltering>
+ <scope>test</scope>
+ <unpack>false</unpack>
+ </dependencySet>
+ <!-- resources -->
+ <dependencySet>
+ <outputDirectory>modules</outputDirectory>
+ <useStrictFiltering>true</useStrictFiltering>
+ <includes>
+ <include>org.jboss.identity.integration:idm-jboss5:zip:config</include>
+ </includes>
+ <unpack>true</unpack>
+ </dependencySet>
+ </dependencySets>
+
+ <fileSets>
+ <fileSet>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>jboss.eula.txt</include>
+ <include>license.txt</include>
+ </includes>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/config-tool/build.properties
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/build.properties (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/build.properties 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,8 @@
+config.files.dir=config.files
+db.scripts.dir=db.scripts
+tmp.dir=target/tmp
+database=mysql
+connection.type=jdbc
+deployment.type=standalone
+libs.dir=/local/works/jbossidentity/identity/distro/target/deploy-artifacts/lib
+
Added: idm/trunk/distro/src/main/resources/config-tool/build.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/build.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/build.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,127 @@
+<project name="jboss-identity" default="create.db.scripts" basedir=".">
+
+ <!-- input properties -->
+ <property file="build.properties" />
+
+ <property name="resolved.dir" value="${tmp.dir}/resolved" />
+
+ <path id="classpath">
+ <pathelement path="${compile_classpath}"/>
+ <fileset dir="${libs.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="create.db.scripts" depends="create.configuration.files">
+ <mkdir dir="${db.scripts.dir}" />
+ <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask"
+ classpathref="classpath"/>
+ <hibernatetool destdir="${db.scripts.dir}">
+ <classpath refid="classpath" />
+ <annotationconfiguration configurationfile="${config.files.dir}/jboss.idm.hibernate.cfg.xml"/>
+ <hbm2ddl drop="false" create="true" export="${export}" console="false"
+ outputfilename="jboss.idm.${database}.create.sql" delimiter=";" format="true" />
+ <hbm2ddl drop="true" create="false" export="${export}" console="false"
+ outputfilename="jboss.idm.${database}.drop.sql" delimiter=";" format="true" />
+ </hibernatetool>
+ <echo message="generate DDL scripts in ${db.scripts.dir}"/>
+ </target>
+
+ <target name="create.configuration.files"
+ depends="internal.load.hibernate.properties"
+ description="creates a full set of jboss identity configuration files">
+
+ <concat destfile="${config.files.dir}/jboss.idm.hibernate.cfg.xml">
+ <filelist dir="${resolved.dir}">
+ <file name="hibernate/cfg/head.jboss-idm.cfg.xml" />
+ <file name="hibernate/${connection.type}/${database}.xml"/>
+ <file name="hibernate/cfg/mapping.jboss-idm.cfg.xml"/>
+ <file name="hibernate/cfg/foot.jboss-idm.cfg.xml"/>
+ </filelist>
+ </concat>
+
+ <echo>Created jboss-idm configuration files in ${config.files.dir}</echo>
+ </target>
+
+ <target name="db.create"
+ depends="create.db.scripts"
+ description="creates the db tables in the database">
+ <echo message="driver: ${hibernate.connection.driver_class}" />
+ <echo message="url: ${hibernate.connection.url}" />
+ <echo message="username: ${hibernate.connection.username}" />
+
+ <sql driver="${hibernate.connection.driver_class}"
+ url="${hibernate.connection.url}"
+ userid="${hibernate.connection.username}"
+ password="${hibernate.connection.password}"
+ onerror="continue">
+ <transaction src="${db.scripts.dir}/jboss.idm.${database}.create.sql"/>
+
+ <classpath>
+ <pathelement path="${runtime_classpath}"/>
+ <pathelement path="${test_classpath}"/>
+ </classpath>
+
+ </sql>
+ </target>
+
+ <target name="db.drop"
+ depends="create.db.scripts, internal.load.hibernate.properties"
+ description="drops the db tables in the database">
+
+ <echo message="driver: ${hibernate.connection.driver_class}" />
+ <echo message="url: ${hibernate.connection.url}" />
+ <echo message="username: ${hibernate.connection.username}" />
+
+ <sql driver="${hibernate.connection.driver_class}"
+ url="${hibernate.connection.url}"
+ userid="${hibernate.connection.username}"
+ password="${hibernate.connection.password}"
+ onerror="continue">
+ <transaction src="${db.scripts.dir}/jboss.idm.${database}.drop.sql"/>
+
+ <classpath>
+ <pathelement path="${runtime_classpath}"/>
+ <pathelement path="${test_classpath}"/>
+ </classpath>
+
+ </sql>
+ </target>
+
+ <!-- internal tasks -->
+ <target name="internal.prepare">
+ <delete dir="${tmp.dir}" />
+ <mkdir dir="${config.files.dir}"/>
+ <mkdir dir="${resolved.dir}" />
+ <copy todir="${tmp.dir}"
+ file="hibernate/jdbc.properties"
+ failonerror="false"
+ overwrite="true" />
+ <copy todir="${resolved.dir}" filtering="true">
+ <fileset dir="." />
+ <filterset filtersfile="${tmp.dir}/jdbc.properties">
+ <filter token="jboss.bind.address" value="${jboss.bind.address}"/>
+ <filter token="jdbc.hsqldb.url" value="${jdbc.hsqldb.url}" />
+ </filterset>
+ </copy>
+ </target>
+
+ <target name="internal.load.hibernate.properties" depends="internal.prepare">
+ <copy file="${resolved.dir}/hibernate/jdbc/${database}.xml"
+ tofile="${tmp.dir}/hibernate.properties" />
+ <replace file="${tmp.dir}/hibernate.properties"
+ value="">
+ <replacetoken><![CDATA[ <property name="]]></replacetoken>
+ </replace>
+ <replace file="${tmp.dir}/hibernate.properties"
+ value="=">
+ <replacetoken><![CDATA[">]]></replacetoken>
+ </replace>
+ <replace file="${tmp.dir}/hibernate.properties"
+ value="">
+ <replacetoken><![CDATA[</property>]]></replacetoken>
+ </replace>
+ <property file="${tmp.dir}/hibernate.properties" />
+ </target>
+
+</project>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/foot.jboss-idm.cfg.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/foot.jboss-idm.cfg.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/foot.jboss-idm.cfg.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,3 @@
+
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/head.jboss-idm.cfg.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/head.jboss-idm.cfg.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/head.jboss-idm.cfg.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+
+ <property name="show_sql">false</property>
+ <property name="cache.use_second_level_cache">true</property>
+ <property name="cache.use_query_cache">false</property>
+
+ <property name="current_session_context_class">thread</property>
+
+
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/mapping.jboss-idm.cfg.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/mapping.jboss-idm.cfg.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/cfg/mapping.jboss-idm.cfg.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,18 @@
+
+
+ <!-- Mapping classes -->
+ <!-- all nessesary mappings are added programatically to the configuration in the store-->
+ <!-- this is for manual SF creation-->
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttributeValue"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>
+ <mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>
+
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/db2.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/db2.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/db2.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/hsqldb.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/hsqldb.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/hsqldb.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/mysql.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/mysql.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/mysql.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/oracle.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/oracle.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/oracle.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/postgresql.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/postgresql.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/postgresql.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/sybase.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/sybase.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/datasource/sybase.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.SybaseDialect</property>
+ <property name="hibernate.connection.datasource">java:jbossidmDS</property>
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <property name="jta.UserTransaction">UserTransaction</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/db2.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/db2.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/db2.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
+ <property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
+ <property name="hibernate.connection.url">@jdbc.db2.url@</property>
+ <property name="hibernate.connection.username">@jdbc.db2.username@</property>
+ <property name="hibernate.connection.password">@jdbc.db2.password@</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.url.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.url.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.url.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">@jdbc.hsqldb.url@</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/hsqldb.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:.</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/mysql.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/mysql.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/mysql.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
+ <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
+ <property name="hibernate.connection.url">jdbc:mysql://@jdbc.mysql.server@:@jdbc.mysql.port@/@jdbc.mysql.database@</property>
+ <property name="hibernate.connection.username">@jdbc.mysql.username@</property>
+ <property name="hibernate.connection.password">@jdbc.mysql.password@</property>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/oracle.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/oracle.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/oracle.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,6 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
+ <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
+ <property name="hibernate.connection.url">jdbc:oracle:thin:@@jdbc.oracle.server@:@jdbc.oracle.port@:@jdbc.oracle.database@</property>
+ <property name="hibernate.connection.username">@jdbc.oracle.username@</property>
+ <property name="hibernate.connection.password">@jdbc.oracle.password@</property>
+ <property name="hibernate.query.substitutions">true 1, false 0</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/postgresql.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/postgresql.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/postgresql.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
+ <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
+ <property name="hibernate.connection.url">@jdbc.postgresql.url@</property>
+ <property name="hibernate.connection.username">@jdbc.postgresql.username@</property>
+ <property name="hibernate.connection.password">@jdbc.postgresql.password@</property>
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/sybase.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/sybase.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc/sybase.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,5 @@
+ <property name="hibernate.dialect">org.hibernate.dialect.SybaseDialect</property>
+ <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
+ <property name="hibernate.connection.url">@jdbc.sybase.url@</property>
+ <property name="hibernate.connection.username">@jdbc.sybase.username@</property>
+ <property name="hibernate.connection.password">@jdbc.sybase.password@</property>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc.properties
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc.properties (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/hibernate/jdbc.properties 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,29 @@
+jdbc.mysql.server=localhost
+jdbc.mysql.port=3306
+jdbc.mysql.database=jbossidm
+jdbc.mysql.url=jdbc:mysql://${jdbc.mysql.server}:${jdbc.mysql.port}/${jdbc.mysql.database}
+jdbc.mysql.username=jbossidm
+jdbc.mysql.password=
+
+jdbc.postgresql.server=localhost
+jdbc.postgresql.port=5432
+jdbc.postgresql.database=jbossidm
+jdbc.postgresql.url=jdbc:postgresql://${jdbc.postgresql.server}:${jdbc.postgresql.port}/${jdbc.postgresql.database}
+jdbc.postgresql.username=jbossidm
+jdbc.postgresql.password=
+
+jdbc.sybase.server=localhost
+jdbc.sybase.port=5000
+jdbc.sybase.database=jbossidm
+jdbc.sybase.url=jdbc:sybase:Tds:${jdbc.sybase.server}:${jdbc.sybase.port}/${jdbc.sybase.database}
+jdbc.sybase.username=jbossidm
+jdbc.sybase.password=jbossidm
+jdbc.sybase.driver=com.sybase.jdbc3.jdbc.SybDriver
+jdbc.sybase.datasource=com.sybase.jdbc3.jdbc.SybXADataSource
+
+jdbc.oracle.server=localhost
+jdbc.oracle.port=1521
+jdbc.oracle.database=XE
+jdbc.oracle.username=jbossidm
+jdbc.oracle.password=jbossidm
+jdbc.oracle.url=jdbc:oracle:thin:${jdbc.oracle.username}/${jdbc.oracle.password}@${jdbc.oracle.server}:${jdbc.oracle.port}:${jdbc.oracle.database}
Added: idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-hsqldb-ds.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-hsqldb-ds.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-hsqldb-ds.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+ <local-tx-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbossidm</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+
+ <!-- connection pool parameters -->
+ <min-pool-size>1</min-pool-size>
+ <max-pool-size>5</max-pool-size>
+
+ <!-- disable idle connection removal, hsqldb does not reap threads on closed connections -->
+ <idle-timeout-minutes>0</idle-timeout-minutes>
+ <!-- check all statements are closed when the connection is returned to the pool -->
+ <track-statements />
+ <!-- hsqldb benefits from prepared statement caching -->
+ <prepared-statement-cache-size>32</prepared-statement-cache-size>
+
+ <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+ <metadata>
+ <type-mapping>Hypersonic SQL</type-mapping>
+ </metadata>
+
+ <!-- ensure the datasource is not initialized before the database itself -->
+ <depends>jboss:service=Hypersonic,database=jbossidm</depends>
+ </local-tx-datasource>
+
+ <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbossidm">
+ <attribute name="Database">jbossidm</attribute>
+ <attribute name="InProcessMode">true</attribute>
+ </mbean>
+
+</datasources>
Added: idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-mysql-ds.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-mysql-ds.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-mysql-ds.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+ <xa-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
+ <xa-datasource-property name="ServerName">@jdbc.mysql.server@</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">@jdbc.mysql.port@</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">@jdbc.mysql.database@</xa-datasource-property>
+ <user-name>@jdbc.mysql.username@</user-name>
+ <password>@jdbc.mysql.password@</password>
+
+ <!-- reduce isolation from the default level (repeatable read) -->
+ <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
+ <!-- separate connections used with and without JTA transaction -->
+ <no-tx-separate-pools />
+ <!-- disable transaction interleaving -->
+ <track-connection-by-tx />
+
+ <!-- leverage mysql integration features -->
+ <exception-sorter-class-name>
+ com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
+ </exception-sorter-class-name>
+ <valid-connection-checker-class-name>
+ com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
+ </valid-connection-checker-class-name>
+
+ <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+ <metadata>
+ <type-mapping>mySQL</type-mapping>
+ </metadata>
+ </xa-datasource>
+
+</datasources>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-oracle-ds.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-oracle-ds.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-oracle-ds.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- JBoss Server Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: jbpm-oracle-ds.xml 4458 2009-04-06 14:36:41Z heiko.braun(a)jboss.com $ -->
+
+<!-- ===================================================================== -->
+<!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml -->
+<!-- ===================================================================== -->
+
+<datasources>
+ <xa-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+ <track-connection-by-tx/>
+ <!-- uncomment to enable interleaving <interleaving/> -->
+ <isSameRM-override-value>false</isSameRM-override-value>
+ <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
+ <xa-datasource-property name="URL">jdbc:oracle:thin:@jdbc.oracle.username@/@jdbc.oracle.password@@@jdbc.oracle.server@:@jdbc.oracle.port@:@jdbc.oracle.database@</xa-datasource-property>
+ <xa-datasource-property name="User">@jdbc.oracle.username@</xa-datasource-property>
+ <xa-datasource-property name="Password">@jdbc.oracle.password@</xa-datasource-property>
+ <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
+ <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
+ <!-- Checks the Oracle error codes and messages for fatal errors -->
+ <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
+ <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
+ <no-tx-separate-pools/>
+
+ <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+ <metadata>
+ <type-mapping>Oracle9i</type-mapping>
+ </metadata>
+ </xa-datasource>
+
+ <mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter"
+ name="jboss.jca:service=OracleXAExceptionFormatter">
+ <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
+ </mbean>
+
+</datasources>
Added: idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-postgresql-ds.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-postgresql-ds.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-postgresql-ds.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+ <xa-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
+ <xa-datasource-property name="ServerName">@jdbc.postgresql.server@</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">@jdbc.postgresql.port@</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">@jdbc.postgresql.database@</xa-datasource-property>
+ <user-name>@jdbc.postgresql.username@</user-name>
+ <password>@jdbc.postgresql.password@</password>
+
+ <!-- disable transaction interleaving -->
+ <track-connection-by-tx />
+
+ <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+ <metadata>
+ <type-mapping>PostgreSQL 8.0</type-mapping>
+ </metadata>
+ </xa-datasource>
+
+</datasources>
Added: idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-sybase-ds.xml
===================================================================
--- idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-sybase-ds.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/config-tool/jboss/datasource/jbidm-sybase-ds.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<datasources>
+
+ <xa-datasource>
+ <jndi-name>jbossidmDS</jndi-name>
+
+ <xa-datasource-class>@jdbc.sybase.datasource@</xa-datasource-class>
+ <xa-datasource-property name="ServerName">@jdbc.sybase.server@</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">@jdbc.sybase.port@</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">@jdbc.sybase.database@</xa-datasource-property>
+ <user-name>@jdbc.sybase.username@</user-name>
+ <password>@jdbc.sybase.password@</password>
+
+ <!-- disable transaction interleaving -->
+ <track-connection-by-tx />
+
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+ </exception-sorter-class-name>
+
+ <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+ <metadata>
+ <type-mapping>Sybase</type-mapping>
+ </metadata>
+ </xa-datasource>
+
+</datasources>
Added: idm/trunk/distro/src/main/resources/installer/ant-actions-spec.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/ant-actions-spec.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/ant-actions-spec.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,8 @@
+<antactions>
+ <pack name="Download JBoss-5.0.0">
+ <antcall order="afterpack" buildfile="$INSTALL_PATH/Uninstaller/download-helper.xml">
+ <property name="install.path" value="$INSTALL_PATH"/>
+ <target name="download-jboss"/>
+ </antcall>
+ </pack>
+</antactions>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/installer/auto-install-template.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/auto-install-template.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/auto-install-template.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,29 @@
+<AutomatedInstallation langpack="eng">
+ <com.izforge.izpack.panels.HelloPanel />
+ <com.izforge.izpack.panels.TargetPanel>
+ <installpath>@user.home@/jbidm-(a)product.version@</installpath>
+ </com.izforge.izpack.panels.TargetPanel>
+ <com.izforge.izpack.panels.TreePacksPanel>
+ <pack name="JBoss Identity Installation Files" index="0" selected="true"/>
+ <pack name="Install JBoss Identity in JBoss" index="1" selected="true"/>
+ </com.izforge.izpack.panels.TreePacksPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="jbossTargetServer" value="default" />
+ <entry key="jbossSelection" value="@jbidm.target.container@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="dbSelection" value="@database@"/>
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="jbossInstallPath" value="@jboss.home@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.SummaryPanel />
+ <com.izforge.izpack.panels.InstallPanel />
+ <com.izforge.izpack.panels.FinishPanel />
+</AutomatedInstallation>
Added: idm/trunk/distro/src/main/resources/installer/download-helper.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/download-helper.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/download-helper.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id: download-helper.xml 3319 2008-12-10 14:29:01Z thomas.diesler(a)jboss.com $ -->
+<project>
+
+ <target name="download-jboss">
+ <get src="http://downloads.sourceforge.net/jboss/jboss-5.0.0.GA.zip?modtime=1228452..." dest="${install.path}/Uninstaller/jboss-5.0.0.GA.zip" usetimestamp="true"/>
+ <unzip src="${install.path}/Uninstaller/jboss-5.0.0.GA.zip" dest="${install.path}"/>
+ </target>
+</project>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/installer/install-definition.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/install-definition.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/install-definition.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<installation version="1.0">
+ <!--
+ Ant properties in this file can be referenced with @{},
+ otherwise use variables below in installer files with ${}
+ -->
+ <info>
+ <appname>@{product.name}</appname>
+ <appversion>@{product.version}</appversion>
+ <uninstaller write="no" />
+ <writeinstallationinformation>no</writeinstallationinformation>
+ </info>
+ <guiprefs width="600" height="440" resizable="yes">
+ <!--
+ <laf name="kunststoff">
+ <os family="unix" />
+ </laf>
+ -->
+ </guiprefs>
+ <locale>
+ <langpack iso3="eng" />
+ </locale>
+
+ <!-- It is necessary to include everything needed, in this case ant self -->
+ <jar src="@{deploy.artifacts.dir}/lib/ant.jar" stage="both" />
+ <jar src="@{deploy.artifacts.dir}/lib/ant-launcher.jar" stage="both" />
+
+ <!-- Setup the Ant Action Listener -->
+ <listeners>
+ <listener installer="AntActionInstallerListener" />
+ </listeners>
+
+ <!-- Resources -->
+ <resources>
+ <res id="AntActionsSpec.xml" src="@{filtered.resources.dir}/ant-actions-spec.xml" />
+ <res id="userInputSpec.xml" src="@{filtered.resources.dir}/user-input-spec.xml" />
+ <res id="TargetPanel.dir" src="@{filtered.resources.dir}/target-panel-dir.txt" />
+ </resources>
+
+ <!-- Variables -->
+ <variables>
+ <variable name="jboss500.home" value="@{jboss500.home}" />
+ </variables>
+
+ <!-- Dynamic Variables -->
+ <dynamicvariables>
+ <variable name="jboss.home" value="${jboss500.home}" condition="isJBoss500" />
+ </dynamicvariables>
+
+ <!-- Conditions -->
+ <conditions>
+ <!-- Target Server Conditions -->
+ <condition type="variable" id="isJBoss422">
+ <name>jbossSelection</name>
+ <value>jboss422</value>
+ </condition>
+ <condition type="variable" id="isJBoss423">
+ <name>jbossSelection</name>
+ <value>jboss423</value>
+ </condition>
+ <condition type="variable" id="isJBoss500">
+ <name>jbossSelection</name>
+ <value>jboss500</value>
+ </condition>
+
+ <!-- Target Database Conditions -->
+ <condition type="variable" id="isHypersonic">
+ <name>dbSelection</name>
+ <value>hsqldb</value>
+ </condition>
+ <condition type="variable" id="isMySQL">
+ <name>dbSelection</name>
+ <value>mysql</value>
+ </condition>
+ <condition type="variable" id="isPostgreSQL">
+ <name>dbSelection</name>
+ <value>postgresql</value>
+ </condition>
+ <condition type="variable" id="isOracle">
+ <name>dbSelection</name>
+ <value>oracle</value>
+ </condition>
+ <condition type="variable" id="isSybase">
+ <name>dbSelection</name>
+ <value>sybase</value>
+ </condition>
+ </conditions>
+
+ <!-- Panels -->
+ <panels>
+ <panel classname="HelloPanel" />
+ <panel classname="TargetPanel" />
+ <panel classname="TreePacksPanel" />
+ <panel classname="UserInputPanel" />
+ <panel classname="UserInputPanel" />
+ <panel classname="UserInputPanel" />
+ <panel classname="SummaryPanel" />
+ <panel classname="InstallPanel" />
+ <panel classname="FinishPanel" />
+ </panels>
+
+ <!-- Packs -->
+ <packs>
+
+ <!--
+ ==============================
+ Standalone setup
+ ==============================
+ -->
+
+ <pack name="jbossIdm Installation Files" required="yes" preselected="yes">
+ <description>Installation directory containing docs, libs, and sources</description>
+
+ <!-- jbossIdm/ -->
+ <file src="@{deploy.artifacts.dir}/jboss.eula.txt" targetdir="$INSTALL_PATH" override="true" />
+ <file src="@{deploy.artifacts.dir}/license.txt" targetdir="$INSTALL_PATH" override="true" />
+
+ <!-- jbossIdm/doc -->
+ <fileset dir="@{deploy.artifacts.dir}/db.scripts" targetdir="$INSTALL_PATH/db" />
+ <fileset dir="@{deploy.artifacts.dir}/resources" targetdir="$INSTALL_PATH/resources" />
+ <fileset dir="@{deploy.artifacts.dir}/modules" targetdir="$INSTALL_PATH/modules" />
+
+ <!-- jbpm4/lib -->
+ <fileset dir="@{deploy.artifacts.dir}/lib" targetdir="$INSTALL_PATH/lib" override="true">
+ <include name="*.jar" />
+ </fileset>
+
+ </pack>
+
+ <!--
+ ==============================
+ JBoss integration
+ ==============================
+ -->
+
+ <pack name="Install JBoss Identity in JBoss" required="no" preselected="yes">
+
+ <description>Installing the JBoss Identity into JBoss</description>
+
+ <!-- jboss idm/idm-service.sar -->
+ <fileset dir="@{deploy.artifacts.dir}/modules/idm-service.sar" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar" override="true">
+ <include name="*.*"/>
+ </fileset>
+
+ <!--
+ ==============================
+ JBoss 500
+ ==============================
+ -->
+
+
+ <!--
+ ==============================
+ Database configurations
+ ==============================
+ -->
+
+ <!-- Database Hypersonic -->
+ <file src="@{deploy.artifacts.dir}/resources/datasources/jbidm-hsqldb-ds.xml"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm"
+ condition="isHypersonic"/>
+ <fileset dir="@{deploy.artifacts.dir}/resources/jbidm-hsqldb-config"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar"
+ condition="isHypersonic" />
+ <fileset dir="@{deploy.artifacts.dir}/resources/hsqldb"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/data/hypersonic"
+ condition="isHypersonic">
+ <include name="jbIdm.*" />
+ </fileset>
+
+ <!-- Database MySQL -->
+ <file src="@{deploy.artifacts.dir}/resources/datasources/jbidm-mysql-ds.xml"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm"
+ condition="isMySQL"/>
+ <fileset dir="@{deploy.artifacts.dir}/resources/jbidm-mysql-config"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar"
+ condition="isMySQL" />
+ <fileset dir="@{deploy.artifacts.dir}/lib"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar"
+ override="true"
+ condition="isMySQL">
+ <include name="mysql-connector-java.jar" />
+ </fileset>
+
+ <!-- Database Oracle -->
+ <file src="@{deploy.artifacts.dir}/resources/datasources/jbidm-oracle-ds.xml"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm"
+ condition="isOracle"/>
+ <fileset dir="@{deploy.artifacts.dir}/resources/jbidm-oracle-config"
+ targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/idm/idm-service.sar"
+ condition="isOracle" />
+ <!-- NOTE: oracle driver needs to be provided manually -->
+
+ </pack>
+
+ </packs>
+</installation>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/installer/target-panel-dir.txt
===================================================================
--- idm/trunk/distro/src/main/resources/installer/target-panel-dir.txt (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/target-panel-dir.txt 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1 @@
+$USER_HOME/jbidm-(a)product.version@
Added: idm/trunk/distro/src/main/resources/installer/user-input-spec.xml
===================================================================
--- idm/trunk/distro/src/main/resources/installer/user-input-spec.xml (rev 0)
+++ idm/trunk/distro/src/main/resources/installer/user-input-spec.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,32 @@
+<userInput>
+ <panel order="0">
+ <createForPack name="Install JBoss Identity in JBoss" />
+ <field type="radio" variable="jbossSelection">
+ <description align="left" txt="Select your JBoss Version:" />
+ <spec>
+ <choice txt="JBoss-5.0.0" value="jboss500" set="true"/>
+ </spec>
+ </field>
+ <field type="text" variable="jbossTargetServer">
+ <spec txt="Server configuration:" size="15" set="default" />
+ </field>
+ </panel>
+ <panel order="1">
+ <createForPack name="Install JBoss Identity in JBoss" />
+ <field type="dir" align="left" variable="jbossInstallPath">
+ <description align="left" txt="Select your JBoss home directory" />
+ <spec txt="JBoss Home:" size="25" set="${jboss.home}" />
+ </field>
+ </panel>
+ <panel order="2">
+ <createForPack name="Install JBoss Identity in JBoss" />
+ <field type="radio" variable="dbSelection">
+ <description align="left" txt="Select your target database" />
+ <spec>
+ <choice txt="Hypersonic" value="hsqldb" set="true"/>
+ <choice txt="MySQL" value="mysql"/>
+ <choice txt="Oracle" value="oracle"/>
+ </spec>
+ </field>
+ </panel>
+</userInput>
\ No newline at end of file
Added: idm/trunk/distro/src/main/resources/jboss.eula.txt
===================================================================
--- idm/trunk/distro/src/main/resources/jboss.eula.txt (rev 0)
+++ idm/trunk/distro/src/main/resources/jboss.eula.txt 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,107 @@
+LICENSE AGREEMENT
+JBOSS(r)
+
+This License Agreement governs the use of the Software Packages and any updates to the Software
+Packages, regardless of the delivery mechanism. Each Software Package is a collective work
+under U.S. Copyright Law. Subject to the following terms, Red Hat, Inc. ("Red Hat") grants to
+the user ("Client") a license to the applicable collective work(s) pursuant to the
+GNU Lesser General Public License v. 2.1 except for the following Software Packages:
+(a) JBoss Portal Forums and JBoss Transactions JTS, each of which is licensed pursuant to the
+GNU General Public License v.2;
+
+(b) JBoss Rules, which is licensed pursuant to the Apache License v.2.0;
+
+(c) an optional download for JBoss Cache for the Berkeley DB for Java database, which is licensed under the
+(open source) Sleepycat License (if Client does not wish to use the open source version of this database,
+it may purchase a license from Sleepycat Software);
+
+and (d) the BPEL extension for JBoss jBPM, which is licensed under the Common Public License v.1,
+and, pursuant to the OASIS BPEL4WS standard, requires parties wishing to redistribute to enter various
+royalty-free patent licenses.
+
+Each of the foregoing licenses is available at http://www.opensource.org/licenses/index.php.
+
+1. The Software. "Software Packages" refer to the various software modules that are created and made available
+for distribution by the JBoss.org open source community at http://www.jboss.org. Each of the Software Packages
+may be comprised of hundreds of software components. The end user license agreement for each component is located in
+the component's source code. With the exception of certain image files identified in Section 2 below,
+the license terms for the components permit Client to copy, modify, and redistribute the component,
+in both source code and binary code forms. This agreement does not limit Client's rights under,
+or grant Client rights that supersede, the license terms of any particular component.
+
+2. Intellectual Property Rights. The Software Packages are owned by Red Hat and others and are protected under copyright
+and other laws. Title to the Software Packages and any component, or to any copy, modification, or merged portion shall
+remain with the aforementioned, subject to the applicable license. The "JBoss" trademark, "Red Hat" trademark, the
+individual Software Package trademarks, and the "Shadowman" logo are registered trademarks of Red Hat and its affiliates
+in the U.S. and other countries. This agreement permits Client to distribute unmodified copies of the Software Packages
+using the Red Hat trademarks that Red Hat has inserted in the Software Packages on the condition that Client follows Red Hat's
+trademark guidelines for those trademarks located at http://www.redhat.com/about/corporate/trademark/. Client must abide by
+these trademark guidelines when distributing the Software Packages, regardless of whether the Software Packages have been modified.
+If Client modifies the Software Packages, then Client must replace all Red Hat trademarks and logos identified at
+http://www.jboss.com/company/logos, unless a separate agreement with Red Hat is executed or other permission granted.
+Merely deleting the files containing the Red Hat trademarks may corrupt the Software Packages.
+
+3. Limited Warranty. Except as specifically stated in this Paragraph 3 or a license for a particular
+component, to the maximum extent permitted under applicable law, the Software Packages and the
+components are provided and licensed "as is" without warranty of any kind, expressed or implied,
+including the implied warranties of merchantability, non-infringement or fitness for a particular purpose.
+Red Hat warrants that the media on which Software Packages may be furnished will be free from defects in
+materials and manufacture under normal use for a period of 30 days from the date of delivery to Client.
+Red Hat does not warrant that the functions contained in the Software Packages will meet Client's requirements
+or that the operation of the Software Packages will be entirely error free or appear precisely as described
+in the accompanying documentation. This warranty extends only to the party that purchases the Services
+pertaining to the Software Packages from Red Hat or a Red Hat authorized distributor.
+
+4. Limitation of Remedies and Liability. To the maximum extent permitted by applicable law, the remedies
+described below are accepted by Client as its only remedies. Red Hat's entire liability, and Client's
+exclusive remedies, shall be: If the Software media is defective, Client may return it within 30 days of
+delivery along with a copy of Client's payment receipt and Red Hat, at its option, will replace it or
+refund the money paid by Client for the Software. To the maximum extent permitted by applicable law,
+Red Hat or any Red Hat authorized dealer will not be liable to Client for any incidental or consequential
+damages, including lost profits or lost savings arising out of the use or inability to use the Software,
+even if Red Hat or such dealer has been advised of the possibility of such damages. In no event shall
+Red Hat's liability under this agreement exceed the amount that Client paid to Red Hat under this
+Agreement during the twelve months preceding the action.
+
+5. Export Control. As required by U.S. law, Client represents and warrants that it:
+(a) understands that the Software Packages are subject to export controls under the
+U.S. Commerce Department's Export Administration Regulations ("EAR");
+
+(b) is not located in a prohibited destination country under the EAR or U.S. sanctions regulations
+(currently Cuba, Iran, Iraq, Libya, North Korea, Sudan and Syria);
+
+(c) will not export, re-export, or transfer the Software Packages to any prohibited destination, entity,
+or individual without the necessary export license(s) or authorizations(s) from the U.S. Government;
+
+(d) will not use or transfer the Software Packages for use in any sensitive nuclear, chemical or
+biological weapons, or missile technology end-uses unless authorized by the U.S. Government by
+regulation or specific license;
+
+(e) understands and agrees that if it is in the United States and exports or transfers the Software
+Packages to eligible end users, it will, as required by EAR Section 740.17(e), submit semi-annual
+reports to the Commerce Department's Bureau of Industry & Security (BIS), which include the name and
+address (including country) of each transferee;
+
+and (f) understands that countries other than the United States may restrict the import, use, or
+export of encryption products and that it shall be solely responsible for compliance with any such
+import, use, or export restrictions.
+
+6. Third Party Programs. Red Hat may distribute third party software programs with the Software Packages
+that are not part of the Software Packages and which Client must install separately. These third party
+programs are subject to their own license terms. The license terms either accompany the programs or
+can be viewed at http://www.redhat.com/licenses/. If Client does not agree to abide by the applicable
+license terms for such programs, then Client may not install them. If Client wishes to install the programs
+on more than one system or transfer the programs to another party, then Client must contact the licensor
+of the programs.
+
+7. General. If any provision of this agreement is held to be unenforceable, that shall not affect the
+enforceability of the remaining provisions. This License Agreement shall be governed by the laws of the
+State of North Carolina and of the United States, without regard to any conflict of laws provisions,
+except that the United Nations Convention on the International Sale of Goods shall not apply.
+
+Copyright 2006 Red Hat, Inc. All rights reserved.
+"JBoss" and the JBoss logo are registered trademarks of Red Hat, Inc.
+All other trademarks are the property of their respective owners.
+
+ Page 1 of 1 18 October 2006
+
Added: idm/trunk/distro/src/main/resources/license.txt
===================================================================
--- idm/trunk/distro/src/main/resources/license.txt (rev 0)
+++ idm/trunk/distro/src/main/resources/license.txt 2009-04-19 18:26:53 UTC (rev 443)
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
Modified: idm/trunk/integration/jboss5/src/main/resources/assembly.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/assembly.xml 2009-04-17 10:44:56 UTC (rev 442)
+++ idm/trunk/integration/jboss5/src/main/resources/assembly.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -1,6 +1,6 @@
<assembly 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/xsd/assembly-1.1.0-SNAPSHOT.xsd">
- <id></id>
+ <id>config</id>
<formats>
<format>zip</format>
</formats>
@@ -30,4 +30,4 @@
</dependencySet>
</dependencySets>
-</assembly>
\ No newline at end of file
+</assembly>
Modified: idm/trunk/pom.xml
===================================================================
--- idm/trunk/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
+++ idm/trunk/pom.xml 2009-04-19 18:26:53 UTC (rev 443)
@@ -19,10 +19,57 @@
<module>idm-spi</module>
<module>idm-api</module>
<module>idm</module>
- <module>integration</module>
+ <module>integration</module>
<module>assembly</module>
</modules>
+ <!-- Profiles -->
+ <profiles>
+
+ <profile>
+ <id>distro</id>
+ <modules>
+ <module>distro</module>
+ </modules>
+ <properties>
+ <skipTests>true</skipTests>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+
<reporting>
<plugins>
<plugin>
15 years, 9 months
JBoss Identity SVN: r442 - in idm/trunk: integration and 13 other directories.
by jboss-identity-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-04-17 06:44:56 -0400 (Fri, 17 Apr 2009)
New Revision: 442
Added:
idm/trunk/integration/
idm/trunk/integration/jboss5/
idm/trunk/integration/jboss5/pom.xml
idm/trunk/integration/jboss5/src/
idm/trunk/integration/jboss5/src/main/
idm/trunk/integration/jboss5/src/main/java/
idm/trunk/integration/jboss5/src/main/java/org/
idm/trunk/integration/jboss5/src/main/java/org/jboss/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMService.java
idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMServiceMBean.java
idm/trunk/integration/jboss5/src/main/resources/
idm/trunk/integration/jboss5/src/main/resources/META-INF/
idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
idm/trunk/integration/jboss5/src/main/resources/assembly.xml
idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml
idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml
idm/trunk/integration/jboss5/src/test/
idm/trunk/integration/jboss5/src/test/java/
idm/trunk/integration/jboss5/src/test/resources/
idm/trunk/integration/pom.xml
Modified:
idm/trunk/parent/pom.xml
idm/trunk/pom.xml
Log:
Add the jboss5 integration module, package it as a sar.
Added: idm/trunk/integration/jboss5/pom.xml
===================================================================
--- idm/trunk/integration/jboss5/pom.xml (rev 0)
+++ idm/trunk/integration/jboss5/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+
+ <name>JBoss Identity IDM Integration JBoss5</name>
+ <description>JBoss Identity IDM JBoss5</description>
+
+ <groupId>org.jboss.identity.integration</groupId>
+ <artifactId>idm-jboss5</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idm-integration</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+ <jboss.version>5.0.0.GA</jboss.version>
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idm</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ <version>${jboss.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+
+ <!-- Build -->
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>META-INF/idm-service-jboss-beans.xml</exclude>
+ <exclude>*.xml</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>idm-service.sar</finalName>
+ <appendAssemblyId>true</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/resources/assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMService.java
===================================================================
--- idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMService.java (rev 0)
+++ idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMService.java 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,86 @@
+/**
+ *
+ */
+package org.jboss.identity.integration.jboss5;
+
+import java.util.logging.Logger;
+
+import javax.management.MBeanServer;
+import javax.naming.InitialContext;
+
+import org.jboss.identity.idm.api.IdentitySessionFactory;
+import org.jboss.identity.idm.impl.configuration.IdentityConfigurationImpl;
+
+
+/**
+ * Start the {@link IdentitySessionFactory}, and register it in the JNDI.
+ *
+ * @author Jeff Yu
+ *
+ */
+public class IDMService implements IDMServiceMBean {
+
+ public final static String DEFAULT_JNDI = "java:/IdentitySessionFactory";
+
+ private static Logger logger = Logger.getLogger(IDMService.class.getName());
+
+ private String idmConfigFile;
+
+ private String idmSessionFactoryJNDI;
+
+ private String SQLScript;
+
+ private MBeanServer mbeanServer;
+
+ private IdentitySessionFactory sessionFactory;
+
+ public IDMService(String idmConfigFile, MBeanServer mbeanServer) {
+ this.idmConfigFile = idmConfigFile;
+ this.mbeanServer = mbeanServer;
+
+ }
+
+ public String getIdmConfigFile() {
+ return this.idmConfigFile;
+ }
+
+ public String getIdmSessionFactoryJNDI() {
+ return idmSessionFactoryJNDI;
+ }
+
+ public String getSQLScript() {
+ return this.SQLScript;
+ }
+
+ public void setIdmSessionFactoryJNDI(String idmSessionFactoryJNDI) {
+ this.idmSessionFactoryJNDI = idmSessionFactoryJNDI;
+ }
+
+ public void setSQLScript(String script) {
+ SQLScript = script;
+ }
+
+
+ public void create() throws Exception {
+ logger.info("Starting the JBoss Identity Management Service");
+ mbeanServer.registerMBean(this, IDMServiceMBean.OBJECT_NAME);
+ startIdentitySessionFactory();
+ logger.info("Started the JBoss Identity Management Service");
+ }
+
+ private void startIdentitySessionFactory() throws Exception {
+ sessionFactory = new IdentityConfigurationImpl().configure(getIdmConfigFile()).buildIdentitySessionFactory();
+ InitialContext context = new InitialContext();
+ context.bind(getIdmSessionFactoryJNDI(), sessionFactory);
+ }
+
+ public void destroy() throws Exception {
+ logger.info("Stopping the JBoss Identity Management Service");
+ mbeanServer.unregisterMBean(IDMServiceMBean.OBJECT_NAME);
+ sessionFactory.close();
+ InitialContext context = new InitialContext();
+ context.unbind(getIdmSessionFactoryJNDI());
+ logger.info("Stopped the JBoss Identity Management Service");
+ }
+
+}
Added: idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMServiceMBean.java
===================================================================
--- idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMServiceMBean.java (rev 0)
+++ idm/trunk/integration/jboss5/src/main/java/org/jboss/identity/integration/jboss5/IDMServiceMBean.java 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,28 @@
+/**
+ *
+ */
+package org.jboss.identity.integration.jboss5;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+
+/**
+ *
+ * Interface for exposing JMX operations.
+ *
+ * @author Jeff Yu
+ *
+ */
+public interface IDMServiceMBean {
+
+ ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.identity:service=IDMService");
+
+ String getIdmConfigFile() ;
+
+ String getIdmSessionFactoryJNDI();
+
+ String getSQLScript();
+
+}
Added: idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml (rev 0)
+++ idm/trunk/integration/jboss5/src/main/resources/META-INF/idm-service-jboss-beans.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!--
+ IDM Service
+ -->
+ <bean name="jboss.identity:service=IDMService"
+ class="org.jboss.identity.integration.jboss5.IDMService">
+ <constructor>
+ <parameter>jboss-idm.xml</parameter>
+ <parameter><inject bean="JMXKernel" property="mbeanServer"/></parameter>
+ </constructor>
+ <property name="idmSessionFactoryJNDI">java:/IdentitySessionFactory</property>
+ <property name="SQLScript">hsql/idm.create.hsqldb.sql</property>
+ </bean>
+
+</deployment>
\ No newline at end of file
Added: idm/trunk/integration/jboss5/src/main/resources/assembly.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/assembly.xml (rev 0)
+++ idm/trunk/integration/jboss5/src/main/resources/assembly.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,33 @@
+<assembly 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/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+ <id></id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.outputDirectory}</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>META-INF/*.xml</include>
+ <include>jboss-idm.xml</include>
+ <include>hibernate-jboss-identity.cfg.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>org.jboss.identity.integration:idm-jboss5</include>
+ <include>org.jboss.identity:idm</include>
+ <include>org.jboss.identity:idm-api</include>
+ <include>org.jboss.identity:idm-common</include>
+ <include>org.jboss.identity:idm-spi</include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+
+</assembly>
\ No newline at end of file
Added: idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml (rev 0)
+++ idm/trunk/integration/jboss5/src/main/resources/hibernate-jboss-identity.cfg.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,61 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+
+ <property name="show_sql">false</property>
+ <property name="cache.use_second_level_cache">true</property>
+ <property name="cache.use_query_cache">false</property>
+
+ <property name="current_session_context_class">thread</property>
+
+ <!--<property name="connection.datasource"></property>-->
+
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:guvnor-identity</property>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.hbm2ddl.auto">create-drop</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+
+ <!-- Mapping classes -->
+ <!-- all nessesary mappings are added programatically to the configuration -->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateRealm"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObject"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredential"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectCredentialType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectTextAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectBinaryAttribute"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationship"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipType"/>-->
+ <!--<mapping class="org.jboss.identity.idm.impl.model.hibernate.HibernateIdentityObjectRelationshipName"/>-->
+
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Added: idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml
===================================================================
--- idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml (rev 0)
+++ idm/trunk/integration/jboss5/src/main/resources/jboss-idm.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-identity xmlns="urn:jboss:identity:idm:config:v1_0_alpha"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:identity:idm:config:v1_0_alpha identity-config.xsd">
+ <realms>
+ <realm>
+ <id>realm://JBossIdentity</id>
+ <repository-id-ref>JBoss_Identity_Repository</repository-id-ref>
+ <identity-type-mappings>
+ <user-mapping>USER</user-mapping>
+ </identity-type-mappings>
+ </realm>
+ </realms>
+ <repositories>
+ <repository>
+ <id>JBoss_Identity_Repository</id>
+ <class>org.jboss.identity.idm.impl.repository.WrapperIdentityStoreRepository</class>
+ <external-config/>
+ <default-identity-store-id>Identity_DB_Store</default-identity-store-id>
+ <default-attribute-store-id>Identity_DB_Store</default-attribute-store-id>
+ </repository>
+ </repositories>
+ <stores>
+ <attribute-stores/>
+ <identity-stores>
+ <identity-store>
+ <id>Identity_DB_Store</id>
+ <class>org.jboss.identity.idm.impl.store.hibernate.HibernateIdentityStoreImpl</class>
+ <external-config/>
+ <supported-relationship-types>
+ <relationship-type>JBOSS_IDENTITY_MEMBERSHIP</relationship-type>
+ <relationship-type>JBOSS_IDENTITY_ROLE</relationship-type>
+ </supported-relationship-types>
+ <supported-identity-object-types>
+ <identity-object-type>
+ <name>USER</name>
+ <relationships>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_ROLE</relationship-type-ref>
+ <identity-object-type-ref>GROUP</identity-object-type-ref>
+ </relationship>
+ </relationships>
+ <credentials>
+ <credential-type>PASSWORD</credential-type>
+ </credentials>
+ <attributes/>
+ <options/>
+ </identity-object-type>
+ <identity-object-type>
+ <name>ORGANIZATION</name>
+ <relationships>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_ROLE</relationship-type-ref>
+ <identity-object-type-ref>USER</identity-object-type-ref>
+ </relationship>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
+ <identity-object-type-ref>USER</identity-object-type-ref>
+ </relationship>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
+ <identity-object-type-ref>GROUP</identity-object-type-ref>
+ </relationship>
+ </relationships>
+ <credentials/>
+ <attributes/>
+ <options/>
+ </identity-object-type>
+ <identity-object-type>
+ <name>GROUP</name>
+ <relationships>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_ROLE</relationship-type-ref>
+ <identity-object-type-ref>USER</identity-object-type-ref>
+ </relationship>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
+ <identity-object-type-ref>USER</identity-object-type-ref>
+ </relationship>
+ <relationship>
+ <relationship-type-ref>JBOSS_IDENTITY_MEMBERSHIP</relationship-type-ref>
+ <identity-object-type-ref>GROUP</identity-object-type-ref>
+ </relationship>
+ </relationships>
+ <credentials/>
+ <attributes/>
+ <options/>
+ </identity-object-type>
+ </supported-identity-object-types>
+ <options>
+ <option>
+ <name>hibernateConfiguration</name>
+ <value>hibernate-jboss-identity.cfg.xml</value>
+ </option>
+ <option>
+ <name>populateRelationshipTypes</name>
+ <value>true</value>
+ </option>
+ <option>
+ <name>populateIdentityObjectTypes</name>
+ <value>true</value>
+ </option>
+ <option>
+ <name>allowNotDefinedAttributes</name>
+ <value>true</value>
+ </option>
+ <option>
+ <name>isRealmAware</name>
+ <value>true</value>
+ </option>
+ </options>
+ </identity-store>
+ </identity-stores>
+ </stores>
+</jboss-identity>
Added: idm/trunk/integration/pom.xml
===================================================================
--- idm/trunk/integration/pom.xml (rev 0)
+++ idm/trunk/integration/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+
+ <name>JBoss Identity IDM Integration</name>
+ <description>JBoss Identity IDM Integration</description>
+
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idm-integration</artifactId>
+ <packaging>pom</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idm-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <modules>
+ <module>jboss5</module>
+ </modules>
+
+ <!-- Plugins -->
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Modified: idm/trunk/parent/pom.xml
===================================================================
--- idm/trunk/parent/pom.xml 2009-04-17 09:38:39 UTC (rev 441)
+++ idm/trunk/parent/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -1,9 +1,4 @@
<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">
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>3</version>
- </parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.identity</groupId>
<artifactId>idm-parent</artifactId>
@@ -35,6 +30,19 @@
<tagBase>https://svn.jboss.org/repos/jbossidentity/tags</tagBase>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
Modified: idm/trunk/pom.xml
===================================================================
--- idm/trunk/pom.xml 2009-04-17 09:38:39 UTC (rev 441)
+++ idm/trunk/pom.xml 2009-04-17 10:44:56 UTC (rev 442)
@@ -19,6 +19,7 @@
<module>idm-spi</module>
<module>idm-api</module>
<module>idm</module>
+ <module>integration</module>
<module>assembly</module>
</modules>
15 years, 9 months