You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/03/23 10:41:13 UTC

[syncope] branch master updated (597bd59 -> f7a4fbf)

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git.


    from 597bd59  Upgrading Spring Security, Elasticsearch, maven-dependency-plugin, maven-site-plugin
     new bd5bb05  Enhance SearchConditionBuilder features
     new cab76f2  [SYNCOPE-1545] Splitting wa into starter and bootstrap to allow for Spring Cloud Bootstap configuration (and reload)
     new 86bb0f9  Upgrading Wildfly (and fixing IT)
     new 72f7115  Upgrading modernizer-maven-plugin
     new f7a4fbf  Upgrading JUnit

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/resources/archetype-resources/wa/pom.xml  |   2 +-
 .../search/AbstractFiqlSearchConditionBuilder.java | 112 +++++--
 .../lib/search/AnyObjectCompleteCondition.java     |   7 +-
 .../AnyObjectFiqlSearchConditionBuilder.java       |  37 +--
 .../lib/search/AnyObjectPartialCondition.java      |   7 +-
 .../common/lib/search/AnyObjectProperty.java       |  19 +-
 .../lib/search/ConnObjectTOCompleteCondition.java  |   7 +-
 .../ConnObjectTOFiqlSearchConditionBuilder.java    |  33 +-
 .../lib/search/ConnObjectTOPartialCondition.java   |   7 +-
 .../common/lib/search/ConnObjectTOProperty.java    |   6 +-
 .../common/lib/search/GroupCompleteCondition.java  |   6 +-
 .../search/GroupFiqlSearchConditionBuilder.java    |  21 +-
 .../common/lib/search/GroupPartialCondition.java   |   6 +-
 .../syncope/common/lib/search/GroupProperty.java   |  10 +-
 ...Property.java => SyncopeCompleteCondition.java} |  15 +-
 ...tProperty.java => SyncopePartialCondition.java} |  25 +-
 .../syncope/common/lib/search/SyncopeProperty.java |  22 +-
 .../common/lib/search/UserCompleteCondition.java   |   6 +-
 .../lib/search/UserFiqlSearchConditionBuilder.java |  49 +--
 .../common/lib/search/UserPartialCondition.java    |   6 +-
 .../syncope/common/lib/search/UserProperty.java    |  25 +-
 .../api/search/FilterConverterTest.java            |  29 --
 docker/wa/pom.xml                                  |   6 +-
 .../wa/src/main/resources/application.properties   |   8 +-
 fit/build-tools/pom.xml                            |  40 +++
 .../greenmail/util/InterruptableGreenMail.java     |  54 ----
 .../fit/buildtools/GreenMailStartStopListener.java |   8 +-
 .../fit/buildtools}/InterruptableSmtpServer.java   |   3 +-
 .../fit/buildtools/cxf/GreenMailServiceImpl.java   |   8 +-
 .../webapp/WEB-INF/jboss-deployment-structure.xml  |   1 +
 fit/core-reference/pom.xml                         |   4 +-
 .../main/resources/application-wildfly.properties  |   2 +-
 .../webapp/WEB-INF/jboss-deployment-structure.xml  |   2 +
 .../syncope/fit/core/NotificationITCase.java       |   5 +-
 .../apache/syncope/fit/enduser/EnduserITCase.java  |   4 +-
 fit/wa-reference/pom.xml                           |   4 +-
 pom.xml                                            | 169 +++++++++-
 .../apache/syncope/sra/ZookeeperTestingServer.java |   9 +-
 .../getting-started/systemRequirements.adoc        |   2 +-
 .../systemadministration/javaeecontainer.adoc      |   4 +-
 wa/LICENSE                                         | 202 ------------
 wa/NOTICE                                          |   5 -
 {core/workflow-api => wa/bootstrap}/pom.xml        |  28 +-
 .../RestfulCloudConfigBootstrapConfiguration.java  |  53 +++
 .../src/main/resources/META-INF/spring.factories   |   4 +-
 wa/pom.xml                                         | 355 +--------------------
 wa/{ => starter}/pom.xml                           |  92 ++----
 .../syncope/wa/starter}/SyncopeWAApplication.java  |   2 +-
 .../wa/starter}/SyncopeWAConfiguration.java        |   4 +-
 .../src/main/resources/META-INF/spring.factories   |   2 +-
 .../src/main/resources/application.properties      |   2 +
 wa/{ => starter}/src/main/resources/log4j2.xml     |   0
 .../resources/thymeleaf}/static/images/favicon.png | Bin
 .../resources/thymeleaf}/static/images/logo.png    | Bin
 .../thymeleaf}/templates/fragments/footer.html     |   0
 .../thymeleaf}/templates/fragments/header.html     |   0
 .../resources/thymeleaf}/templates/layout.html     |   0
 wa/{ => starter}/src/main/resources/wa.properties  |   0
 .../apache/syncope/wa/starter}/SyncopeWATest.java  |   2 +-
 .../wa/starter}/ZookeeperTestingServer.java        |  11 +-
 .../test/resources/application-debug.properties    |   0
 .../src/test/resources/keymaster.properties        |   2 +-
 62 files changed, 587 insertions(+), 967 deletions(-)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectCompleteCondition.java (81%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectPartialCondition.java (82%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOCompleteCondition.java (81%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOPartialCondition.java (81%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOProperty.java (85%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupCompleteCondition.java (83%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupPartialCondition.java (83%)
 copy common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/{GroupProperty.java => SyncopeCompleteCondition.java} (76%)
 copy common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/{AnyObjectProperty.java => SyncopePartialCondition.java} (61%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserCompleteCondition.java (83%)
 copy client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/rest/RestClient.java => common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserPartialCondition.java (83%)
 delete mode 100644 fit/build-tools/src/main/java/com/icegreen/greenmail/util/InterruptableGreenMail.java
 rename fit/build-tools/src/main/java/{com/icegreen/greenmail/smtp => org/apache/syncope/fit/buildtools}/InterruptableSmtpServer.java (95%)
 delete mode 100644 wa/LICENSE
 delete mode 100644 wa/NOTICE
 copy {core/workflow-api => wa/bootstrap}/pom.xml (71%)
 create mode 100644 wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/RestfulCloudConfigBootstrapConfiguration.java
 copy {core/idrepo/logic => wa/bootstrap}/src/main/resources/META-INF/spring.factories (85%)
 copy wa/{ => starter}/pom.xml (83%)
 rename wa/{src/main/java/org/apache/syncope/wa => starter/src/main/java/org/apache/syncope/wa/starter}/SyncopeWAApplication.java (99%)
 rename wa/{src/main/java/org/apache/syncope/wa/config => starter/src/main/java/org/apache/syncope/wa/starter}/SyncopeWAConfiguration.java (98%)
 rename wa/{ => starter}/src/main/resources/META-INF/spring.factories (94%)
 rename wa/{ => starter}/src/main/resources/application.properties (94%)
 rename wa/{ => starter}/src/main/resources/log4j2.xml (100%)
 rename wa/{src/main/resources => starter/src/main/resources/thymeleaf}/static/images/favicon.png (100%)
 rename wa/{src/main/resources => starter/src/main/resources/thymeleaf}/static/images/logo.png (100%)
 rename wa/{src/main/resources => starter/src/main/resources/thymeleaf}/templates/fragments/footer.html (100%)
 rename wa/{src/main/resources => starter/src/main/resources/thymeleaf}/templates/fragments/header.html (100%)
 rename wa/{src/main/resources => starter/src/main/resources/thymeleaf}/templates/layout.html (100%)
 rename wa/{ => starter}/src/main/resources/wa.properties (100%)
 rename wa/{src/test/java/org/apache/syncope/wa => starter/src/test/java/org/apache/syncope/wa/starter}/SyncopeWATest.java (99%)
 rename wa/{src/test/java/org/apache/syncope/wa => starter/src/test/java/org/apache/syncope/wa/starter}/ZookeeperTestingServer.java (87%)
 rename wa/{ => starter}/src/test/resources/application-debug.properties (100%)
 rename wa/{ => starter}/src/test/resources/keymaster.properties (96%)


[syncope] 05/05: Upgrading JUnit

Posted by il...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit f7a4fbf49c3fc0bfa3ee8bfef672d0a079100aa1
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Mon Mar 23 06:43:13 2020 +0100

    Upgrading JUnit
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 37d2c0d..24e2029 100644
--- a/pom.xml
+++ b/pom.xml
@@ -451,7 +451,7 @@ under the License.
 
     <h2.version>1.4.200</h2.version>
 
-    <junit.version>5.6.0</junit.version>
+    <junit.version>5.6.1</junit.version>
     <mockito.version>3.3.0</mockito.version>
 
     <swagger-core.version>2.1.1</swagger-core.version>


[syncope] 02/05: [SYNCOPE-1545] Splitting wa into starter and bootstrap to allow for Spring Cloud Bootstap configuration (and reload)

Posted by il...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit cab76f2d3b07f3eee4f13c08e8bb1f06c5f42b2b
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Fri Mar 20 11:24:33 2020 +0100

    [SYNCOPE-1545] Splitting wa into starter and bootstrap to allow for Spring Cloud Bootstap configuration (and reload)
---
 .../main/resources/archetype-resources/wa/pom.xml  |   2 +-
 docker/wa/pom.xml                                  |   6 +-
 .../wa/src/main/resources/application.properties   |   8 +-
 fit/wa-reference/pom.xml                           |   4 +-
 pom.xml                                            | 162 +++++++++-
 .../apache/syncope/sra/ZookeeperTestingServer.java |   9 +-
 wa/LICENSE                                         | 202 ------------
 wa/NOTICE                                          |   5 -
 wa/bootstrap/pom.xml                               |  68 ++++
 .../RestfulCloudConfigBootstrapConfiguration.java  |  53 +++
 .../src/main/resources/META-INF/spring.factories   |   4 +-
 wa/pom.xml                                         | 355 +--------------------
 wa/{ => starter}/pom.xml                           |  92 ++----
 .../syncope/wa/starter}/SyncopeWAApplication.java  |   2 +-
 .../wa/starter}/SyncopeWAConfiguration.java        |   4 +-
 .../src/main/resources/META-INF/spring.factories   |   2 +-
 .../src/main/resources/application.properties      |   2 +
 wa/{ => starter}/src/main/resources/log4j2.xml     |   0
 .../resources/thymeleaf}/static/images/favicon.png | Bin
 .../resources/thymeleaf}/static/images/logo.png    | Bin
 .../thymeleaf}/templates/fragments/footer.html     |   0
 .../thymeleaf}/templates/fragments/header.html     |   0
 .../resources/thymeleaf}/templates/layout.html     |   0
 wa/{ => starter}/src/main/resources/wa.properties  |   0
 .../apache/syncope/wa/starter}/SyncopeWATest.java  |   2 +-
 .../wa/starter}/ZookeeperTestingServer.java        |  11 +-
 .../test/resources/application-debug.properties    |   0
 .../src/test/resources/keymaster.properties        |   2 +-
 28 files changed, 337 insertions(+), 658 deletions(-)

diff --git a/archetype/src/main/resources/archetype-resources/wa/pom.xml b/archetype/src/main/resources/archetype-resources/wa/pom.xml
index 91b4a22..79489fb 100644
--- a/archetype/src/main/resources/archetype-resources/wa/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/wa/pom.xml
@@ -116,7 +116,7 @@ under the License.
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-maven-plugin</artifactId>
             <configuration>
-              <mainClass>org.apache.syncope.wa.SyncopeWAApplication</mainClass>
+              <mainClass>org.apache.syncope.wa.starter.SyncopeWAApplication</mainClass>
               <layout>ZIP</layout>
             </configuration>
             <executions>
diff --git a/docker/wa/pom.xml b/docker/wa/pom.xml
index 13721b8..62b1cdd 100644
--- a/docker/wa/pom.xml
+++ b/docker/wa/pom.xml
@@ -49,8 +49,8 @@ under the License.
     </dependency>
 
     <dependency>
-      <groupId>org.apache.syncope</groupId>
-      <artifactId>syncope-wa</artifactId>
+      <groupId>org.apache.syncope.wa</groupId>
+      <artifactId>syncope-wa-starter</artifactId>
       <version>${project.version}</version>
     </dependency>
 
@@ -92,7 +92,7 @@ under the License.
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
         <configuration>
-          <mainClass>org.apache.syncope.wa.SyncopeWAApplication</mainClass>
+          <mainClass>org.apache.syncope.wa.starter.SyncopeWAApplication</mainClass>
           <layout>ZIP</layout>
         </configuration>
         <executions>
diff --git a/docker/wa/src/main/resources/application.properties b/docker/wa/src/main/resources/application.properties
index 254b399..763602f 100644
--- a/docker/wa/src/main/resources/application.properties
+++ b/docker/wa/src/main/resources/application.properties
@@ -26,6 +26,9 @@ spring.http.encoding.force=true
 
 server.servlet.contextPath=/syncope-wa
 
