Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 047F1200C6E for ; Mon, 8 May 2017 17:31:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 03166160BBF; Mon, 8 May 2017 15:31:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 21DE1160B99 for ; Mon, 8 May 2017 17:31:41 +0200 (CEST) Received: (qmail 15831 invoked by uid 500); 8 May 2017 15:31:40 -0000 Mailing-List: contact commits-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list commits@syncope.apache.org Received: (qmail 15821 invoked by uid 99); 8 May 2017 15:31:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2017 15:31:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 326CBDFE61; Mon, 8 May 2017 15:31:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ilgrosso@apache.org To: commits@syncope.apache.org Date: Mon, 08 May 2017 15:31:40 -0000 Message-Id: <041dfb5be5f84472ad1c21f9f2a6bd96@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] syncope git commit: [SYNCOPE-1077] Docs archived-at: Mon, 08 May 2017 15:31:43 -0000 Repository: syncope Updated Branches: refs/heads/2_0_X da72d30c9 -> 8f33e423f refs/heads/master 5820eb52a -> 091c74b8a [SYNCOPE-1077] Docs Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/8f33e423 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/8f33e423 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/8f33e423 Branch: refs/heads/2_0_X Commit: 8f33e423faa382dc32260b271246fafc8d3f6e2d Parents: da72d30 Author: Francesco Chicchiriccò Authored: Mon May 8 17:31:13 2017 +0200 Committer: Francesco Chicchiriccò Committed: Mon May 8 17:31:13 2017 +0200 ---------------------------------------------------------------------- core/rest-cxf/pom.xml | 5 ++ ext/elasticsearch/client-elasticsearch/pom.xml | 18 +++++ pom.xml | 42 ++++++++++++ .../reference-guide/concepts/extensions.adoc | 25 +++++++ .../workingwithapachesyncope/customization.adoc | 70 ++++++++++++++++++++ 5 files changed, 160 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/8f33e423/core/rest-cxf/pom.xml ---------------------------------------------------------------------- diff --git a/core/rest-cxf/pom.xml b/core/rest-cxf/pom.xml index 7ccd6d1..00d9af2 100644 --- a/core/rest-cxf/pom.xml +++ b/core/rest-cxf/pom.xml @@ -84,6 +84,11 @@ under the License. + joda-time + joda-time + + + org.apache.cxf cxf-rt-frontend-jaxrs http://git-wip-us.apache.org/repos/asf/syncope/blob/8f33e423/ext/elasticsearch/client-elasticsearch/pom.xml ---------------------------------------------------------------------- diff --git a/ext/elasticsearch/client-elasticsearch/pom.xml b/ext/elasticsearch/client-elasticsearch/pom.xml index 48d7f1c..09a9750 100644 --- a/ext/elasticsearch/client-elasticsearch/pom.xml +++ b/ext/elasticsearch/client-elasticsearch/pom.xml @@ -48,6 +48,24 @@ under the License. org.elasticsearch.client transport + + + com.fasterxml.jackson.dataformat + jackson-dataformat-smile + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + + + com.fasterxml.jackson.datatype + jackson-datatype-joda + + + + joda-time + joda-time + http://git-wip-us.apache.org/repos/asf/syncope/blob/8f33e423/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 2528164..282a6a7 100644 --- a/pom.xml +++ b/pom.xml @@ -393,6 +393,8 @@ under the License. 4.1 1.1.3 + 2.9.9 + 1.4.195 4.12 @@ -715,6 +717,24 @@ under the License. org.elasticsearch.client transport ${elasticsearch.version} + + + com.fasterxml.jackson.datatype + jackson-dataformat-smile + + + com.fasterxml.jackson.datatype + jackson-dataformat-yaml + + + com.fasterxml.jackson.datatype + jackson-dataformat-cbor + + + joda-time + joda-time + + @@ -769,6 +789,12 @@ under the License. com.fasterxml.jackson.datatype jackson-datatype-joda ${jackson.version} + + + joda-time + joda-time + + com.fasterxml.jackson.core @@ -792,6 +818,16 @@ under the License. com.fasterxml.jackson.dataformat + jackson-dataformat-smile + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + ${jackson.version} + + + com.fasterxml.jackson.dataformat jackson-dataformat-xml ${jackson.version} @@ -807,6 +843,12 @@ under the License. + joda-time + joda-time + ${joda.version} + + + org.springframework spring-context ${spring.version} http://git-wip-us.apache.org/repos/asf/syncope/blob/8f33e423/src/main/asciidoc/reference-guide/concepts/extensions.adoc ---------------------------------------------------------------------- diff --git a/src/main/asciidoc/reference-guide/concepts/extensions.adoc b/src/main/asciidoc/reference-guide/concepts/extensions.adoc index cbff82d..4daf9be 100644 --- a/src/main/asciidoc/reference-guide/concepts/extensions.adoc +++ b/src/main/asciidoc/reference-guide/concepts/extensions.adoc @@ -115,3 +115,28 @@ endif::[] This extension adds features to all components and layers that are available, and can be taken as reference when creating <>. ==== + +==== Elasticsearch + +[WARNING] +This extension requires the latest JDK 8 that is available. + +This extension provides an alternate internal search engine for <>, requiring an external +https://www.elastic.co/[Elasticsearch^] cluster. + +[TIP] +As search operations are central for different aspects of the <>, the global +performances are expected to improve when using this extension. + +[NOTE] +.Extension Sources +==== +The source code of this extension is available from the Apache Syncope +ifeval::["{snapshotOrRelease}" == "release"] +https://github.com/apache/syncope/tree/syncope-{docVersion}/ext/elasticsearch[source tree^] +endif::[] +ifeval::["{snapshotOrRelease}" == "snapshot"] +https://github.com/apache/syncope/tree/2_0_X/ext/elasticsearch[source tree^] +endif::[] +. +==== http://git-wip-us.apache.org/repos/asf/syncope/blob/8f33e423/src/main/asciidoc/reference-guide/workingwithapachesyncope/customization.adoc ---------------------------------------------------------------------- diff --git a/src/main/asciidoc/reference-guide/workingwithapachesyncope/customization.adoc b/src/main/asciidoc/reference-guide/workingwithapachesyncope/customization.adoc index cfaf2ff..e0c09a5 100644 --- a/src/main/asciidoc/reference-guide/workingwithapachesyncope/customization.adoc +++ b/src/main/asciidoc/reference-guide/workingwithapachesyncope/customization.adoc @@ -348,6 +348,76 @@ Copy `core/src/main/resources/all/saml2sp-logic.properties` to `core/src/main/re Setup a <> and place it under the <>, then review the content of `core/src/main/resources/saml2sp-logic.properties` accordingly. +[discrete] +===== Enable the <> extension + +[WARNING] +This extension requires the latest JDK 8 that is available. + +Add the following dependencies to `core/pom.xml`: + +[source,xml,subs="verbatim,attributes"] +---- + + org.apache.syncope.ext.elasticsearch + syncope-ext-elasticsearch-provisioning-java + ${syncope.version} + + + org.apache.syncope.ext.elasticsearch + syncope-ext-elasticsearch-persistence-jpa + ${syncope.version} + +---- + +Download + +ifeval::["{snapshotOrRelease}" == "release"] +https://github.com/apache/syncope/blob/syncope-{docVersion}/ext/elasticsearch/persistence-jpa/src/main/resources/persistence.properties[persistence.properties^] +endif::[] +ifeval::["{snapshotOrRelease}" == "snapshot"] +https://github.com/apache/syncope/blob/2_0_X/ext/elasticsearch/persistence-jpa/src/main/resources/persistence.properties[persistence.properties^] +endif::[] + +and + +ifeval::["{snapshotOrRelease}" == "release"] +https://github.com/apache/syncope/blob/syncope-{docVersion}/ext/elasticsearch/client-elasticsearch/src/main/resources/elasticsearchClientContext.xml[elasticsearchClientContext.xml^] +endif::[] +ifeval::["{snapshotOrRelease}" == "snapshot"] +https://github.com/apache/syncope/blob/2_0_X/ext/elasticsearch/client-elasticsearch/src/main/resources/elasticsearchClientContext.xml[elasticsearchClientContext.xml^] +endif::[] + +then save both under `core/src/main/resources`. + +Now, adjust the parameters in `core/src/main/resources/elasticsearchClientContext.xml` to match your +Elasticsearch deployment. + +Finally, replace the following text in `core/src/main/webapp/WEB-INF/web.xml`: + +.... +classpath*:/coreContext.xml +classpath*:/securityContext.xml +classpath*:/logicContext.xml +classpath*:/restCXFContext.xml +classpath*:/persistenceContext.xml +classpath*:/provisioning*Context.xml +classpath*:/workflow*Context.xml +.... + +with + +.... + classpath*:/coreContext.xml + classpath*:/elasticsearchClientContext.xml + classpath*:/securityContext.xml + classpath*:/logicContext.xml + classpath*:/restCXFContext.xml + classpath*:/persistenceContext.xml + classpath*:/provisioning*Context.xml + classpath*:/workflow*Context.xml +.... + [[customization-console]] ==== Console