http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/pom.xml b/syncope620/fit/core-reference/pom.xml new file mode 100644 index 0000000..e57036f --- /dev/null +++ b/syncope620/fit/core-reference/pom.xml @@ -0,0 +1,864 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.syncope</groupId> + <artifactId>syncope-fit</artifactId> + <version>2.0.0-SNAPSHOT</version> + </parent> + + <name>Apache Syncope FIT Core Reference</name> + <description>Apache Syncope FIT Core Reference</description> + <groupId>org.apache.syncope.fit</groupId> + <artifactId>syncope-fit-core-reference</artifactId> + <packaging>war</packaging> + + <properties> + <jdbcdriver.groupId>com.h2database</jdbcdriver.groupId> + <jdbcdriver.artifactId>h2</jdbcdriver.artifactId> + + <rootpom.basedir>${basedir}/../..</rootpom.basedir> + </properties> + + <dependencies> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + </dependency> + <dependency> + <groupId>javax.servlet.jsp</groupId> + <artifactId>javax.servlet.jsp-api</artifactId> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jstl</artifactId> + </dependency> + + <dependency> + <groupId>org.apache.syncope.core</groupId> + <artifactId>syncope-core-rest-cxf</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.syncope.core</groupId> + <artifactId>syncope-core-workflow-java</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.syncope.core</groupId> + <artifactId>syncope-core-persistence-jpa</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + </dependency> + <dependency> + <groupId>com.lmax</groupId> + <artifactId>disruptor</artifactId> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </dependency> + + <dependency> + <groupId>org.webjars</groupId> + <artifactId>jquery</artifactId> + </dependency> + <dependency> + <groupId>org.webjars</groupId> + <artifactId>jquery-ui</artifactId> + </dependency> + <dependency> + <groupId>org.webjars</groupId> + <artifactId>highlightjs</artifactId> + </dependency> + + <!-- TEST --> + <dependency> + <groupId>org.apache.syncope.fit</groupId> + <artifactId>syncope-fit-build-tools</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>net.tirasa.connid.bundles.soap</groupId> + <artifactId>wssample</artifactId> + <version>${connid.soap.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-rest-cxf</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.syncope.client</groupId> + <artifactId>syncope-client-lib</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-test</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <failOnMissingWebXml>false</failOnMissingWebXml> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <id>set-bundles</id> + <phase>process-test-resources</phase> + <goals> + <goal>copy</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <id>setupCSV</id> + <phase>pre-integration-test</phase> + <configuration> + <target> + <copy file="${project.build.directory}/test-classes/test.csv" todir="${test.csvdir.path}" overwrite="true"/> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <systemPropertyVariables> + <jaxrsContentType>${jaxrs.content.type}</jaxrsContentType> + </systemPropertyVariables> + </configuration> + <executions> + <execution> + <id>verify</id> + <goals> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <container> + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + </dependency> + <dependency> + <groupId>${jdbcdriver.groupId}</groupId> + <artifactId>${jdbcdriver.artifactId}</artifactId> + </dependency> + </dependencies> + </container> + <configuration> + <type>standalone</type> + <properties> + <cargo.servlet.port>${cargo.servlet.port}</cargo.servlet.port> + <cargo.tomcat.ajp.port>${cargo.tomcat.ajp.port}</cargo.tomcat.ajp.port> + <cargo.rmi.port>${cargo.rmi.port}</cargo.rmi.port> + + <cargo.jvmargs>-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=512m</cargo.jvmargs> + </properties> + <configfiles> + <configfile> + <file>${project.build.directory}/classes/context.xml</file> + <todir>conf/</todir> + <tofile>context.xml</tofile> + </configfile> + </configfiles> + </configuration> + <deployables> + <deployable> + <groupId>net.tirasa.connid.bundles.soap</groupId> + <artifactId>wssample</artifactId> + <type>war</type> + <properties> + <context>wssample</context> + </properties> + </deployable> + <deployable> + <groupId>org.apache.syncope.fit</groupId> + <artifactId>syncope-fit-build-tools</artifactId> + <type>war</type> + <properties> + <context>syncope-fit-build-tools</context> + </properties> + </deployable> + <deployable> + <location>${project.build.directory}/${project.build.finalName}</location> + <pingURL>http://localhost:${cargo.servlet.port}/syncope/cacheStats.jsp</pingURL> + <pingTimeout>60000</pingTimeout> + <properties> + <context>syncope</context> + </properties> + </deployable> + </deployables> + </configuration> + <executions> + <execution> + <id>start-container</id> + <phase>pre-integration-test</phase> + <goals> + <goal>start</goal> + </goals> + </execution> + <execution> + <id>stop-container</id> + <phase>post-integration-test</phase> + <goals> + <goal>stop</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>ianal-maven-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>${basedir}/../../core/persistence-jpa/src/test/resources</directory> + <includes> + <include>content.xml</include> + <include>persistence.properties</include> + </includes> + <filtering>true</filtering> + </resource> + <resource> + <directory>${basedir}/../../core/misc/src/main/resources</directory> + <includes> + <include>security.properties</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + <filtering>true</filtering> + </testResource> + </testResources> + </build> + + <profiles> + <profile> + <id>postgres-it</id> + + <properties> + <jdbcdriver.groupId>org.postgresql</jdbcdriver.groupId> + <jdbcdriver.artifactId>postgresql</jdbcdriver.artifactId> + </properties> + + <dependencies> + <dependency> + <groupId>org.postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>9.4-1200-jdbc41</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/postgres</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>mysql-it</id> + + <properties> + <jdbcdriver.groupId>mysql</jdbcdriver.groupId> + <jdbcdriver.artifactId>mysql-connector-java</jdbcdriver.artifactId> + </properties> + + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.34</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/mysql</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>mariadb-it</id> + + <properties> + <jdbcdriver.groupId>org.mariadb.jdbc</jdbcdriver.groupId> + <jdbcdriver.artifactId>mariadb-java-client</jdbcdriver.artifactId> + </properties> + + <dependencies> + <dependency> + <groupId>org.mariadb.jdbc</groupId> + <artifactId>mariadb-java-client</artifactId> + <version>1.1.8</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/mariadb</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>oracle-it</id> + + <properties> + <jdbcdriver.groupId>com.oracle</jdbcdriver.groupId> + <jdbcdriver.artifactId>ojdbc6</jdbcdriver.artifactId> + </properties> + + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/oracle</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>sqlserver-it</id> + + <properties> + <jdbcdriver.groupId>com.microsoft.sqlserver</jdbcdriver.groupId> + <jdbcdriver.artifactId>sqljdbc4</jdbcdriver.artifactId> + </properties> + + <dependencies> + <dependency> + <groupId>com.microsoft.sqlserver</groupId> + <artifactId>sqljdbc4</artifactId> + <version>4.0</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/sqlserver</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>glassfish-it</id> + + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <plugins> + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <container> + <containerId>glassfish4x</containerId> + <zipUrlInstaller> + <url>http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip</url> + <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir> + <extractDir>${project.build.directory}/cargo/extract</extractDir> + </zipUrlInstaller> + <log>${cargo.log}</log> + <output>${cargo.output}</output> + </container> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>jboss-it</id> + + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + </dependency> + + <dependency> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-persistence-jpa</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <build> + <defaultGoal>clean verify</defaultGoal> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <configuration> + <packagingExcludes>WEB-INF/lib/syncope-*-persistence-jpa-${project.version}.jar</packagingExcludes> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <id>unpack-jpa-entities</id> + <phase>process-resources</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>org.apache.syncope.core</groupId> + <artifactId>syncope-core-persistence-jpa</artifactId> + <version>${project.version}</version> + <type>jar</type> + <overWrite>false</overWrite> + </artifactItem> + <artifactItem> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-persistence-jpa</artifactId> + <version>${project.version}</version> + <type>jar</type> + <overWrite>false</overWrite> + </artifactItem> + </artifactItems> + <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <id>remove-jpa-jar</id> + <phase>package</phase> + <configuration> + <target> + <delete> + <fileset dir="${project.build.directory}/${project.build.finalName}/WEB-INF/lib" + includes="syncope-*-persistence-jpa-${project.version}.jar"/> + </delete> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <container> + <containerId>wildfly8x</containerId> + <zipUrlInstaller> + <url>http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip</url> + <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir> + <extractDir>${project.build.directory}/cargo/extract</extractDir> + </zipUrlInstaller> + <log>${cargo.log}</log> + <output>${cargo.output}</output> + </container> + <configuration> + <properties> + <cargo.jvmargs>-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled</cargo.jvmargs> + </properties> + </configuration> + </configuration> + </plugin> + </plugins> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/jboss</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>debug</id> + + <properties> + <skipTests>true</skipTests> + </properties> + + <build> + <defaultGoal>clean verify cargo:run</defaultGoal> + + <plugins> + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <configuration> + <properties> + <cargo.jvmargs>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n + -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=512m</cargo.jvmargs> + </properties> + </configuration> + </configuration> + <executions> + <execution> + <id>start-container</id> + <phase>none</phase> + </execution> + <execution> + <id>stop-container</id> + <phase>none</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>skipTests</id> + + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <skipTests>${skipTests}</skipTests> + </configuration> + </plugin> + + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <inherited>true</inherited> + <configuration> + <deployables> + <deployable> + <location>${project.build.directory}/${project.build.finalName}.war</location> + </deployable> + </deployables> + </configuration> + <executions> + <execution> + <id>install-container</id> + <phase>package</phase> + <goals> + <goal>install</goal> + </goals> + </execution> + <execution> + <id>start-container</id> + <phase>none</phase> + </execution> + <execution> + <id>stop-container</id> + <phase>none</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>all</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + + <dependencies> + <dependency> + <groupId>org.apache.syncope.core</groupId> + <artifactId>syncope-core-workflow-activiti</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-rest-cxf</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-persistence-jpa</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.syncope.ext.camel</groupId> + <artifactId>syncope-ext-camel-provisioning</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <build> + <plugins> + <!-- Adds Activiti test content --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xml-maven-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <phase>prepare-package</phase> + <goals> + <goal>transform</goal> + </goals> + </execution> + </executions> + <configuration> + <transformationSets> + <transformationSet> + <dir>${project.build.directory}/classes</dir> + <includes> + <include>content.xml</include> + </includes> + <outputDir>${project.build.directory}/classes</outputDir> + <stylesheet>${basedir}/src/test/resources/addActivitiToContent.xsl</stylesheet> + <outputProperties> + <outputProperty> + <name>indent</name> + <value>yes</value> + </outputProperty> + </outputProperties> + </transformationSet> + </transformationSets> + </configuration> + </plugin> + </plugins> + + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + <excludes> + <exclude>workflow.properties</exclude> + <exclude>provisioning.properties</exclude> + </excludes> + </resource> + <resource> + <directory>src/main/resources/all</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> + + <profile> + <id>apache-release</id> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + </profiles> +</project>
http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/DoubleValueAttributableTransformer.java ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/DoubleValueAttributableTransformer.java b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/DoubleValueAttributableTransformer.java new file mode 100644 index 0000000..65f84b8 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/DoubleValueAttributableTransformer.java @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.fit.core.reference; + +import java.util.ArrayList; +import java.util.List; +import org.apache.syncope.common.lib.mod.AbstractAttributableMod; +import org.apache.syncope.common.lib.mod.AttrMod; +import org.apache.syncope.common.lib.to.AbstractAttributableTO; +import org.apache.syncope.common.lib.to.AttrTO; +import org.apache.syncope.core.provisioning.api.AttributableTransformer; + +/** + * Class for integration tests: transform (by making it double) any attribute value for defined schema. + */ +public class DoubleValueAttributableTransformer implements AttributableTransformer { + + private static final String NAME = "makeItDouble"; + + @Override + public <T extends AbstractAttributableTO> T transform(final T input) { + for (AttrTO attr : input.getPlainAttrs()) { + if (NAME.equals(attr.getSchema())) { + List<String> values = new ArrayList<>(attr.getValues().size()); + for (String value : attr.getValues()) { + try { + values.add(String.valueOf(2 * Long.valueOf(value))); + } catch (NumberFormatException e) { + // ignore + } + } + attr.getValues().clear(); + attr.getValues().addAll(values); + } + } + + return input; + } + + @Override + public <T extends AbstractAttributableMod> T transform(final T input) { + for (AttrMod attr : input.getPlainAttrsToUpdate()) { + if (NAME.equals(attr.getSchema())) { + List<String> values = new ArrayList<>(attr.getValuesToBeAdded().size()); + for (String value : attr.getValuesToBeAdded()) { + try { + values.add(String.valueOf(2 * Long.valueOf(value))); + } catch (NumberFormatException e) { + // ignore + } + } + attr.getValuesToBeAdded().clear(); + attr.getValuesToBeAdded().addAll(values); + } + } + + return input; + } +} http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncActions.java ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncActions.java b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncActions.java new file mode 100644 index 0000000..d9ef279 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncActions.java @@ -0,0 +1,83 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.fit.core.reference; + +import org.apache.syncope.common.lib.mod.AbstractSubjectMod; +import org.apache.syncope.common.lib.mod.AttrMod; +import org.apache.syncope.common.lib.to.AbstractSubjectTO; +import org.apache.syncope.common.lib.to.AttrTO; +import org.apache.syncope.core.provisioning.api.sync.ProvisioningProfile; +import org.apache.syncope.core.provisioning.java.sync.DefaultSyncActions; +import org.identityconnectors.framework.common.objects.SyncDelta; +import org.quartz.JobExecutionException; + +public class TestSyncActions extends DefaultSyncActions { + + private int counter = 0; + + @Override + public <T extends AbstractSubjectTO> SyncDelta beforeProvision( + final ProvisioningProfile<?, ?> profile, + final SyncDelta delta, + final T subject) throws JobExecutionException { + + AttrTO attrTO = null; + for (int i = 0; i < subject.getPlainAttrs().size(); i++) { + if ("fullname".equals(subject.getPlainAttrs().get(i).getSchema())) { + attrTO = subject.getPlainAttrs().get(i); + } + } + if (attrTO == null) { + attrTO = new AttrTO(); + attrTO.setSchema("fullname"); + subject.getPlainAttrs().add(attrTO); + } + attrTO.getValues().clear(); + attrTO.getValues().add(String.valueOf(counter++)); + + return delta; + } + + @Override + public <T extends AbstractSubjectTO, K extends AbstractSubjectMod> SyncDelta beforeUpdate( + final ProvisioningProfile<?, ?> profile, + final SyncDelta delta, + final T subject, + final K subjectMod) throws JobExecutionException { + + subjectMod.getPlainAttrsToRemove().add("fullname"); + + AttrMod fullnameMod = null; + for (AttrMod attrMod : subjectMod.getPlainAttrsToUpdate()) { + if ("fullname".equals(attrMod.getSchema())) { + fullnameMod = attrMod; + } + } + if (fullnameMod == null) { + fullnameMod = new AttrMod(); + fullnameMod.setSchema("fullname"); + subjectMod.getPlainAttrsToUpdate().add(fullnameMod); + } + + fullnameMod.getValuesToBeAdded().clear(); + fullnameMod.getValuesToBeAdded().add(String.valueOf(counter++)); + + return delta; + } +} http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncRule.java ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncRule.java b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncRule.java new file mode 100644 index 0000000..50d6790 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestSyncRule.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.fit.core.reference; + +import org.apache.syncope.core.persistence.api.dao.search.AttributeCond; +import org.apache.syncope.core.persistence.api.dao.search.SearchCond; +import org.apache.syncope.core.provisioning.api.sync.SyncCorrelationRule; +import org.identityconnectors.framework.common.objects.ConnectorObject; + +public class TestSyncRule implements SyncCorrelationRule { + + @Override + public SearchCond getSearchCond(ConnectorObject connObj) { + AttributeCond cond = new AttributeCond(); + cond.setSchema("email"); + cond.setType(AttributeCond.Type.EQ); + cond.setExpression(connObj.getName().getNameValue()); + + return SearchCond.getLeafCond(cond); + } +} http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/all/provisioning.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/all/provisioning.properties b/syncope620/fit/core-reference/src/main/resources/all/provisioning.properties new file mode 100644 index 0000000..16a895b --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/all/provisioning.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +camel.directory=${conf.directory} +userProvisioningManager=org.apache.syncope.core.provisioning.camel.CamelUserProvisioningManager +roleProvisioningManager=org.apache.syncope.core.provisioning.camel.CamelRoleProvisioningManager http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/all/workflow.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/all/workflow.properties b/syncope620/fit/core-reference/src/main/resources/all/workflow.properties new file mode 100644 index 0000000..04e7d05 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/all/workflow.properties @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wf.directory=${conf.directory} +jobExecutorActivate=true +uwfAdapter=org.apache.syncope.core.workflow.activiti.ActivitiUserWorkflowAdapter +rwfAdapter=org.apache.syncope.core.workflow.java.DefaultRoleWorkflowAdapter \ No newline at end of file http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/connid.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/connid.properties b/syncope620/fit/core-reference/src/main/resources/connid.properties new file mode 100644 index 0000000..40d649c --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/connid.properties @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +connid.locations=${connid.location},\ +connid://${testconnectorserver.key}@localhost:${testconnectorserver.port} + +## for test only +testdb.url=${testdb.url} +connid.soap.version=${connid.soap.version} +connid.db.table.version=${connid.db.table.version} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/context.xml ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/context.xml b/syncope620/fit/core-reference/src/main/resources/context.xml new file mode 100644 index 0000000..471d561 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/context.xml @@ -0,0 +1,23 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<Context> + <!-- Disable session persistence across Tomcat restarts --> + <Manager pathname=""/> +</Context> http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/coreContext.xml ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/coreContext.xml b/syncope620/fit/core-reference/src/main/resources/coreContext.xml new file mode 100644 index 0000000..bbc4c4f --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/coreContext.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans.xsd"> + + <bean id="confDirectoryPropertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> + <property name="order" value="1"/> + <property name="ignoreResourceNotFound" value="true"/> + <property name="ignoreUnresolvablePlaceholders" value="true"/> + <property name="locations"> + <list> + <value>file:${conf.directory}/persistence.properties</value> + <value>file:${conf.directory}/security.properties</value> + <value>file:${conf.directory}/connid.properties</value> + <value>file:${conf.directory}/mail.properties</value> + <value>file:${conf.directory}/logic.properties</value> + <value>file:${conf.directory}/workflow.properties</value> + <value>file:${conf.directory}/provisioning.properties</value> + </list> + </property> + </bean> + <bean id="classpathPropertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> + <property name="locations"> + <list> + <value>classpath:persistence.properties</value> + <value>classpath:security.properties</value> + <value>classpath:connid.properties</value> + <value>classpath:mail.properties</value> + <value>classpath:logic.properties</value> + <value>classpath:workflow.properties</value> + <value>classpath:provisioning.properties</value> + </list> + </property> + </bean> + + <bean class="org.apache.syncope.core.misc.spring.ApplicationContextProvider"/> + +</beans> http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/jboss/persistenceContextEMFactory.xml ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/jboss/persistenceContextEMFactory.xml b/syncope620/fit/core-reference/src/main/resources/jboss/persistenceContextEMFactory.xml new file mode 100644 index 0000000..889400a --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/jboss/persistenceContextEMFactory.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans.xsd"> + + <bean id="entityManagerFactory" + class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> + <property name="packagesToScan" value="org.apache.syncope.core.persistence.jpa.entity"/> + <property name="validationMode" value="NONE"/> + <property name="mappingResources"> + <list> + <value>${jpa.orm}</value> + </list> + </property> + <property name="persistenceUnitName" value="syncopePersistenceUnit"/> + <property name="persistenceUnitPostProcessors"> + <list> + <bean class="org.apache.syncope.core.persistence.jpa.spring.MultiJarAwarePersistenceUnitPostProcessor"/> + </list> + </property> + <property name="dataSource" ref="dataSource"/> + <property name="jpaVendorAdapter"> + <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter"> + <property name="showSql" value="false"/> + <property name="generateDdl" value="true"/> + <property name="databasePlatform" value="${jpa.dialect}"/> + </bean> + </property> + <property name="jpaPropertyMap"> + <map> + <!--<entry key="openjpa.Log" value="SQL=TRACE"/> + <entry key="openjpa.ConnectionFactoryProperties" value="PrettyPrint=true, PrettyPrintLineLength=80"/>--> + + <entry key="openjpa.NontransactionalWrite" value="false"/> + <entry key="openjpa.AutoDetach" value="close, commit, nontx-read, rollback"/> + + <entry key="openjpa.jdbc.SchemaFactory" value="native(ForeignKeys=true)"/> + <entry key="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict"/> + + <entry key="openjpa.ReadLockLevel" value="none"/> + <entry key="openjpa.WriteLockLevel" value="write"/> + <entry key="openjpa.LockTimeout" value="30000"/> + + <entry key="openjpa.DataCache" value="true" /> + <entry key="openjpa.QueryCache" value="true"/> + <entry key="openjpa.RemoteCommitProvider" value="sjvm"/> + + <entry key="openjpa.MetaDataFactory" + value="jpa(URLs=vfs:${project.build.directory}/cargo/configurations/wildfly8x/deployments/syncope.war/WEB-INF/classes, Resources=${jpa.orm})"/> + </map> + </property> + </bean> + +</beans> http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/log4j2.xml ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/log4j2.xml b/syncope620/fit/core-reference/src/main/resources/log4j2.xml new file mode 100644 index 0000000..1bff199 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/log4j2.xml @@ -0,0 +1,135 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<configuration status="WARN"> + + <appenders> + + <RollingRandomAccessFile name="main" fileName="${log.directory}/server.log" + filePattern="${log.directory}/server-%d{yyyy-MM-dd}.log.gz" + immediateFlush="false" append="true"> + <PatternLayout> + <pattern>%d{HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </PatternLayout> + <Policies> + <TimeBasedTriggeringPolicy/> + <SizeBasedTriggeringPolicy size="250 MB"/> + </Policies> + </RollingRandomAccessFile> + + <RollingRandomAccessFile name="persistence" fileName="${log.directory}/server-persistence.log" + filePattern="${log.directory}/server-persistence-%d{yyyy-MM-dd}.log.gz" + immediateFlush="false" append="true"> + <PatternLayout> + <pattern>%d{HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </PatternLayout> + <Policies> + <TimeBasedTriggeringPolicy/> + <SizeBasedTriggeringPolicy size="250 MB"/> + </Policies> + </RollingRandomAccessFile> + + <RollingRandomAccessFile name="rest" fileName="${log.directory}/server-rest.log" + filePattern="${log.directory}/server-rest-%d{yyyy-MM-dd}.log.gz" + immediateFlush="false" append="true"> + <PatternLayout> + <pattern>%d{HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </PatternLayout> + <Policies> + <TimeBasedTriggeringPolicy/> + <SizeBasedTriggeringPolicy size="250 MB"/> + </Policies> + </RollingRandomAccessFile> + + <RollingRandomAccessFile name="connid" fileName="${log.directory}/server-connid.log" + filePattern="${log.directory}/server-connid-%d{yyyy-MM-dd}.log.gz" + immediateFlush="false" append="true"> + <PatternLayout> + <pattern>%d{HH:mm:ss.SSS} %-5level %msg%n</pattern> + </PatternLayout> + <Policies> + <TimeBasedTriggeringPolicy/> + <SizeBasedTriggeringPolicy size="250 MB"/> + </Policies> + </RollingRandomAccessFile> + + <!-- Audit --> + <Jdbc name="audit" tableName="SYNCOPEAUDIT"> + <ConnectionFactory class="org.apache.syncope.core.logic.audit.AuditConnectionFactory" method="getConnection"/> + <Column name="EVENT_DATE" isEventTimestamp="true"/> + <Column name="LOGGER_LEVEL" pattern="%level" isUnicode="false"/> + <Column name="LOGGER" pattern="%logger" isUnicode="false"/> + <Column name="MESSAGE" pattern="%message" isUnicode="false"/> + <Column name="THROWABLE" pattern="%ex{full}" isUnicode="false"/> + </Jdbc> + + </appenders> + + <loggers> + + <asyncLogger name="org.apache.syncope.core.persistence" additivity="false" level="INFO"> + <appender-ref ref="persistence"/> + </asyncLogger> + <asyncLogger name="org.springframework.orm" additivity="false" level="INFO"> + <appender-ref ref="persistence"/> + </asyncLogger> + + <asyncLogger name="org.apache.syncope.core.rest" additivity="false" level="INFO"> + <appender-ref ref="rest"/> + </asyncLogger> + <asyncLogger name="org.springframework.web" additivity="false" level="INFO"> + <appender-ref ref="rest"/> + </asyncLogger> + <asyncLogger name="org.apache.http" additivity="false" level="INFO"> + <appender-ref ref="rest"/> + </asyncLogger> + <asyncLogger name="org.apache.cxf" additivity="false" level="ERROR"> + <appender-ref ref="rest"/> + </asyncLogger> + + <asyncLogger name="org.identityconnectors" additivity="false" level="DEBUG"> + <appender-ref ref="connid"/> + </asyncLogger> + <asyncLogger name="net.tirasa.connid" additivity="false" level="DEBUG"> + <appender-ref ref="connid"/> + </asyncLogger> + <asyncLogger name="org.apache.syncope.core.provisioning.api.ConnIdBundleManager" additivity="false" level="INFO"> + <appender-ref ref="connid"/> + </asyncLogger> + + <asyncLogger name="org.apache.syncope.core.provisioning" additivity="false" level="INFO"> + <appender-ref ref="main"/> + </asyncLogger> + <asyncLogger name="org.springframework" additivity="false" level="INFO"> + <appender-ref ref="main"/> + </asyncLogger> + <asyncLogger name="org.apache.camel" additivity="false" level="ERROR"> + <appender-ref ref="main"/> + </asyncLogger> + + <logger name="syncope.audit" additivity="false" level="DEBUG"> + <appender-ref ref="audit"/> + </logger> + + <root level="INFO"> + <appender-ref ref="main"/> + </root> + + </loggers> +</configuration> http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/logic.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/logic.properties b/syncope620/fit/core-reference/src/main/resources/logic.properties new file mode 100644 index 0000000..2fcb844 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/logic.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +attributableTransformer=org.apache.syncope.fit.core.reference.DoubleValueAttributableTransformer +logicInvocationHandler=org.apache.syncope.core.logic.LogicInvocationHandler http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/mariadb/persistence.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/mariadb/persistence.properties b/syncope620/fit/core-reference/src/main/resources/mariadb/persistence.properties new file mode 100644 index 0000000..b58b72b --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/mariadb/persistence.properties @@ -0,0 +1,30 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +content.directory=${conf.directory} +jpa.driverClassName=org.mariadb.jdbc.Driver +jpa.url=jdbc:mariadb://localhost:3306/syncope?characterEncoding=UTF-8 +jpa.username=syncope +jpa.password=syncope +jpa.dialect=org.apache.openjpa.jdbc.sql.MariaDBDictionary +jpa.pool.validationQuery=SELECT 1 +jpa.orm=META-INF/spring-orm.xml +#note: other connection pool settings can also be configured here, see persistenceContext.xml +quartz.jobstore=org.quartz.impl.jdbcjobstore.StdJDBCDelegate +quartz.scheduler.idleWaitTime=5000 +quartz.sql=tables_mariadb.sql +audit.sql=audit.sql +database.schema= http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/mysql/persistence.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/mysql/persistence.properties b/syncope620/fit/core-reference/src/main/resources/mysql/persistence.properties new file mode 100644 index 0000000..0e2f002 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/mysql/persistence.properties @@ -0,0 +1,30 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +content.directory=${conf.directory} +jpa.driverClassName=com.mysql.jdbc.Driver +jpa.url=jdbc:mysql://localhost:3306/syncope?characterEncoding=UTF-8 +jpa.username=syncope +jpa.password=syncope +jpa.dialect=org.apache.openjpa.jdbc.sql.MySQLDictionary +jpa.pool.validationQuery=SELECT 1 +jpa.orm=META-INF/spring-orm.xml +#note: other connection pool settings can also be configured here, see persistenceContext.xml +quartz.jobstore=org.quartz.impl.jdbcjobstore.StdJDBCDelegate +quartz.scheduler.idleWaitTime=5000 +quartz.sql=tables_mysql.sql +audit.sql=audit.sql +database.schema= http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/oracle/persistence.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/oracle/persistence.properties b/syncope620/fit/core-reference/src/main/resources/oracle/persistence.properties new file mode 100644 index 0000000..687282d --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/oracle/persistence.properties @@ -0,0 +1,30 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +content.directory=${conf.directory} +jpa.driverClassName=oracle.jdbc.OracleDriver +jpa.url=jdbc:oracle:thin:@pioppo:1521:orcl +jpa.username=syncope +jpa.password=syncope +jpa.dialect=org.apache.openjpa.jdbc.sql.OracleDictionary +jpa.pool.validationQuery=SELECT 1 FROM DUAL +jpa.orm=META-INF/spring-orm-oracle.xml +#note: other connection pool settings can also be configured here, see persistenceContext.xml +quartz.jobstore=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate +quartz.scheduler.idleWaitTime=5000 +quartz.sql=tables_oracle.sql +audit.sql=audit_oracle.sql +database.schema=SYNCOPE http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/postgres/persistence.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/postgres/persistence.properties b/syncope620/fit/core-reference/src/main/resources/postgres/persistence.properties new file mode 100644 index 0000000..5afa1a6 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/postgres/persistence.properties @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +content.directory=${conf.directory} +jpa.driverClassName=org.postgresql.Driver +jpa.url=jdbc:postgresql://localhost:5432/syncope +jpa.username=syncope +jpa.password=syncope +jpa.dialect=org.apache.openjpa.jdbc.sql.PostgresDictionary +jpa.pool.validationQuery=SELECT 1 +jpa.orm=META-INF/spring-orm.xml +#note: other connection pool settings can also be configured here, see persistenceContext.xml +quartz.jobstore=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate +quartz.sql=tables_postgres.sql +audit.sql=audit.sql +database.schema= http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/provisioning.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/provisioning.properties b/syncope620/fit/core-reference/src/main/resources/provisioning.properties new file mode 100644 index 0000000..af5deee --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/provisioning.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +userProvisioningManager=org.apache.syncope.core.provisioning.java.DefaultUserProvisioningManager +roleProvisioningManager=org.apache.syncope.core.provisioning.java.DefaultRoleProvisioningManager http://git-wip-us.apache.org/repos/asf/syncope/blob/d30c8526/syncope620/fit/core-reference/src/main/resources/sqlserver/persistence.properties ---------------------------------------------------------------------- diff --git a/syncope620/fit/core-reference/src/main/resources/sqlserver/persistence.properties b/syncope620/fit/core-reference/src/main/resources/sqlserver/persistence.properties new file mode 100644 index 0000000..fa329d6 --- /dev/null +++ b/syncope620/fit/core-reference/src/main/resources/sqlserver/persistence.properties @@ -0,0 +1,30 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +content.directory=${conf.directory} +jpa.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver +jpa.url=jdbc:sqlserver://acacia:1433;database=syncope;selectMethod=cursor;sendStringParametersAsUnicode=false +jpa.username=syncope +jpa.password=syncope +jpa.dialect=org.apache.openjpa.jdbc.sql.SQLServerDictionary +jpa.pool.validationQuery=SELECT 1 +jpa.orm=META-INF/spring-orm-sqlserver.xml +#note: other connection pool settings can also be configured here, see persistenceContext.xml +quartz.jobstore=org.quartz.impl.jdbcjobstore.MSSQLDelegate +quartz.scheduler.idleWaitTime=5000 +quartz.sql=tables_sqlServer.sql +audit.sql=audit_sqlserver.sql +database.schema=