+spring.resources.static-locations=classpath:/syncope/static,classpath:/static
+spring.thymeleaf.templateResolverOrder=1 
+
 ##
 # Allow configuration classes to override bean definitions from Spring Boot
 #
@@ -33,8 +36,3 @@ spring.main.allow-bean-definition-overriding=true
 spring.main.lazy-initialization=false
 
 service.discovery.address=${SERVICE_DISCOVERY_ADDRESS}
-
-# Conf directories
-conf.directory=${conf.directory}
-cas.standalone.configurationDirectory=${conf.directory}
-cas.authn.oidc.jwksFile=file:${conf.directory}/oidc.keystore
diff --git a/fit/wa-reference/pom.xml b/fit/wa-reference/pom.xml
index e097196..c0adcd2 100644
--- a/fit/wa-reference/pom.xml
+++ b/fit/wa-reference/pom.xml
@@ -46,8 +46,8 @@ under the License.
 
   <dependencies>
     <dependency>
-      <groupId>org.apache.syncope</groupId>
-      <artifactId>syncope-wa</artifactId>
+      <groupId>org.apache.syncope.wa</groupId>
+      <artifactId>syncope-wa-starter</artifactId>
       <version>${project.version}</version>
     </dependency>
 
diff --git a/pom.xml b/pom.xml
index 73a80cd..44fd5e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -411,7 +411,7 @@ under the License.
     <spring.version>5.2.4.RELEASE</spring.version>
     <spring-security.version>5.3.0.RELEASE</spring-security.version>
     <spring-boot.version>2.2.5.RELEASE</spring-boot.version>
-    <spring-cloud-gateway.version>2.2.1.RELEASE</spring-cloud-gateway.version>
+    <spring-cloud-gateway.version>2.2.2.RELEASE</spring-cloud-gateway.version>
 
     <openjpa.version>3.1.1</openjpa.version>
     <hikaricp.version>3.4.2</hikaricp.version>
@@ -423,7 +423,7 @@ under the License.
 
     <cocoon.version>3.0.0-alpha-3</cocoon.version>
 
-    <groovy.version>3.0.1</groovy.version>
+    <groovy.version>3.0.2</groovy.version>
 
     <flowable.version>6.5.0</flowable.version>
 
@@ -1438,6 +1438,164 @@ under the License.
       </dependency>
       <!-- /Flowable -->
 
+      <!-- CAS -->
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-audit</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-authentication</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-configuration-api</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-configuration</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-cookie</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-logout</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-logging</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-services</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-tickets</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-util</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-validation</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-web</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-webflow</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-core-events-configuration</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-thymeleaf</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-actions</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-ldap</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-reports</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-syncope-authentication</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-saml</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-person-directory</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-themes</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-oidc</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-validation</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-pm-webflow</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-pac4j-webflow</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-consent-webflow</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-aup-webflow</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-support-rest-service-registry</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apereo.cas</groupId>
+        <artifactId>cas-server-webapp-config</artifactId>
+        <version>${cas.version}</version>
+      </dependency>
+      <!-- /CAS -->
+
       <!-- Wicket -->
       <dependency>
         <groupId>org.apache.wicket</groupId>
diff --git a/sra/src/test/java/org/apache/syncope/sra/ZookeeperTestingServer.java b/sra/src/test/java/org/apache/syncope/sra/ZookeeperTestingServer.java
index 89fc3bc..930d724 100644
--- a/sra/src/test/java/org/apache/syncope/sra/ZookeeperTestingServer.java
+++ b/sra/src/test/java/org/apache/syncope/sra/ZookeeperTestingServer.java
@@ -27,6 +27,7 @@ import java.util.Properties;
 import java.util.concurrent.atomic.AtomicReference;
 import javax.security.auth.login.AppConfigurationEntry;
 import javax.security.auth.login.Configuration;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.curator.test.InstanceSpec;
 import org.apache.curator.test.TestingServer;
 import org.apache.zookeeper.server.auth.DigestLoginModule;
@@ -38,12 +39,14 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
 
     @Override
     public void initialize(final ConfigurableApplicationContext ctx) {
+        AtomicReference<Integer> port = new AtomicReference<>();
         AtomicReference<String> username = new AtomicReference<>();
         AtomicReference<String> password = new AtomicReference<>();
         try (InputStream propStream = getClass().getResourceAsStream("/keymaster.properties")) {
             Properties props = new Properties();
             props.load(propStream);
 
+            port.set(Integer.valueOf(StringUtils.substringAfter(props.getProperty("keymaster.address"), ":")));
             username.set(props.getProperty("keymaster.username"));
             password.set(props.getProperty("keymaster.password"));
         } catch (Exception e) {
@@ -56,9 +59,7 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
                 new AppConfigurationEntry(
                 DigestLoginModule.class.getName(),
                 AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
-                Map.of(
-                "user_" + username.get(), password.get()
-                ))
+                Map.of("user_" + username.get(), password.get()))
             };
 
             @Override
@@ -69,7 +70,7 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
 
         Map<String, Object> customProperties = new HashMap<>();
         customProperties.put("authProvider.1", SASLAuthenticationProvider.class.getName());
-        InstanceSpec spec = new InstanceSpec(null, 2181, -1, -1, true, 1, -1, -1, customProperties);
+        InstanceSpec spec = new InstanceSpec(null, port.get(), -1, -1, true, 1, -1, -1, customProperties);
 
         try {
             new TestingServer(spec, true);
diff --git a/wa/LICENSE b/wa/LICENSE
deleted file mode 100644
index d645695..0000000
--- a/wa/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/wa/NOTICE b/wa/NOTICE
deleted file mode 100644
index 3db7985..0000000
--- a/wa/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache Syncope
-Copyright 2012-2019 The Apache Software Foundation
-
-This product includes software developed by:
-The Apache Software Foundation (http://www.apache.org/).
diff --git a/wa/bootstrap/pom.xml b/wa/bootstrap/pom.xml
new file mode 100644
index 0000000..72b7482
--- /dev/null
+++ b/wa/bootstrap/pom.xml
@@ -0,0 +1,68 @@
+<?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-wa</artifactId>
+    <version>3.0.0-SNAPSHOT</version>
+  </parent>
+
+  <name>Apache Syncope WA Bootstrap</name>
+  <description>Apache Syncope WA Bootstrap</description>
+  <groupId>org.apache.syncope.wa</groupId>
+  <artifactId>syncope-wa-bootstrap</artifactId>
+  <packaging>jar</packaging>
+  
+  <properties>
+    <rootpom.basedir>${basedir}/../..</rootpom.basedir>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.syncope.client.am</groupId>
+      <artifactId>syncope-client-am-lib</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apereo.cas</groupId>
+      <artifactId>cas-server-core-configuration-api</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+      </plugin>
+    </plugins>
+
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+  </build>
+</project>
diff --git a/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/RestfulCloudConfigBootstrapConfiguration.java b/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/RestfulCloudConfigBootstrapConfiguration.java
new file mode 100644
index 0000000..262931f
--- /dev/null
+++ b/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/RestfulCloudConfigBootstrapConfiguration.java
@@ -0,0 +1,53 @@
+/*
+ * 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.wa.bootstrap;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import java.net.URI;
+import java.util.Map;
+import javax.ws.rs.core.MediaType;
+import org.apache.cxf.jaxrs.client.WebClient;
+import org.springframework.cloud.bootstrap.config.PropertySourceLocator;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.env.Environment;
+import org.springframework.core.env.MapPropertySource;
+import org.springframework.core.env.PropertySource;
+
+@Configuration(value = "restfulCloudConfigBootstrapConfiguration", proxyBeanMethods = false)
+public class RestfulCloudConfigBootstrapConfiguration implements PropertySourceLocator {
+
+    private static final ObjectMapper MAPPER = new ObjectMapper().findAndRegisterModules();
+
+    @Override
+    public PropertySource<?> locate(final Environment environment) {
+        try {
+            String content = WebClient.create(URI.create("https://demo5926981.mockable.io/casproperties")).
+                    accept(MediaType.APPLICATION_JSON_TYPE).
+                    get().
+                    readEntity(String.class);
+
+            Map<String, Object> payload = MAPPER.readValue(content, new TypeReference<Map<String, Object>>() {
+            });
+            return new MapPropertySource(getClass().getName(), payload);
+        } catch (Exception e) {
+            throw new IllegalArgumentException("Unable to fetch settings", e);
+        }
+    }
+}
diff --git a/wa/src/main/resources/META-INF/spring.factories b/wa/bootstrap/src/main/resources/META-INF/spring.factories
similarity index 85%
copy from wa/src/main/resources/META-INF/spring.factories
copy to wa/bootstrap/src/main/resources/META-INF/spring.factories
index db54cd0..4cd20b8 100644
--- a/wa/src/main/resources/META-INF/spring.factories
+++ b/wa/bootstrap/src/main/resources/META-INF/spring.factories
@@ -14,4 +14,6 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.apache.syncope.wa.config.SyncopeWAConfiguration
+
+org.springframework.cloud.bootstrap.BootstrapConfiguration=\
+ org.apache.syncope.wa.bootstrap.RestfulCloudConfigBootstrapConfiguration
diff --git a/wa/pom.xml b/wa/pom.xml
index 8cb9d18..eaaf61e 100644
--- a/wa/pom.xml
+++ b/wa/pom.xml
@@ -30,7 +30,7 @@ under the License.
   <name>Apache Syncope WA</name>
   <description>Apache Syncope WA</description>
   <artifactId>syncope-wa</artifactId>
-  <packaging>jar</packaging>
+  <packaging>pom</packaging>
   
   <properties>
     <guava.version>28.2-jre</guava.version>
@@ -41,356 +41,8 @@ under the License.
     <rootpom.basedir>${basedir}/..</rootpom.basedir>
   </properties>
 
-  <dependencyManagement>
-    <dependencies>
-      <dependency>
-        <groupId>org.apereo.cas</groupId>
-        <artifactId>cas-server-support-bom</artifactId>
-        <version>${cas.version}</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
-    </dependencies>
-  </dependencyManagement>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.syncope.common.keymaster</groupId>
-      <artifactId>syncope-common-keymaster-client-api</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.apache.syncope.client.am</groupId>
-      <artifactId>syncope-client-am-lib</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.glassfish</groupId>
-      <artifactId>javax.el</artifactId>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-audit</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-authentication</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-configuration</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-cookie</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-logout</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-logging</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-services</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-tickets</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-util</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-validation</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-web</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-webflow</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-core-events-configuration</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-thymeleaf</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-actions</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-ldap</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-reports</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-syncope-authentication</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-saml</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-person-directory</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-themes</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-oidc</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-validation</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-pm-webflow</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-pac4j-webflow</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-consent-webflow</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-aup-webflow</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-support-rest-service-registry</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apereo.cas</groupId>
-      <artifactId>cas-server-webapp-config</artifactId>
-    </dependency>
-
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-web</artifactId>
-      <exclusions>
-        <exclusion>
-          <groupId>org.springframework.boot</groupId>
-          <artifactId>spring-boot-starter-logging</artifactId>
-        </exclusion>
-      </exclusions>    
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-actuator</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-security</artifactId>
-    </dependency>
-
-    <dependency>
-      <groupId>org.apache.syncope.common.keymaster</groupId>
-      <artifactId>syncope-common-keymaster-client-zookeeper</artifactId>
-      <version>${project.version}</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.curator</groupId>
-      <artifactId>curator-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-tomcat</artifactId>
-      <scope>test</scope>      
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-checkstyle-plugin</artifactId>
-      </plugin>
-    </plugins>
-
-    <resources>
-      <resource>
-        <directory>src/main/resources</directory>
-        <filtering>true</filtering>
-      </resource>
-
-      <resource>
-        <directory>${basedir}/../src/main/resources</directory>
-        <filtering>true</filtering>
-        <includes>
-          <include>banner.txt</include>
-        </includes>
-      </resource>
-    </resources>
-
-    <testResources>
-      <testResource>
-        <directory>${basedir}/src/test/resources</directory>
-        <filtering>true</filtering>
-      </testResource>
-    </testResources>
-  </build>
-
   <profiles>
     <profile>
-      <id>debug</id>
-
-      <properties>
-        <skipTests>true</skipTests>
-      </properties>
-
-      <dependencies>
-        <dependency>
-          <groupId>org.springframework.boot</groupId>
-          <artifactId>spring-boot-starter-undertow</artifactId>
-        </dependency>
-
-        <dependency>
-          <groupId>org.apache.syncope.common.keymaster</groupId>
-          <artifactId>syncope-common-keymaster-client-zookeeper</artifactId>
-          <version>${project.version}</version>
-          <scope>compile</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.apache.curator</groupId>
-          <artifactId>curator-test</artifactId>
-          <scope>compile</scope>
-        </dependency>
-
-        <dependency>
-          <groupId>org.springframework.boot</groupId>
-          <artifactId>spring-boot-devtools</artifactId>
-        </dependency>
-      </dependencies>
-
-      <build>
-        <defaultGoal>clean package io.fabric8:docker-maven-plugin:start spring-boot:run</defaultGoal>
-
-        <plugins>
-          <plugin>
-            <groupId>io.fabric8</groupId>
-            <artifactId>docker-maven-plugin</artifactId>
-            <configuration>
-              <images>
-                <image>
-                  <name>zookeeper:${zookeeper.version}</name>
-                  <run>
-                    <ports>
-                      <port>2181:2181</port>
-                    </ports>
-                    <volumes>
-                      <bind>
-                        <volume>${project.build.testOutputDirectory}/zoo.cfg:/conf/zoo.cfg</volume>
-                        <volume>${project.build.testOutputDirectory}/java.env:/conf/java.env</volume>
-                        <volume>${project.build.testOutputDirectory}/server-jaas.conf:/conf/server-jaas.conf</volume>
-                        <volume>${project.build.testOutputDirectory}/client-jaas.conf:/conf/client-jaas.conf</volume>
-                      </bind>
-                    </volumes>
-                  </run>
-                </image>
-              </images>
-            </configuration>
-          </plugin>
-
-          <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>build-helper-maven-plugin</artifactId>
-            <executions>
-              <execution>
-                <goals>
-                  <goal>add-source</goal>
-                </goals>
-                <configuration>
-                  <sources>
-                    <source>${basedir}/src/test/java</source>
-                  </sources>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-compiler-plugin</artifactId>
-            <configuration>
-              <excludes>
-                <exclude>**/org/apache/syncope/wa/**Test.java</exclude>
-                <exclude>**/org/apache/syncope/wa/**Zookeeper*.java</exclude>
-              </excludes>
-            </configuration>
-          </plugin>
-
-          <plugin>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-maven-plugin</artifactId>
-            <configuration>
-              <mainClass>org.apache.syncope.wa.SyncopeWAApplication</mainClass>
-              <jvmArguments>
-                -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
-              </jvmArguments>
-              <profiles>
-                <profile>debug</profile>
-              </profiles>
-            </configuration>
-          </plugin>
-        </plugins>
-
-        <resources>
-          <resource>
-            <directory>${basedir}/src/test/resources</directory>
-            <filtering>true</filtering>
-          </resource>
-        </resources>
-
-        <testResources>
-          <testResource>
-            <directory>${basedir}/../common/keymaster/client-zookeeper/src/main/resources</directory>
-            <filtering>true</filtering>
-          </testResource>
-        </testResources>
-      </build>
-    </profile>
-
-    <profile>
       <id>site</id>
 
       <build>
@@ -434,4 +86,9 @@ under the License.
       <url>https://build.shibboleth.net/nexus/content/groups/public</url>
     </repository>
   </repositories>
+
+  <modules>
+    <module>bootstrap</module>
+    <module>starter</module>
+  </modules>
 </project>
diff --git a/wa/pom.xml b/wa/starter/pom.xml
similarity index 83%
copy from wa/pom.xml
copy to wa/starter/pom.xml
index 8cb9d18..51bd951 100644
--- a/wa/pom.xml
+++ b/wa/starter/pom.xml
@@ -23,38 +23,28 @@ under the License.
 
   <parent>
     <groupId>org.apache.syncope</groupId>
-    <artifactId>syncope</artifactId>
+    <artifactId>syncope-wa</artifactId>
     <version>3.0.0-SNAPSHOT</version>
   </parent>
 
-  <name>Apache Syncope WA</name>
-  <description>Apache Syncope WA</description>
-  <artifactId>syncope-wa</artifactId>
+  <name>Apache Syncope WA Spring Boot Starter</name>
+  <description>Apache Syncope WA Spring Boot Starter</description>
+  <groupId>org.apache.syncope.wa</groupId>
+  <artifactId>syncope-wa-starter</artifactId>
   <packaging>jar</packaging>
   
   <properties>
-    <guava.version>28.2-jre</guava.version>
-    <opensaml.version>3.4.5</opensaml.version>
-    <bootstrap.version>4.4.1</bootstrap.version>
-    <slf4j.version>2.0.0-alpha1</slf4j.version>
-
-    <rootpom.basedir>${basedir}/..</rootpom.basedir>
+    <rootpom.basedir>${basedir}/../..</rootpom.basedir>
   </properties>
 
-  <dependencyManagement>
-    <dependencies>
-      <dependency>
-        <groupId>org.apereo.cas</groupId>
-        <artifactId>cas-server-support-bom</artifactId>
-        <version>${cas.version}</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
-    </dependencies>
-  </dependencyManagement>
-
   <dependencies>
     <dependency>
+      <groupId>org.apache.syncope.wa</groupId>
+      <artifactId>syncope-wa-bootstrap</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <dependency>
       <groupId>org.apache.syncope.common.keymaster</groupId>
       <artifactId>syncope-common-keymaster-client-api</artifactId>
       <version>${project.version}</version>
@@ -252,9 +242,9 @@ under the License.
         <directory>src/main/resources</directory>
         <filtering>true</filtering>
       </resource>
-
+      
       <resource>
-        <directory>${basedir}/../src/main/resources</directory>
+        <directory>${basedir}/../../src/main/resources</directory>
         <filtering>true</filtering>
         <includes>
           <include>banner.txt</include>
@@ -269,7 +259,7 @@ under the License.
       </testResource>
     </testResources>
   </build>
-
+  
   <profiles>
     <profile>
       <id>debug</id>
@@ -353,8 +343,8 @@ under the License.
             <artifactId>maven-compiler-plugin</artifactId>
             <configuration>
               <excludes>
-                <exclude>**/org/apache/syncope/wa/**Test.java</exclude>
-                <exclude>**/org/apache/syncope/wa/**Zookeeper*.java</exclude>
+                <exclude>**/org/apache/syncope/wa/starter/**Test.java</exclude>
+                <exclude>**/org/apache/syncope/wa/starter/**Zookeeper*.java</exclude>
               </excludes>
             </configuration>
           </plugin>
@@ -363,7 +353,7 @@ under the License.
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-maven-plugin</artifactId>
             <configuration>
-              <mainClass>org.apache.syncope.wa.SyncopeWAApplication</mainClass>
+              <mainClass>org.apache.syncope.wa.starter.SyncopeWAApplication</mainClass>
               <jvmArguments>
                 -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
               </jvmArguments>
@@ -383,55 +373,11 @@ under the License.
 
         <testResources>
           <testResource>
-            <directory>${basedir}/../common/keymaster/client-zookeeper/src/main/resources</directory>
+            <directory>${basedir}/../../common/keymaster/client-zookeeper/src/main/resources</directory>
             <filtering>true</filtering>
           </testResource>
         </testResources>
       </build>
     </profile>
-
-    <profile>
-      <id>site</id>
-
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.asciidoctor</groupId>
-            <artifactId>asciidoctor-maven-plugin</artifactId>
-            <inherited>false</inherited>
-            <configuration>
-              <skip>true</skip>
-            </configuration>
-          </plugin>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-site-plugin</artifactId>
-            <inherited>true</inherited>
-            <configuration>
-              <skip>true</skip>
-              <skipDeploy>true</skipDeploy>
-              <generateReports>false</generateReports>
-            </configuration>
-          </plugin>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-antrun-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>copy-docs-to-site</id>
-                <phase>none</phase>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
   </profiles>
-
-  <repositories>
-    <repository>
-      <id>shibboleth</id>
-      <url>https://build.shibboleth.net/nexus/content/groups/public</url>
-    </repository>
-  </repositories>
 </project>
diff --git a/wa/src/main/java/org/apache/syncope/wa/SyncopeWAApplication.java b/wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAApplication.java
similarity index 99%
rename from wa/src/main/java/org/apache/syncope/wa/SyncopeWAApplication.java
rename to wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAApplication.java
index dac26bb..4d5d43a 100644
--- a/wa/src/main/java/org/apache/syncope/wa/SyncopeWAApplication.java
+++ b/wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAApplication.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.syncope.wa;
+package org.apache.syncope.wa.starter;
 
 import org.apereo.cas.configuration.CasConfigurationProperties;
 import org.apereo.cas.configuration.CasConfigurationPropertiesValidator;
diff --git a/wa/src/main/java/org/apache/syncope/wa/config/SyncopeWAConfiguration.java b/wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAConfiguration.java
similarity index 98%
rename from wa/src/main/java/org/apache/syncope/wa/config/SyncopeWAConfiguration.java
rename to wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAConfiguration.java
index 701cb53..16375c3 100644
--- a/wa/src/main/java/org/apache/syncope/wa/config/SyncopeWAConfiguration.java
+++ b/wa/starter/src/main/java/org/apache/syncope/wa/starter/SyncopeWAConfiguration.java
@@ -16,15 +16,15 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.syncope.wa.config;
+package org.apache.syncope.wa.starter;
 
 import java.io.Serializable;
 import org.apereo.cas.services.DefaultRegisteredServiceEntityMapper;
+import org.apereo.cas.services.RegisteredService;
 import org.apereo.cas.services.RegisteredServiceEntityMapper;
 import org.apache.syncope.common.keymaster.client.api.model.NetworkService;
 import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStart;
 import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStop;
-import org.apereo.cas.services.RegisteredService;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
diff --git a/wa/src/main/resources/META-INF/spring.factories b/wa/starter/src/main/resources/META-INF/spring.factories
similarity index 94%
rename from wa/src/main/resources/META-INF/spring.factories
rename to wa/starter/src/main/resources/META-INF/spring.factories
index db54cd0..6dc6c03 100644
--- a/wa/src/main/resources/META-INF/spring.factories
+++ b/wa/starter/src/main/resources/META-INF/spring.factories
@@ -14,4 +14,4 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.apache.syncope.wa.config.SyncopeWAConfiguration
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.apache.syncope.wa.starter.SyncopeWAConfiguration
diff --git a/wa/src/main/resources/application.properties b/wa/starter/src/main/resources/application.properties
similarity index 94%
rename from wa/src/main/resources/application.properties
rename to wa/starter/src/main/resources/application.properties
index 53ae4b0..5ad1d51 100644
--- a/wa/src/main/resources/application.properties
+++ b/wa/starter/src/main/resources/application.properties
@@ -26,6 +26,8 @@ spring.http.encoding.force=true
 
 server.servlet.contextPath=/syncope-wa
 
+spring.resources.static-locations=classpath:/thymeleaf/static,classpath:/static
+
 management.endpoints.web.exposure.include=health,loggers
 management.endpoint.health.show-details=always
 
diff --git a/wa/src/main/resources/log4j2.xml b/wa/starter/src/main/resources/log4j2.xml
similarity index 100%
rename from wa/src/main/resources/log4j2.xml
rename to wa/starter/src/main/resources/log4j2.xml
diff --git a/wa/src/main/resources/static/images/favicon.png b/wa/starter/src/main/resources/thymeleaf/static/images/favicon.png
similarity index 100%
rename from wa/src/main/resources/static/images/favicon.png
rename to wa/starter/src/main/resources/thymeleaf/static/images/favicon.png
diff --git a/wa/src/main/resources/static/images/logo.png b/wa/starter/src/main/resources/thymeleaf/static/images/logo.png
similarity index 100%
rename from wa/src/main/resources/static/images/logo.png
rename to wa/starter/src/main/resources/thymeleaf/static/images/logo.png
diff --git a/wa/src/main/resources/templates/fragments/footer.html b/wa/starter/src/main/resources/thymeleaf/templates/fragments/footer.html
similarity index 100%
rename from wa/src/main/resources/templates/fragments/footer.html
rename to wa/starter/src/main/resources/thymeleaf/templates/fragments/footer.html
diff --git a/wa/src/main/resources/templates/fragments/header.html b/wa/starter/src/main/resources/thymeleaf/templates/fragments/header.html
similarity index 100%
rename from wa/src/main/resources/templates/fragments/header.html
rename to wa/starter/src/main/resources/thymeleaf/templates/fragments/header.html
diff --git a/wa/src/main/resources/templates/layout.html b/wa/starter/src/main/resources/thymeleaf/templates/layout.html
similarity index 100%
rename from wa/src/main/resources/templates/layout.html
rename to wa/starter/src/main/resources/thymeleaf/templates/layout.html
diff --git a/wa/src/main/resources/wa.properties b/wa/starter/src/main/resources/wa.properties
similarity index 100%
rename from wa/src/main/resources/wa.properties
rename to wa/starter/src/main/resources/wa.properties
diff --git a/wa/src/test/java/org/apache/syncope/wa/SyncopeWATest.java b/wa/starter/src/test/java/org/apache/syncope/wa/starter/SyncopeWATest.java
similarity index 99%
rename from wa/src/test/java/org/apache/syncope/wa/SyncopeWATest.java
rename to wa/starter/src/test/java/org/apache/syncope/wa/starter/SyncopeWATest.java
index d504cc8..93799d4 100644
--- a/wa/src/test/java/org/apache/syncope/wa/SyncopeWATest.java
+++ b/wa/starter/src/test/java/org/apache/syncope/wa/starter/SyncopeWATest.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.syncope.wa;
+package org.apache.syncope.wa.starter;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotEquals;
diff --git a/wa/src/test/java/org/apache/syncope/wa/ZookeeperTestingServer.java b/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
similarity index 87%
rename from wa/src/test/java/org/apache/syncope/wa/ZookeeperTestingServer.java
rename to wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
index 956e6f3..c5b1ec9 100644
--- a/wa/src/test/java/org/apache/syncope/wa/ZookeeperTestingServer.java
+++ b/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.syncope.wa;
+package org.apache.syncope.wa.starter;
 
 import static org.junit.jupiter.api.Assertions.fail;
 
@@ -27,6 +27,7 @@ import java.util.Properties;
 import java.util.concurrent.atomic.AtomicReference;
 import javax.security.auth.login.AppConfigurationEntry;
 import javax.security.auth.login.Configuration;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.curator.test.InstanceSpec;
 import org.apache.curator.test.TestingServer;
 import org.apache.zookeeper.server.auth.DigestLoginModule;
@@ -38,12 +39,14 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
 
     @Override
     public void initialize(final ConfigurableApplicationContext ctx) {
+        AtomicReference<Integer> port = new AtomicReference<>();
         AtomicReference<String> username = new AtomicReference<>();
         AtomicReference<String> password = new AtomicReference<>();
         try (InputStream propStream = getClass().getResourceAsStream("/keymaster.properties")) {
             Properties props = new Properties();
             props.load(propStream);
 
+            port.set(Integer.valueOf(StringUtils.substringAfter(props.getProperty("keymaster.address"), ":")));
             username.set(props.getProperty("keymaster.username"));
             password.set(props.getProperty("keymaster.password"));
         } catch (Exception e) {
@@ -56,9 +59,7 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
                 new AppConfigurationEntry(
                 DigestLoginModule.class.getName(),
                 AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
-                Map.of(
-                "user_" + username.get(), password.get()
-                ))
+                Map.of("user_" + username.get(), password.get()))
             };
 
             @Override
@@ -69,7 +70,7 @@ public class ZookeeperTestingServer implements ApplicationContextInitializer<Con
 
         Map<String, Object> customProperties = new HashMap<>();
         customProperties.put("authProvider.1", SASLAuthenticationProvider.class.getName());
-        InstanceSpec spec = new InstanceSpec(null, 2181, -1, -1, true, 1, -1, -1, customProperties);
+        InstanceSpec spec = new InstanceSpec(null, port.get(), -1, -1, true, 1, -1, -1, customProperties);
 
         try {
             new TestingServer(spec, true);
diff --git a/wa/src/test/resources/application-debug.properties b/wa/starter/src/test/resources/application-debug.properties
similarity index 100%
rename from wa/src/test/resources/application-debug.properties
rename to wa/starter/src/test/resources/application-debug.properties
diff --git a/wa/src/test/resources/keymaster.properties b/wa/starter/src/test/resources/keymaster.properties
similarity index 96%
rename from wa/src/test/resources/keymaster.properties
rename to wa/starter/src/test/resources/keymaster.properties
index f374d8c..8d216e7 100644
--- a/wa/src/test/resources/keymaster.properties
+++ b/wa/starter/src/test/resources/keymaster.properties
@@ -14,6 +14,6 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-keymaster.address=127.0.0.1:2181
+keymaster.address=127.0.0.1:3181
 keymaster.username=${anonymousUser}
 keymaster.password=${anonymousKey}


[syncope] 04/05: Upgrading modernizer-maven-plugin

Posted by il...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 72f7115d878ae11c81ebea1866eb245f7711463a
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Sun Mar 22 11:43:29 2020 +0100

    Upgrading modernizer-maven-plugin
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9e4043d..37d2c0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2377,7 +2377,7 @@ under the License.
       <plugin>
         <groupId>org.gaul</groupId>
         <artifactId>modernizer-maven-plugin</artifactId>
-        <version>2.0.0</version>
+        <version>2.1.0</version>
         <configuration>
           <javaVersion>${targetJdk}</javaVersion>
           <ignorePackages>


[syncope] 01/05: Enhance SearchConditionBuilder features

Posted by il...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit bd5bb0583784b8a36bb1815749adffc02d15bc88
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Mon Mar 23 11:23:45 2020 +0100

    Enhance SearchConditionBuilder features
---
 .../search/AbstractFiqlSearchConditionBuilder.java | 112 ++++++++++++++++-----
 ...operty.java => AnyObjectCompleteCondition.java} |  11 +-
 .../AnyObjectFiqlSearchConditionBuilder.java       |  37 +++----
 ...roperty.java => AnyObjectPartialCondition.java} |  11 +-
 .../common/lib/search/AnyObjectProperty.java       |  19 ++--
 ...rty.java => ConnObjectTOCompleteCondition.java} |  11 +-
 .../ConnObjectTOFiqlSearchConditionBuilder.java    |  33 ++----
 ...erty.java => ConnObjectTOPartialCondition.java} |  11 +-
 ...roupProperty.java => ConnObjectTOProperty.java} |  10 +-
 ...upProperty.java => GroupCompleteCondition.java} |  10 +-
 .../search/GroupFiqlSearchConditionBuilder.java    |  21 ++--
 ...oupProperty.java => GroupPartialCondition.java} |  10 +-
 .../syncope/common/lib/search/GroupProperty.java   |  10 +-
 ...Property.java => SyncopeCompleteCondition.java} |  15 ++-
 ...tProperty.java => SyncopePartialCondition.java} |  25 +++--
 .../syncope/common/lib/search/SyncopeProperty.java |  22 ++--
 ...oupProperty.java => UserCompleteCondition.java} |  10 +-
 .../lib/search/UserFiqlSearchConditionBuilder.java |  49 ++++-----
 ...roupProperty.java => UserPartialCondition.java} |  10 +-
 .../syncope/common/lib/search/UserProperty.java    |  25 ++---
 .../api/search/FilterConverterTest.java            |  29 ------
 21 files changed, 222 insertions(+), 269 deletions(-)

diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AbstractFiqlSearchConditionBuilder.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AbstractFiqlSearchConditionBuilder.java
index 5f8aa43..b16d652 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AbstractFiqlSearchConditionBuilder.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AbstractFiqlSearchConditionBuilder.java
@@ -20,13 +20,18 @@ package org.apache.syncope.common.lib.search;
 
 import java.io.Serializable;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 import org.apache.cxf.jaxrs.ext.search.SearchUtils;
 import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 import org.apache.cxf.jaxrs.ext.search.client.FiqlSearchConditionBuilder;
 import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
 
-public abstract class AbstractFiqlSearchConditionBuilder extends FiqlSearchConditionBuilder implements Serializable {
+public abstract class AbstractFiqlSearchConditionBuilder<
+        P extends SyncopeProperty<C>,
+        PA extends SyncopePartialCondition<P, C>, 
+        C extends SyncopeCompleteCondition<PA, P>>
+        extends FiqlSearchConditionBuilder implements Serializable {
 
     private static final long serialVersionUID = 9043884238032703381L;
 
@@ -48,103 +53,162 @@ public abstract class AbstractFiqlSearchConditionBuilder extends FiqlSearchCondi
     }
 
     @Override
-    protected Builder newBuilderInstance() {
-        return new Builder(properties);
+    protected Builder<P, PA, C> newBuilderInstance() {
+        return new Builder<>(properties);
     }
 
     @Override
-    public SyncopeProperty is(final String property) {
+    public P is(final String property) {
         return newBuilderInstance().is(property);
     }
 
-    public CompleteCondition isNull(final String property) {
+    public C isNull(final String property) {
         return newBuilderInstance().is(property).nullValue();
     }
 
-    public CompleteCondition isNotNull(final String property) {
+    public C isNotNull(final String property) {
         return newBuilderInstance().is(property).notNullValue();
     }
 
-    public CompleteCondition inDynRealms(final String dynRealm, final String... moreDynRealms) {
+    public C inDynRealms(final String dynRealm, final String... moreDynRealms) {
         return newBuilderInstance().
                 is(SpecialAttr.DYNREALMS.toString()).
                 inDynRealms(dynRealm, moreDynRealms);
     }
 
-    public CompleteCondition notInDynRealms(final String dynRealm, final String... moreDynRealms) {
+    public C notInDynRealms(final String dynRealm, final String... moreDynRealms) {
         return newBuilderInstance().
                 is(SpecialAttr.DYNREALMS.toString()).
                 notInDynRealms(dynRealm, moreDynRealms);
     }
 
-    public CompleteCondition hasResources(final String resource, final String... moreResources) {
+    public C hasResources(final String resource, final String... moreResources) {
         return newBuilderInstance().is(SpecialAttr.RESOURCES.toString()).hasResources(resource, moreResources);
     }
 
-    public CompleteCondition hasNotResources(final String resource, final String... moreResources) {
+    public C hasNotResources(final String resource, final String... moreResources) {
         return newBuilderInstance().is(SpecialAttr.RESOURCES.toString()).hasNotResources(resource, moreResources);
     }
 
-    protected static class Builder extends FiqlSearchConditionBuilder.Builder
-            implements SyncopeProperty, CompleteCondition {
+    @SuppressWarnings("unchecked")
+    protected static class Builder<
+            P extends SyncopeProperty<C>,
+            PA extends SyncopePartialCondition<P, C>,
+            C extends SyncopeCompleteCondition<PA, P>>
+            extends FiqlSearchConditionBuilder.Builder
+            implements SyncopeProperty<C>, SyncopeCompleteCondition<PA, P>, SyncopePartialCondition<P, C> {
 
         protected Builder(final Map<String, String> properties) {
             super(properties);
         }
 
-        protected Builder(final Builder parent) {
+        protected Builder(final Builder<P, PA, C> parent) {
             super(parent);
         }
 
         @Override
-        public SyncopeProperty is(final String property) {
-            Builder b = new Builder(this);
+        public P is(final String property) {
+            Builder<P, PA, C> b = new Builder<>(this);
             b.result = property;
-            return b;
+            return (P) b;
         }
 
         @Override
-        public CompleteCondition nullValue() {
+        protected C condition(
+                final String operator, final Object value, final Object... moreValues) {
+
+            super.condition(operator, value, moreValues);
+            return (C) this;
+        }
+
+        @Override
+        public C nullValue() {
             return condition(FiqlParser.EQ, SpecialAttr.NULL);
         }
 
         @Override
-        public CompleteCondition notNullValue() {
+        public C notNullValue() {
             return condition(FiqlParser.NEQ, SpecialAttr.NULL);
         }
 
         @Override
-        public CompleteCondition hasResources(final String resource, final String... moreResources) {
+        public C hasResources(final String resource, final String... moreResources) {
             this.result = SpecialAttr.RESOURCES.toString();
             return condition(FiqlParser.EQ, resource, (Object[]) moreResources);
         }
 
         @Override
-        public CompleteCondition hasNotResources(final String resource, final String... moreResources) {
+        public C hasNotResources(final String resource, final String... moreResources) {
             this.result = SpecialAttr.RESOURCES.toString();
             return condition(FiqlParser.NEQ, resource, (Object[]) moreResources);
         }
 
         @Override
-        public CompleteCondition equalToIgnoreCase(final String value, final String... moreValues) {
+        public C equalToIgnoreCase(final String value, final String... moreValues) {
             return condition(SyncopeFiqlParser.IEQ, value, (Object[]) moreValues);
         }
 
         @Override
-        public CompleteCondition notEqualTolIgnoreCase(final String literalOrPattern) {
+        public C notEqualTolIgnoreCase(final String literalOrPattern) {
             return condition(SyncopeFiqlParser.NIEQ, literalOrPattern);
         }
 
         @Override
-        public CompleteCondition inDynRealms(final String dynRealm, final String... moreDynRealms) {
+        public C inDynRealms(final String dynRealm, final String... moreDynRealms) {
             this.result = SpecialAttr.DYNREALMS.toString();
             return condition(FiqlParser.EQ, dynRealm, (Object[]) moreDynRealms);
         }
 
         @Override
-        public CompleteCondition notInDynRealms(final String dynRealm, final String... moreDynRealms) {
+        public C notInDynRealms(final String dynRealm, final String... moreDynRealms) {
             this.result = SpecialAttr.DYNREALMS.toString();
             return condition(FiqlParser.NEQ, dynRealm, (Object[]) moreDynRealms);
         }
+
+        @Override
+        public PA and() {
+            super.and();
+            return (PA) this;
+        }
+
+        @Override
+        public P and(final String name) {
+            return and().is(name);
+        }
+
+        @Override
+        public PA or() {
+            super.or();
+            return (PA) this;
+        }
+
+        @Override
+        public P or(final String name) {
+            return or().is(name);
+        }
+
+        @Override
+        public C and(final CompleteCondition cc, final CompleteCondition cc1, final CompleteCondition... cn) {
+            super.and(cc1, cc, cn);
+            return (C) this;
+        }
+
+        @Override
+        public C or(final CompleteCondition cc, final CompleteCondition cc1, final CompleteCondition... cn) {
+            super.or(cc1, cc, cn);
+            return (C) this;
+        }
+
+        @Override
+        public C and(final List<CompleteCondition> conditions) {
+            super.and(conditions);
+            return (C) this;
+        }
+
+        @Override
+        public C or(final List<CompleteCondition> conditions) {
+            super.or(conditions);
+            return (C) this;
+        }
     }
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectCompleteCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectCompleteCondition.java
index 0325a72..d0002ac 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectCompleteCondition.java
@@ -18,13 +18,6 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface AnyObjectCompleteCondition
+        extends SyncopeCompleteCondition<AnyObjectPartialCondition, AnyObjectProperty> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectFiqlSearchConditionBuilder.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectFiqlSearchConditionBuilder.java
index b497c7b..c2d8895 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectFiqlSearchConditionBuilder.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectFiqlSearchConditionBuilder.java
@@ -20,7 +20,6 @@ package org.apache.syncope.common.lib.search;
 
 import java.util.Collections;
 import java.util.Map;
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 import org.apache.cxf.jaxrs.ext.search.client.FiqlSearchConditionBuilder;
 import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
 
@@ -28,7 +27,8 @@ import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
  * Extends {@link AbstractFiqlSearchConditionBuilder} by providing some additional facilities for searching
  * any objects in Syncope.
  */
-public class AnyObjectFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder {
+public class AnyObjectFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder<
+        AnyObjectProperty, AnyObjectPartialCondition, AnyObjectCompleteCondition> {
 
     private static final long serialVersionUID = -3248603004632741935L;
 
@@ -55,50 +55,51 @@ public class AnyObjectFiqlSearchConditionBuilder extends AbstractFiqlSearchCondi
         return newBuilderInstance().is(property);
     }
 
-    public CompleteCondition inGroups(final String group, final String... moreGroups) {
+    public AnyObjectCompleteCondition inGroups(final String group, final String... moreGroups) {
         return newBuilderInstance().
                 is(SpecialAttr.GROUPS.toString()).
                 inGroups(group, moreGroups);
     }
 
-    public CompleteCondition notInGroups(final String group, final String... moreGroups) {
+    public AnyObjectCompleteCondition notInGroups(final String group, final String... moreGroups) {
         return newBuilderInstance().
                 is(SpecialAttr.GROUPS.toString()).
                 notInGroups(group, moreGroups);
     }
 
-    public CompleteCondition inRelationships(final String anyType, final String... moreAnyTypes) {
+    public AnyObjectCompleteCondition inRelationships(final String anyType, final String... moreAnyTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIPS.toString()).
                 inRelationships(anyType, moreAnyTypes);
     }
 
-    public CompleteCondition notInRelationships(final String anyType, final String... moreAnyTypes) {
+    public AnyObjectCompleteCondition notInRelationships(final String anyType, final String... moreAnyTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIPS.toString()).
                 notInRelationships(anyType, moreAnyTypes);
     }
 
-    public CompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
+    public AnyObjectCompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIP_TYPES.toString()).
                 inRelationshipTypes(type, moreTypes);
     }
 
-    public CompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
+    public AnyObjectCompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIP_TYPES.toString()).
                 notInRelationshipTypes(type, moreTypes);
     }
 
-    public CompleteCondition isAssignable() {
+    public AnyObjectCompleteCondition isAssignable() {
         return newBuilderInstance().
                 is(SpecialAttr.ASSIGNABLE.toString()).
                 isAssignable();
     }
 
-    protected class Builder extends AbstractFiqlSearchConditionBuilder.Builder
-            implements AnyObjectProperty, CompleteCondition {
+    protected class Builder extends AbstractFiqlSearchConditionBuilder.Builder<
+            AnyObjectProperty, AnyObjectPartialCondition, AnyObjectCompleteCondition>
+            implements AnyObjectProperty, AnyObjectPartialCondition, AnyObjectCompleteCondition {
 
         public Builder(final Map<String, String> properties) {
             super(properties);
@@ -122,43 +123,43 @@ public class AnyObjectFiqlSearchConditionBuilder extends AbstractFiqlSearchCondi
         }
 
         @Override
-        public CompleteCondition inGroups(final String group, final String... moreGroups) {
+        public AnyObjectCompleteCondition inGroups(final String group, final String... moreGroups) {
             this.result = SpecialAttr.GROUPS.toString();
             return condition(FiqlParser.EQ, group, (Object[]) moreGroups);
         }
 
         @Override
-        public CompleteCondition notInGroups(final String group, final String... moreGroups) {
+        public AnyObjectCompleteCondition notInGroups(final String group, final String... moreGroups) {
             this.result = SpecialAttr.GROUPS.toString();
             return condition(FiqlParser.NEQ, group, (Object[]) moreGroups);
         }
 
         @Override
-        public CompleteCondition inRelationships(final String anyObject, final String... moreAnyObjects) {
+        public AnyObjectCompleteCondition inRelationships(final String anyObject, final String... moreAnyObjects) {
             this.result = SpecialAttr.RELATIONSHIPS.toString();
             return condition(FiqlParser.EQ, anyObject, (Object[]) moreAnyObjects);
         }
 
         @Override
-        public CompleteCondition notInRelationships(final String group, final String... moreRelationships) {
+        public AnyObjectCompleteCondition notInRelationships(final String group, final String... moreRelationships) {
             this.result = SpecialAttr.RELATIONSHIPS.toString();
             return condition(FiqlParser.NEQ, group, (Object[]) moreRelationships);
         }
 
         @Override
-        public CompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
+        public AnyObjectCompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
             this.result = SpecialAttr.RELATIONSHIP_TYPES.toString();
             return condition(FiqlParser.EQ, type, (Object[]) moreTypes);
         }
 
         @Override
-        public CompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
+        public AnyObjectCompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
             this.result = SpecialAttr.RELATIONSHIP_TYPES.toString();
             return condition(FiqlParser.NEQ, type, (Object[]) moreTypes);
         }
 
         @Override
-        public CompleteCondition isAssignable() {
+        public AnyObjectCompleteCondition isAssignable() {
             this.result = SpecialAttr.ASSIGNABLE.toString();
             return condition(FiqlParser.EQ, SpecialAttr.NULL);
         }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectPartialCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectPartialCondition.java
index 0325a72..ab76fbe 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectPartialCondition.java
@@ -18,13 +18,6 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface AnyObjectPartialCondition
+        extends SyncopePartialCondition<AnyObjectProperty, AnyObjectCompleteCondition> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java
index 9d32013..24cd943 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java
@@ -18,22 +18,19 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
+public interface AnyObjectProperty extends SyncopeProperty<AnyObjectCompleteCondition> {
 
-public interface AnyObjectProperty extends SyncopeProperty {
+    AnyObjectCompleteCondition inGroups(String group, String... moreGroups);
 
-    CompleteCondition inGroups(String group, String... moreGroups);
+    AnyObjectCompleteCondition notInGroups(String group, String... moreGroups);
 
-    CompleteCondition notInGroups(String group, String... moreGroups);
+    AnyObjectCompleteCondition inRelationships(String anyObject, String... moreAnyObjects);
 
-    CompleteCondition inRelationships(String anyObject, String... moreAnyObjects);
+    AnyObjectCompleteCondition notInRelationships(String anyObject, String... moreAnyObjects);
 
-    CompleteCondition notInRelationships(String anyObject, String... moreAnyObjects);
+    AnyObjectCompleteCondition inRelationshipTypes(String type, String... moreTypes);
 
-    CompleteCondition inRelationshipTypes(String type, String... moreTypes);
-
-    CompleteCondition notInRelationshipTypes(String type, String... moreTypes);
-
-    CompleteCondition isAssignable();
+    AnyObjectCompleteCondition notInRelationshipTypes(String type, String... moreTypes);
 
+    AnyObjectCompleteCondition isAssignable();
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOCompleteCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOCompleteCondition.java
index 0325a72..a8b18ba 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOCompleteCondition.java
@@ -18,13 +18,6 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface ConnObjectTOCompleteCondition
+        extends SyncopeCompleteCondition<ConnObjectTOPartialCondition, ConnObjectTOProperty> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOFiqlSearchConditionBuilder.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOFiqlSearchConditionBuilder.java
index d028a71..c679928 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOFiqlSearchConditionBuilder.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOFiqlSearchConditionBuilder.java
@@ -19,13 +19,13 @@
 package org.apache.syncope.common.lib.search;
 
 import java.util.Map;
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 
 /**
  * Extends {@link AbstractFiqlSearchConditionBuilder} by providing some additional facilities for searching
  * connector objects.
  */
-public class ConnObjectTOFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder {
+public class ConnObjectTOFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder<
+        ConnObjectTOProperty, ConnObjectTOPartialCondition, ConnObjectTOCompleteCondition> {
 
     private static final long serialVersionUID = 4983742159694010935L;
 
@@ -35,12 +35,13 @@ public class ConnObjectTOFiqlSearchConditionBuilder extends AbstractFiqlSearchCo
     }
 
     @Override
-    public SyncopeProperty is(final String property) {
+    public ConnObjectTOProperty is(final String property) {
         return newBuilderInstance().is(property);
     }
 
-    protected class Builder extends AbstractFiqlSearchConditionBuilder.Builder
-            implements SyncopeProperty, CompleteCondition {
+    protected class Builder extends AbstractFiqlSearchConditionBuilder.Builder<
+        ConnObjectTOProperty, ConnObjectTOPartialCondition, ConnObjectTOCompleteCondition>
+            implements ConnObjectTOProperty, ConnObjectTOPartialCondition, ConnObjectTOCompleteCondition {
 
         public Builder(final Map<String, String> properties) {
             super(properties);
@@ -51,30 +52,10 @@ public class ConnObjectTOFiqlSearchConditionBuilder extends AbstractFiqlSearchCo
         }
 
         @Override
-        public SyncopeProperty is(final String property) {
+        public ConnObjectTOProperty is(final String property) {
             Builder b = new Builder(this);
             b.result = property;
             return b;
         }
-
-        @Override
-        public CompleteCondition inDynRealms(final String dynRealm, final String... moreDynRealms) {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public CompleteCondition notInDynRealms(final String dynRealm, final String... moreDynRealms) {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public CompleteCondition hasResources(final String resource, final String... moreResources) {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public CompleteCondition hasNotResources(final String resource, final String... moreResources) {
-            throw new UnsupportedOperationException();
-        }
     }
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOPartialCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOPartialCondition.java
index 0325a72..88b9f4a 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOPartialCondition.java
@@ -18,13 +18,6 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface ConnObjectTOPartialCondition
+        extends SyncopePartialCondition<ConnObjectTOProperty, ConnObjectTOCompleteCondition> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOProperty.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOProperty.java
index 0325a72..a880fbf 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/ConnObjectTOProperty.java
@@ -18,13 +18,5 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface ConnObjectTOProperty extends SyncopeProperty<ConnObjectTOCompleteCondition> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupCompleteCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupCompleteCondition.java
index 0325a72..6958ee9 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupCompleteCondition.java
@@ -18,13 +18,5 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface GroupCompleteCondition extends SyncopeCompleteCondition<GroupPartialCondition, GroupProperty> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupFiqlSearchConditionBuilder.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupFiqlSearchConditionBuilder.java
index 1a875c9..bf7ddb2 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupFiqlSearchConditionBuilder.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupFiqlSearchConditionBuilder.java
@@ -19,14 +19,14 @@
 package org.apache.syncope.common.lib.search;
 
 import java.util.Map;
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
 
 /**
  * Extends {@link AbstractFiqlSearchConditionBuilder} by providing some additional facilities for searching
  * groups in Syncope.
  */
-public class GroupFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder {
+public class GroupFiqlSearchConditionBuilder
+        extends AbstractFiqlSearchConditionBuilder<GroupProperty, GroupPartialCondition, GroupCompleteCondition> {
 
     private static final long serialVersionUID = 6275686371606165706L;
 
@@ -40,26 +40,27 @@ public class GroupFiqlSearchConditionBuilder extends AbstractFiqlSearchCondition
         return newBuilderInstance().is(property);
     }
 
-    public CompleteCondition isAssignable() {
+    public GroupCompleteCondition isAssignable() {
         return newBuilderInstance().
                 is(SpecialAttr.ASSIGNABLE.toString()).
                 isAssignable();
     }
 
-    public CompleteCondition withMembers(final String member, final String... moreMembers) {
+    public GroupCompleteCondition withMembers(final String member, final String... moreMembers) {
         return newBuilderInstance().
                 is(SpecialAttr.MEMBER.toString()).
                 withMembers(member, moreMembers);
     }
 
-    public CompleteCondition withoutMembers(final String member, final String... moreMembers) {
+    public GroupCompleteCondition withoutMembers(final String member, final String... moreMembers) {
         return newBuilderInstance().
                 is(SpecialAttr.MEMBER.toString()).
                 withoutMembers(member, moreMembers);
     }
 
-    protected static class Builder extends AbstractFiqlSearchConditionBuilder.Builder
-            implements GroupProperty, CompleteCondition {
+    protected static class Builder extends AbstractFiqlSearchConditionBuilder.Builder<
+            GroupProperty, GroupPartialCondition, GroupCompleteCondition>
+            implements GroupProperty, GroupCompleteCondition, GroupPartialCondition {
 
         public Builder(final Map<String, String> properties) {
             super(properties);
@@ -77,19 +78,19 @@ public class GroupFiqlSearchConditionBuilder extends AbstractFiqlSearchCondition
         }
 
         @Override
-        public CompleteCondition isAssignable() {
+        public GroupCompleteCondition isAssignable() {
             this.result = SpecialAttr.ASSIGNABLE.toString();
             return condition(FiqlParser.EQ, SpecialAttr.NULL);
         }
 
         @Override
-        public CompleteCondition withMembers(final String member, final String... moreMembers) {
+        public GroupCompleteCondition withMembers(final String member, final String... moreMembers) {
             this.result = SpecialAttr.MEMBER.toString();
             return condition(FiqlParser.EQ, member, (Object[]) moreMembers);
         }
 
         @Override
-        public CompleteCondition withoutMembers(final String member, final String... moreMembers) {
+        public GroupCompleteCondition withoutMembers(final String member, final String... moreMembers) {
             this.result = SpecialAttr.MEMBER.toString();
             return condition(FiqlParser.NEQ, member, (Object[]) moreMembers);
         }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupPartialCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupPartialCondition.java
index 0325a72..4052006 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupPartialCondition.java
@@ -18,13 +18,5 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface GroupPartialCondition extends SyncopePartialCondition<GroupProperty, GroupCompleteCondition> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
index 0325a72..8108012 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
@@ -18,13 +18,11 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
+public interface GroupProperty extends SyncopeProperty<GroupCompleteCondition> {
 
-public interface GroupProperty extends SyncopeProperty {
+    GroupCompleteCondition isAssignable();
 
-    CompleteCondition isAssignable();
+    GroupCompleteCondition withMembers(String member, String... moreMembers);
 
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+    GroupCompleteCondition withoutMembers(String member, String... moreMembers);
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeCompleteCondition.java
similarity index 76%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeCompleteCondition.java
index 0325a72..c9cfec4 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeCompleteCondition.java
@@ -20,11 +20,18 @@ package org.apache.syncope.common.lib.search;
 
 import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 
-public interface GroupProperty extends SyncopeProperty {
+public interface SyncopeCompleteCondition<PA extends SyncopePartialCondition<P, ?>, P extends SyncopeProperty<?>>
+        extends CompleteCondition {
 
-    CompleteCondition isAssignable();
+    @Override
+    PA and();
 
-    CompleteCondition withMembers(String member, String... moreMembers);
+    @Override
+    P and(String string);
 
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+    @Override
+    PA or();
+
+    @Override
+    P or(String string);
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopePartialCondition.java
similarity index 61%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopePartialCondition.java
index 9d32013..4f8efb5 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/AnyObjectProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopePartialCondition.java
@@ -18,22 +18,25 @@
  */
 package org.apache.syncope.common.lib.search;
 
+import java.util.List;
 import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
+import org.apache.cxf.jaxrs.ext.search.client.PartialCondition;
 
-public interface AnyObjectProperty extends SyncopeProperty {
+public interface SyncopePartialCondition<P extends SyncopeProperty<C>, C extends SyncopeCompleteCondition<?, P>>
+        extends PartialCondition {
 
-    CompleteCondition inGroups(String group, String... moreGroups);
+    @Override
+    P is(String string);
 
-    CompleteCondition notInGroups(String group, String... moreGroups);
+    @Override
+    C and(CompleteCondition cc, CompleteCondition cc1, CompleteCondition... ccs);
 
-    CompleteCondition inRelationships(String anyObject, String... moreAnyObjects);
+    @Override
+    C or(CompleteCondition cc, CompleteCondition cc1, CompleteCondition... ccs);
 
-    CompleteCondition notInRelationships(String anyObject, String... moreAnyObjects);
-
-    CompleteCondition inRelationshipTypes(String type, String... moreTypes);
-
-    CompleteCondition notInRelationshipTypes(String type, String... moreTypes);
-
-    CompleteCondition isAssignable();
+    @Override
+    C and(List<CompleteCondition> list);
 
+    @Override
+    C or(List<CompleteCondition> list);
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeProperty.java
index bcc55ca..e792826 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/SyncopeProperty.java
@@ -18,14 +18,15 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 import org.apache.cxf.jaxrs.ext.search.client.Property;
 
 /**
  * Extension of fluent interface, for {@link org.apache.syncope.common.lib.search.AbstractFiqlSearchConditionBuilder}
  * and subclasses.
+ *
+ * @param <C> the actual complete condition
  */
-public interface SyncopeProperty extends Property {
+public interface SyncopeProperty<C extends SyncopeCompleteCondition<?, ?>> extends Property {
 
     /** Is textual property equal to (ignoring case) given literal or matching given pattern?
      *
@@ -33,26 +34,26 @@ public interface SyncopeProperty extends Property {
      * @param moreValues more values
      * @return updated condition
      */
-    CompleteCondition equalToIgnoreCase(String value, String... moreValues);
+    C equalToIgnoreCase(String value, String... moreValues);
 
     /** Is textual property different (ignoring case) than given literal or not matching given pattern?
      *
      * @param literalOrPattern The literal or Pattern String
      * @return updated condition
      */
-    CompleteCondition notEqualTolIgnoreCase(String literalOrPattern);
+    C notEqualTolIgnoreCase(String literalOrPattern);
 
     /** Is property null?
      *
      * @return updated condition
      */
-    CompleteCondition nullValue();
+    C nullValue();
 
     /** Is property not null?
      *
      * @return updated condition
      */
-    CompleteCondition notNullValue();
+    C notNullValue();
 
     /** Is user, group or any object owning given resource(s)?
      *
@@ -60,7 +61,7 @@ public interface SyncopeProperty extends Property {
      * @param moreResources more resources
      * @return updated condition
      */
-    CompleteCondition hasResources(String resource, String... moreResources);
+    C hasResources(String resource, String... moreResources);
 
     /** Is user, group or any object not owning given resource(s)?
      *
@@ -68,10 +69,9 @@ public interface SyncopeProperty extends Property {
      * @param moreResources more resources
      * @return updated condition
      */
-    CompleteCondition hasNotResources(String resource, String... moreResources);
-
-    CompleteCondition inDynRealms(String dynRealm, String... moreDynRealms);
+    C hasNotResources(String resource, String... moreResources);
 
-    CompleteCondition notInDynRealms(String dynRealm, String... moreDynRealms);
+    C inDynRealms(String dynRealm, String... moreDynRealms);
 
+    C notInDynRealms(String dynRealm, String... moreDynRealms);
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserCompleteCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserCompleteCondition.java
index 0325a72..f037395 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserCompleteCondition.java
@@ -18,13 +18,5 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface UserCompleteCondition extends SyncopeCompleteCondition<UserPartialCondition, UserProperty> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserFiqlSearchConditionBuilder.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserFiqlSearchConditionBuilder.java
index 88cdc6b..71447c8 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserFiqlSearchConditionBuilder.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserFiqlSearchConditionBuilder.java
@@ -19,14 +19,14 @@
 package org.apache.syncope.common.lib.search;
 
 import java.util.Map;
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
 import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
 
 /**
  * Extends {@link AbstractFiqlSearchConditionBuilder} by providing some additional facilities for searching
  * users in Syncope.
  */
-public class UserFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionBuilder {
+public class UserFiqlSearchConditionBuilder
+        extends AbstractFiqlSearchConditionBuilder<UserProperty, UserPartialCondition, UserCompleteCondition> {
 
     private static final long serialVersionUID = 3485708634448845774L;
 
@@ -40,68 +40,69 @@ public class UserFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionB
         return newBuilderInstance().is(property);
     }
 
-    public CompleteCondition inGroups(final String group, final String... moreGroups) {
+    public UserCompleteCondition inGroups(final String group, final String... moreGroups) {
         return newBuilderInstance().
                 is(SpecialAttr.GROUPS.toString()).
                 inGroups(group, moreGroups);
     }
 
-    public CompleteCondition notInGroups(final String group, final String... moreGroups) {
+    public UserCompleteCondition notInGroups(final String group, final String... moreGroups) {
         return newBuilderInstance().
                 is(SpecialAttr.GROUPS.toString()).
                 notInGroups(group, moreGroups);
     }
 
-    public CompleteCondition inRelationships(final String anyType, final String... moreAnyTypes) {
+    public UserCompleteCondition inRelationships(final String anyType, final String... moreAnyTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIPS.toString()).
                 inRelationships(anyType, moreAnyTypes);
     }
 
-    public CompleteCondition notInRelationships(final String anyType, final String... moreAnyTypes) {
+    public UserCompleteCondition notInRelationships(final String anyType, final String... moreAnyTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIPS.toString()).
                 notInRelationships(anyType, moreAnyTypes);
     }
 
-    public CompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
+    public UserCompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIP_TYPES.toString()).
                 inRelationshipTypes(type, moreTypes);
     }
 
-    public CompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
+    public UserCompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
         return newBuilderInstance().
                 is(SpecialAttr.RELATIONSHIP_TYPES.toString()).
                 notInRelationshipTypes(type, moreTypes);
     }
 
-    public CompleteCondition inRoles(final String role, final String... moreRoles) {
+    public UserCompleteCondition inRoles(final String role, final String... moreRoles) {
         return newBuilderInstance().
                 is(SpecialAttr.ROLES.toString()).
                 inRoles(role, moreRoles);
     }
 
-    public CompleteCondition notInRoles(final String role, final String... moreRoles) {
+    public UserCompleteCondition notInRoles(final String role, final String... moreRoles) {
         return newBuilderInstance().
                 is(SpecialAttr.ROLES.toString()).
                 notInRoles(role, moreRoles);
     }
 
-    public CompleteCondition withPrivileges(final String privilege, final String... morePrivileges) {
+    public UserCompleteCondition withPrivileges(final String privilege, final String... morePrivileges) {
         return newBuilderInstance().
                 is(SpecialAttr.PRIVILEGES.toString()).
                 withPrivileges(privilege, morePrivileges);
     }
 
-    public CompleteCondition withoutPrivileges(final String privilege, final String... morePrivileges) {
+    public UserCompleteCondition withoutPrivileges(final String privilege, final String... morePrivileges) {
         return newBuilderInstance().
                 is(SpecialAttr.PRIVILEGES.toString()).
                 withoutPrivileges(privilege, morePrivileges);
     }
 
-    protected static class Builder extends AbstractFiqlSearchConditionBuilder.Builder
-            implements UserProperty, CompleteCondition {
+    protected static class Builder extends AbstractFiqlSearchConditionBuilder.Builder<
+            UserProperty, UserPartialCondition, UserCompleteCondition>
+            implements UserProperty, UserPartialCondition, UserCompleteCondition {
 
         public Builder(final Map<String, String> properties) {
             super(properties);
@@ -119,61 +120,61 @@ public class UserFiqlSearchConditionBuilder extends AbstractFiqlSearchConditionB
         }
 
         @Override
-        public CompleteCondition inGroups(final String group, final String... moreGroups) {
+        public UserCompleteCondition inGroups(final String group, final String... moreGroups) {
             this.result = SpecialAttr.GROUPS.toString();
             return condition(FiqlParser.EQ, group, (Object[]) moreGroups);
         }
 
         @Override
-        public CompleteCondition notInGroups(final String group, final String... moreGroups) {
+        public UserCompleteCondition notInGroups(final String group, final String... moreGroups) {
             this.result = SpecialAttr.GROUPS.toString();
             return condition(FiqlParser.NEQ, group, (Object[]) moreGroups);
         }
 
         @Override
-        public CompleteCondition inRelationships(final String anyObject, final String... moreAnyObjects) {
+        public UserCompleteCondition inRelationships(final String anyObject, final String... moreAnyObjects) {
             this.result = SpecialAttr.RELATIONSHIPS.toString();
             return condition(FiqlParser.EQ, anyObject, (Object[]) moreAnyObjects);
         }
 
         @Override
-        public CompleteCondition notInRelationships(final String anyObject, final String... moreAnyObjects) {
+        public UserCompleteCondition notInRelationships(final String anyObject, final String... moreAnyObjects) {
             this.result = SpecialAttr.RELATIONSHIPS.toString();
             return condition(FiqlParser.NEQ, anyObject, (Object[]) moreAnyObjects);
         }
 
         @Override
-        public CompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
+        public UserCompleteCondition inRelationshipTypes(final String type, final String... moreTypes) {
             this.result = SpecialAttr.RELATIONSHIP_TYPES.toString();
             return condition(FiqlParser.EQ, type, (Object[]) moreTypes);
         }
 
         @Override
-        public CompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
+        public UserCompleteCondition notInRelationshipTypes(final String type, final String... moreTypes) {
             this.result = SpecialAttr.RELATIONSHIP_TYPES.toString();
             return condition(FiqlParser.NEQ, type, (Object[]) moreTypes);
         }
 
         @Override
-        public CompleteCondition inRoles(final String role, final String... moreRoles) {
+        public UserCompleteCondition inRoles(final String role, final String... moreRoles) {
             this.result = SpecialAttr.ROLES.toString();
             return condition(FiqlParser.EQ, role, (Object[]) moreRoles);
         }
 
         @Override
-        public CompleteCondition notInRoles(final String role, final String... moreRoles) {
+        public UserCompleteCondition notInRoles(final String role, final String... moreRoles) {
             this.result = SpecialAttr.ROLES.toString();
             return condition(FiqlParser.NEQ, role, (Object[]) moreRoles);
         }
 
         @Override
-        public CompleteCondition withPrivileges(final String privilege, final String... morePrivileges) {
+        public UserCompleteCondition withPrivileges(final String privilege, final String... morePrivileges) {
             this.result = SpecialAttr.PRIVILEGES.toString();
             return condition(FiqlParser.EQ, privilege, (Object[]) morePrivileges);
         }
 
         @Override
-        public CompleteCondition withoutPrivileges(final String privilege, final String... morePrivileges) {
+        public UserCompleteCondition withoutPrivileges(final String privilege, final String... morePrivileges) {
             this.result = SpecialAttr.PRIVILEGES.toString();
             return condition(FiqlParser.NEQ, privilege, (Object[]) morePrivileges);
         }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserPartialCondition.java
similarity index 73%
copy from common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
copy to common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserPartialCondition.java
index 0325a72..b63ca7d 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/GroupProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserPartialCondition.java
@@ -18,13 +18,5 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
-
-public interface GroupProperty extends SyncopeProperty {
-
-    CompleteCondition isAssignable();
-
-    CompleteCondition withMembers(String member, String... moreMembers);
-
-    CompleteCondition withoutMembers(String member, String... moreMembers);
+public interface UserPartialCondition extends SyncopePartialCondition<UserProperty, UserCompleteCondition> {
 }
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserProperty.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserProperty.java
index 7ac5be6..5c17f22 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserProperty.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/search/UserProperty.java
@@ -18,28 +18,25 @@
  */
 package org.apache.syncope.common.lib.search;
 
-import org.apache.cxf.jaxrs.ext.search.client.CompleteCondition;
+public interface UserProperty extends SyncopeProperty<UserCompleteCondition> {
 
-public interface UserProperty extends SyncopeProperty {
+    UserCompleteCondition inGroups(String group, String... moreGroups);
 
-    CompleteCondition inGroups(String group, String... moreGroups);
+    UserCompleteCondition notInGroups(String group, String... moreGroups);
 
-    CompleteCondition notInGroups(String group, String... moreGroups);
+    UserCompleteCondition inRelationships(String anyObject, String... moreAnyObjects);
 
-    CompleteCondition inRelationships(String anyObject, String... moreAnyObjects);
+    UserCompleteCondition notInRelationships(String anyObject, String... moreAnyObjects);
 
-    CompleteCondition notInRelationships(String anyObject, String... moreAnyObjects);
+    UserCompleteCondition inRelationshipTypes(String type, String... moreTypes);
 
-    CompleteCondition inRelationshipTypes(String type, String... moreTypes);
+    UserCompleteCondition notInRelationshipTypes(String type, String... moreTypes);
 
-    CompleteCondition notInRelationshipTypes(String type, String... moreTypes);
+    UserCompleteCondition inRoles(String role, String... moreRoles);
 
-    CompleteCondition inRoles(String role, String... moreRoles);
+    UserCompleteCondition notInRoles(String role, String... moreRoles);
 
-    CompleteCondition notInRoles(String role, String... moreRoles);
-
-    CompleteCondition withPrivileges(String privilege, String... morePrivileges);
-
-    CompleteCondition withoutPrivileges(String privilege, String... morePrivileges);
+    UserCompleteCondition withPrivileges(String privilege, String... morePrivileges);
 
+    UserCompleteCondition withoutPrivileges(String privilege, String... morePrivileges);
 }
diff --git a/core/persistence-api/src/test/java/org/apache/syncope/core/persistence/api/search/FilterConverterTest.java b/core/persistence-api/src/test/java/org/apache/syncope/core/persistence/api/search/FilterConverterTest.java
index 52834f8..d314db0 100644
--- a/core/persistence-api/src/test/java/org/apache/syncope/core/persistence/api/search/FilterConverterTest.java
+++ b/core/persistence-api/src/test/java/org/apache/syncope/core/persistence/api/search/FilterConverterTest.java
@@ -19,7 +19,6 @@
 package org.apache.syncope.core.persistence.api.search;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
@@ -176,13 +175,6 @@ public class FilterConverterTest {
     @Test
     public void inDynRealms() {
         try {
-            new ConnObjectTOFiqlSearchConditionBuilder().inDynRealms("realm").query();
-            fail();
-        } catch (UnsupportedOperationException e) {
-            assertNotNull(e);
-        }
-
-        try {
             FilterConverter.convert(SpecialAttr.DYNREALMS + "==realm");
             fail();
         } catch (SyncopeClientException e) {
@@ -193,13 +185,6 @@ public class FilterConverterTest {
     @Test
     public void notInDynRealms() {
         try {
-            new ConnObjectTOFiqlSearchConditionBuilder().notInDynRealms("realm").query();
-            fail();
-        } catch (UnsupportedOperationException e) {
-            assertNotNull(e);
-        }
-
-        try {
             FilterConverter.convert(SpecialAttr.DYNREALMS + "!=realm");
             fail();
         } catch (SyncopeClientException e) {
@@ -210,13 +195,6 @@ public class FilterConverterTest {
     @Test
     public void hasResources() {
         try {
-            new ConnObjectTOFiqlSearchConditionBuilder().hasResources("resource").query();
-            fail();
-        } catch (UnsupportedOperationException e) {
-            assertNotNull(e);
-        }
-
-        try {
             FilterConverter.convert(SpecialAttr.RESOURCES + "==resource");
             fail();
         } catch (SyncopeClientException e) {
@@ -227,13 +205,6 @@ public class FilterConverterTest {
     @Test
     public void hasNotResources() {
         try {
-            new ConnObjectTOFiqlSearchConditionBuilder().hasNotResources("resource").query();
-            fail();
-        } catch (UnsupportedOperationException e) {
-            assertNotNull(e);
-        }
-
-        try {
             FilterConverter.convert(SpecialAttr.RESOURCES + "!=resource");
             fail();
         } catch (SyncopeClientException e) {


[syncope] 03/05: Upgrading Wildfly (and fixing IT)

Posted by il...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 86bb0f913861ca83ced9d054307327ffb32d5d41
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Sat Mar 21 13:57:23 2020 +0100

    Upgrading Wildfly (and fixing IT)
---
 fit/build-tools/pom.xml                            | 40 ++++++++++++++++
 .../greenmail/util/InterruptableGreenMail.java     | 54 ----------------------
 .../fit/buildtools/GreenMailStartStopListener.java |  8 ++--
 .../fit/buildtools}/InterruptableSmtpServer.java   |  3 +-
 .../fit/buildtools/cxf/GreenMailServiceImpl.java   |  8 ++--
 .../webapp/WEB-INF/jboss-deployment-structure.xml  |  1 +
 fit/core-reference/pom.xml                         |  4 +-
 .../main/resources/application-wildfly.properties  |  2 +-
 .../webapp/WEB-INF/jboss-deployment-structure.xml  |  2 +
 .../syncope/fit/core/NotificationITCase.java       |  5 +-
 .../apache/syncope/fit/enduser/EnduserITCase.java  |  4 +-
 pom.xml                                            |  3 +-
 .../getting-started/systemRequirements.adoc        |  2 +-
 .../systemadministration/javaeecontainer.adoc      |  4 +-
 14 files changed, 66 insertions(+), 74 deletions(-)

diff --git a/fit/build-tools/pom.xml b/fit/build-tools/pom.xml
index ad99d39..1c6f019 100644
--- a/fit/build-tools/pom.xml
+++ b/fit/build-tools/pom.xml
@@ -419,5 +419,45 @@ under the License.
         </plugins>
       </build>
     </profile>
+
+    <profile>
+      <id>wildfly</id>
+      
+      <build>
+        <defaultGoal>clean verify cargo:run</defaultGoal>
+        
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.cargo</groupId>
+            <artifactId>cargo-maven2-plugin</artifactId>
+            <inherited>true</inherited>
+            <configuration>
+              <container>
+                <containerId>wildfly19x</containerId>
+                <zipUrlInstaller>
+                  <url>https://download.jboss.org/wildfly/${wildfly.version}/wildfly-${wildfly.version}.zip</url>
+                  <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir>
+                  <extractDir>${project.build.directory}/cargo/extract</extractDir>
+                </zipUrlInstaller>
+                <timeout>300000</timeout>
+                <log>${cargo.log}</log>
+                <output>${cargo.output}</output>
+                <dependencies>
+                  <dependency>
+                    <groupId>com.h2database</groupId>
+                    <artifactId>h2</artifactId>
+                  </dependency>
+                </dependencies>
+              </container>
+              <configuration>
+                <properties>
+                  <cargo.jvmargs>-Xdebug -XX:+CMSClassUnloadingEnabled</cargo.jvmargs>
+                </properties>
+              </configuration>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>
diff --git a/fit/build-tools/src/main/java/com/icegreen/greenmail/util/InterruptableGreenMail.java b/fit/build-tools/src/main/java/com/icegreen/greenmail/util/InterruptableGreenMail.java
deleted file mode 100644
index 101708e..0000000
--- a/fit/build-tools/src/main/java/com/icegreen/greenmail/util/InterruptableGreenMail.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.icegreen.greenmail.util;
-
-import java.util.HashMap;
-import java.util.Map;
-import com.icegreen.greenmail.Managers;
-import com.icegreen.greenmail.imap.ImapServer;
-import com.icegreen.greenmail.pop3.Pop3Server;
-import com.icegreen.greenmail.server.AbstractServer;
-import com.icegreen.greenmail.smtp.InterruptableSmtpServer;
-
-public class InterruptableGreenMail extends GreenMail {
-
-    public InterruptableGreenMail(final ServerSetup[] config) {
-        super(config);
-    }
-
-    @Override
-    protected Map<String, AbstractServer> createServices(final ServerSetup[] config, final Managers mgr) {
-        Map<String, AbstractServer> srvc = new HashMap<>();
-        for (ServerSetup setup : config) {
-            if (srvc.containsKey(setup.getProtocol())) {
-                throw new IllegalArgumentException("Server '" + setup.getProtocol()
-                        + "' was found at least twice in the array");
-            }
-            final String protocol = setup.getProtocol();
-            if (protocol.startsWith(ServerSetup.PROTOCOL_SMTP)) {
-                srvc.put(protocol, new InterruptableSmtpServer(setup, mgr));
-            } else if (protocol.startsWith(ServerSetup.PROTOCOL_POP3)) {
-                srvc.put(protocol, new Pop3Server(setup, mgr));
-            } else if (protocol.startsWith(ServerSetup.PROTOCOL_IMAP)) {
-                srvc.put(protocol, new ImapServer(setup, mgr));
-            }
-        }
-        return srvc;
-    }
-}
diff --git a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/GreenMailStartStopListener.java b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/GreenMailStartStopListener.java
index ce2acbd..1aa3faf 100644
--- a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/GreenMailStartStopListener.java
+++ b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/GreenMailStartStopListener.java
@@ -18,7 +18,7 @@
  */
 package org.apache.syncope.fit.buildtools;
 
-import com.icegreen.greenmail.util.InterruptableGreenMail;
+import com.icegreen.greenmail.util.GreenMail;
 import com.icegreen.greenmail.util.ServerSetup;
 import javax.servlet.ServletContext;
 import javax.servlet.ServletContextEvent;
@@ -44,7 +44,7 @@ public class GreenMailStartStopListener implements ServletContextListener {
         ServletContext sc = sce.getServletContext();
         WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(sc);
 
-        InterruptableGreenMail greenMail = (InterruptableGreenMail) sc.getAttribute(GREENMAIL);
+        GreenMail greenMail = (GreenMail) sc.getAttribute(GREENMAIL);
         if (greenMail == null) {
             ServerSetup[] config = new ServerSetup[2];
             config[0] = new ServerSetup(
@@ -53,7 +53,7 @@ public class GreenMailStartStopListener implements ServletContextListener {
             config[1] = new ServerSetup(
                     ctx.getEnvironment().getProperty("testmail.pop3port", Integer.class),
                     "localhost", ServerSetup.PROTOCOL_POP3);
-            greenMail = new InterruptableGreenMail(config);
+            greenMail = new GreenMail(config);
             greenMail.start();
 
             sc.setAttribute(GREENMAIL, greenMail);
@@ -66,7 +66,7 @@ public class GreenMailStartStopListener implements ServletContextListener {
     public void contextDestroyed(final ServletContextEvent sce) {
         ServletContext sc = sce.getServletContext();
 
-        InterruptableGreenMail greenMail = (InterruptableGreenMail) sc.getAttribute(GREENMAIL);
+        GreenMail greenMail = (GreenMail) sc.getAttribute(GREENMAIL);
         if (greenMail != null) {
             greenMail.stop();
 
diff --git a/fit/build-tools/src/main/java/com/icegreen/greenmail/smtp/InterruptableSmtpServer.java b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/InterruptableSmtpServer.java
similarity index 95%
rename from fit/build-tools/src/main/java/com/icegreen/greenmail/smtp/InterruptableSmtpServer.java
rename to fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/InterruptableSmtpServer.java
index 5a1d2b3..76717a8 100644
--- a/fit/build-tools/src/main/java/com/icegreen/greenmail/smtp/InterruptableSmtpServer.java
+++ b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/InterruptableSmtpServer.java
@@ -16,10 +16,11 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package com.icegreen.greenmail.smtp;
+package org.apache.syncope.fit.buildtools;
 
 import com.icegreen.greenmail.Managers;
 import com.icegreen.greenmail.server.ProtocolHandler;
+import com.icegreen.greenmail.smtp.SmtpServer;
 import com.icegreen.greenmail.util.ServerSetup;
 import java.io.IOException;
 import java.net.Socket;
diff --git a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/cxf/GreenMailServiceImpl.java b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/cxf/GreenMailServiceImpl.java
index 56e7655..32d9484 100644
--- a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/cxf/GreenMailServiceImpl.java
+++ b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/cxf/GreenMailServiceImpl.java
@@ -18,11 +18,11 @@
  */
 package org.apache.syncope.fit.buildtools.cxf;
 
+import com.icegreen.greenmail.util.GreenMail;
 import javax.ws.rs.core.Context;
 import org.apache.cxf.jaxrs.ext.MessageContext;
-import com.icegreen.greenmail.util.InterruptableGreenMail;
 import org.apache.syncope.fit.buildtools.GreenMailStartStopListener;
-import com.icegreen.greenmail.smtp.InterruptableSmtpServer;
+import org.apache.syncope.fit.buildtools.InterruptableSmtpServer;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
@@ -37,7 +37,7 @@ public class GreenMailServiceImpl implements GreenMailService {
 
     @Override
     public void start() {
-        InterruptableGreenMail greenMail = (InterruptableGreenMail) messageContext.getServletContext().
+        GreenMail greenMail = (GreenMail) messageContext.getServletContext().
                 getAttribute(GreenMailStartStopListener.GREENMAIL);
         if (greenMail != null) {
             ((InterruptableSmtpServer) greenMail.getSmtp()).setRejectRequests(false);
@@ -47,7 +47,7 @@ public class GreenMailServiceImpl implements GreenMailService {
 
     @Override
     public void stop() {
-        InterruptableGreenMail greenMail = (InterruptableGreenMail) messageContext.getServletContext().
+        GreenMail greenMail = (GreenMail) messageContext.getServletContext().
                 getAttribute(GreenMailStartStopListener.GREENMAIL);
         if (greenMail != null) {
             ((InterruptableSmtpServer) greenMail.getSmtp()).setRejectRequests(true);
diff --git a/fit/build-tools/src/main/webapp/WEB-INF/jboss-deployment-structure.xml b/fit/build-tools/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
index cbf2a8e..b898711 100644
--- a/fit/build-tools/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
+++ b/fit/build-tools/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
@@ -39,6 +39,7 @@ under the License.
       <module name="org.slf4j.impl"/>
       <module name="org.apache.log4j"/>
       <module name="org.jboss.log4j.logmanager"/>
+      <module name="com.h2database.h2"/>
     </exclusions>
   </deployment>
 </jboss-deployment-structure>
diff --git a/fit/core-reference/pom.xml b/fit/core-reference/pom.xml
index 219b929..508dbc0 100644
--- a/fit/core-reference/pom.xml
+++ b/fit/core-reference/pom.xml
@@ -1586,9 +1586,9 @@ under the License.
             <inherited>true</inherited>
             <configuration>
               <container>
-                <containerId>wildfly17x</containerId>
+                <containerId>wildfly19x</containerId>
                 <zipUrlInstaller>
-                  <url>https://download.jboss.org/wildfly/18.0.0.Final/wildfly-18.0.0.Final.zip</url>
+                  <url>https://download.jboss.org/wildfly/${wildfly.version}/wildfly-${wildfly.version}.zip</url>
                   <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir>
                   <extractDir>${project.build.directory}/cargo/extract</extractDir>
                 </zipUrlInstaller>
diff --git a/fit/core-reference/src/main/resources/application-wildfly.properties b/fit/core-reference/src/main/resources/application-wildfly.properties
index 0f4f845..b93af49 100644
--- a/fit/core-reference/src/main/resources/application-wildfly.properties
+++ b/fit/core-reference/src/main/resources/application-wildfly.properties
@@ -16,6 +16,6 @@
 # under the License.
 service.discovery.address=http://localhost:9080/syncope/rest/
 
-openjpaMetaDataFactory=jpa(URLs=vfs:${project.build.directory}/cargo/configurations/wildfly17x/deployments/syncope.war/WEB-INF/lib/syncope-core-persistence-jpa-${syncope.version}.jar; vfs:${project.build.directory}/cargo/configurations/wildfly17x/deployments/syncope.war/WEB-INF/lib/syncope-ext-self-keymaster-persistence-jpa-${syncope.version}.jar, Resources=##orm##)
+openjpaMetaDataFactory=jpa(URLs=vfs:${project.build.directory}/cargo/configurations/wildfly19x/deployments/syncope.war/WEB-INF/lib/syncope-core-persistence-jpa-${syncope.version}.jar; vfs:${project.build.directory}/cargo/configurations/wildfly19x/deployments/syncope.war/WEB-INF/lib/syncope-ext-self-keymaster-persistence-jpa-${syncope.version}.jar, Resources=##orm##)
 javadocPaths=/WEB-INF/lib/syncope-common-idrepo-rest-api-${syncope.version}-javadoc.jar,\
 /WEB-INF/lib/syncope-common-idm-rest-api-${syncope.version}-javadoc.jar
diff --git a/fit/core-reference/src/main/webapp/WEB-INF/jboss-deployment-structure.xml b/fit/core-reference/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
index 09f69aa..5c009d460 100644
--- a/fit/core-reference/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
+++ b/fit/core-reference/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
@@ -29,6 +29,8 @@ under the License.
       <module name="org.reactivestreams"/>
     </dependencies>
     <exclusions>
+      <module name="javax.mail.api"/>
+      <module name="javax.activation.api"/>
       <module name="javax.validation.api"/>
       <module name="org.hibernate.validator"/> 
       <module name="org.hibernate.validator.cdi"/>
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/NotificationITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/NotificationITCase.java
index 24abaf0..d717379 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/NotificationITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/NotificationITCase.java
@@ -34,6 +34,7 @@ import org.apache.syncope.common.lib.types.ClientExceptionType;
 import org.apache.syncope.common.lib.types.TraceLevel;
 import org.apache.syncope.common.rest.api.service.NotificationService;
 import org.apache.syncope.fit.AbstractITCase;
+import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
 public class NotificationITCase extends AbstractITCase {
@@ -67,9 +68,7 @@ public class NotificationITCase extends AbstractITCase {
         List<NotificationTO> notificationTOs = notificationService.list();
         assertNotNull(notificationTOs);
         assertFalse(notificationTOs.isEmpty());
-        for (NotificationTO instance : notificationTOs) {
-            assertNotNull(instance);
-        }
+        notificationTOs.forEach(Assertions::assertNotNull);
     }
 
     @Test
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/EnduserITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/EnduserITCase.java
index 082f478..3c9545e 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/EnduserITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/EnduserITCase.java
@@ -35,6 +35,7 @@ import org.apache.syncope.common.lib.request.UserUR;
 import org.apache.syncope.common.lib.to.SecurityQuestionTO;
 import org.apache.syncope.common.lib.to.UserTO;
 import org.apache.syncope.common.rest.api.beans.AnyQuery;
+import org.apache.syncope.fit.FlowableDetector;
 import org.apache.wicket.extensions.markup.html.form.palette.component.Choices;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.form.Button;
@@ -295,7 +296,8 @@ public class EnduserITCase extends AbstractEnduserITCase {
         TESTER.assertRenderedPage(Login.class);
         TESTER.assertComponent("login:username", TextField.class);
 
-        assertEquals("active", userService.read(username).getStatus());
+        assertEquals(FlowableDetector.isFlowableEnabledForUserWorkflow(SYNCOPE_SERVICE)
+                ? "active" : "created", userService.read(username).getStatus());
         assertEquals(newEmail, userService.read(username).getPlainAttr("email").get().getValues().get(0));
 
         TESTER.cleanupFeedbackMessages();
diff --git a/pom.xml b/pom.xml
index 44fd5e8..9e4043d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -514,6 +514,7 @@ under the License.
     <cargo.output>${log.directory}/cargo-output.log</cargo.output>
 
     <tomcat.version>9.0.33</tomcat.version>
+    <wildfly.version>19.0.0.Final</wildfly.version>
     <payara.version>5.194</payara.version>
     <javax.faces.version>2.4.0</javax.faces.version>
 
@@ -2231,7 +2232,7 @@ under the License.
         <plugin>
           <groupId>org.codehaus.cargo</groupId>
           <artifactId>cargo-maven2-plugin</artifactId>
-          <version>1.7.10</version>
+          <version>1.7.11</version>
           <configuration>
             <configuration>
               <type>standalone</type>
diff --git a/src/main/asciidoc/getting-started/systemRequirements.adoc b/src/main/asciidoc/getting-started/systemRequirements.adoc
index 1b39de6..b974c6a 100644
--- a/src/main/asciidoc/getting-started/systemRequirements.adoc
+++ b/src/main/asciidoc/getting-started/systemRequirements.adoc
@@ -38,7 +38,7 @@ Apache Syncope {docVersion} is verified with the following Java EE containers:
 
  . http://tomcat.apache.org/download-90.cgi[Apache Tomcat 9^]
  . http://www.payara.fish/[Payara Server 5^]
- . http://www.wildfly.org/[Wildfly 18^]
+ . http://www.wildfly.org/[Wildfly 19^]
 
 === Internal Storage
 
diff --git a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/javaeecontainer.adoc b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/javaeecontainer.adoc
index df6a666..b0f2d6a 100644
--- a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/javaeecontainer.adoc
+++ b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/javaeecontainer.adoc
@@ -39,7 +39,7 @@ for the Master domain.
 Each JavaEE Container provides its own way to accomplish this task:
   * https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html[Apache Tomcat 9^]
   * https://payara.gitbooks.io/payara-server/content/documentation/user-guides/connection-pools/connection-pools.html[Payara Server 5^]
-  * http://docs.wildfly.org/18/Admin_Guide.html#DataSource[Wildfly 18^]
+  * http://docs.wildfly.org/19/Admin_Guide.html#DataSource[Wildfly 19^]
 ****
 
 ===== Apache Tomcat 9
@@ -124,7 +124,7 @@ For better performance under GNU / Linux, do not forget to include
 among JVM options.
 ====
 
-===== Wildfly 18
+===== Wildfly 19
 
 Add