Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fabio martelli
syncope
Commits
a45fc7f7
Commit
a45fc7f7
authored
Mar 13, 2017
by
Gianluca Filippone
Browse files
Added skeleton for Synthesis Processor estension
parent
dc220b1a
Changes
19
Hide whitespace changes
Inline
Side-by-side
choremocks/pom.xml
View file @
a45fc7f7
...
...
@@ -71,6 +71,19 @@ limitations under the License.
<artifactId>
syncope-ext-choreography-rest-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-rest-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-rest-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.syncope.client
</groupId>
<artifactId>
syncope-client-lib
</artifactId>
...
...
console/pom.xml
View file @
a45fc7f7
...
...
@@ -70,6 +70,12 @@ limitations under the License.
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-client-console
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
...
...
core/pom.xml
View file @
a45fc7f7
...
...
@@ -86,7 +86,13 @@ limitations under the License.
<artifactId>
syncope-ext-ee-rest-cxf
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-rest-cxf
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
...
...
ext/pom.xml
View file @
a45fc7f7
...
...
@@ -37,6 +37,7 @@ limitations under the License.
<modules>
<module>
choreography
</module>
<module>
ee
</module>
<module>
synthesis-processor
</module>
</modules>
</project>
ext/synthesis-processor/client-console/pom.xml
0 → 100644
View file @
a45fc7f7
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project
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>
eu.chorevolution.idm.ext
</groupId>
<artifactId>
syncope-ext-synthesis-processor
</artifactId>
<version>
1.0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: Synthesis Processor Client Console
</name>
<description>
CHOReVOLUTION IdM Extensions: Synthesis Processor Client Console
</description>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-client-console
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-rest-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.syncope.client
</groupId>
<artifactId>
syncope-client-console
</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>
ext/synthesis-processor/client-console/src/main/java/org/apache/syncope/client/console/pages/SynthesisProcessorPage.java
0 → 100644
View file @
a45fc7f7
/*
* Copyright 2017 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.syncope.client.console.pages
;
import
eu.chorevolution.idm.common.ChorevolutionEntitlement
;
import
org.apache.syncope.client.console.BookmarkablePageLinkBuilder
;
import
org.apache.syncope.client.console.annotations.ExtPage
;
import
org.apache.wicket.markup.html.WebMarkupContainer
;
import
org.apache.wicket.markup.html.basic.Label
;
import
org.apache.wicket.request.mapper.parameter.PageParameters
;
@ExtPage
(
label
=
"Synthesis Processors"
,
icon
=
"fa-wrench"
,
listEntitlement
=
ChorevolutionEntitlement
.
CHOREOGRAPHY_LIST
,
priority
=
100
)
public
class
SynthesisProcessorPage
extends
BaseExtPage
{
public
static
final
String
PREF_EE_PAGINATOR_ROWS
=
"synthesisprocessor.paginator.rows"
;
private
static
final
long
serialVersionUID
=
-
337325733703904383L
;
private
final
WebMarkupContainer
content
;
public
SynthesisProcessorPage
(
final
PageParameters
parameters
)
{
super
(
parameters
);
body
.
add
(
BookmarkablePageLinkBuilder
.
build
(
"dashboard"
,
"dashboardBr"
,
Dashboard
.
class
));
content
=
new
WebMarkupContainer
(
"content"
);
content
.
setOutputMarkupId
(
true
);
content
.
add
(
new
Label
(
"synthesisprocessors"
,
"Synthesis Processors Page"
));
body
.
add
(
content
);
body
.
setOutputMarkupId
(
true
);
}
}
ext/synthesis-processor/client-console/src/main/java/org/apache/syncope/client/console/rest/SynthesisProcessorRestClient.java
0 → 100644
View file @
a45fc7f7
/*
* Copyright 2016 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.syncope.client.console.rest
;
public
class
SynthesisProcessorRestClient
extends
BaseRestClient
{
}
ext/synthesis-processor/client-console/src/main/resources/org/apache/syncope/client/console/pages/SynthesisProcessorPage.html
0 → 100644
View file @
a45fc7f7
<!DOCTYPE html>
<!--
Copyright 2017 The CHOReVOLUTION project
*
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.
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:wicket=
"http://wicket.apache.org"
>
<wicket:head>
<style>
div
.dataTable
{
overflow-x
:
auto
;
}
</style>
</wicket:head>
<wicket:extend>
<section
class=
"content-header"
>
<h1>
<wicket:message
key=
"header_title"
/>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
wicket:id=
"dashboardBr"
><i
class=
"fa fa-dashboard"
></i>
<wicket:message
key=
"dashboard"
/></a></li>
<li
class=
"active"
><wicket:message
key=
"header_title"
/></li>
</ol>
</section>
<section
class=
"content"
wicket:id=
"content"
>
<div
class=
"box"
>
<div
class=
"box-body"
>
<div
wicket:id=
"synthesisprocessors"
></div>
</div>
</div>
</section>
</wicket:extend>
</html>
\ No newline at end of file
ext/synthesis-processor/client-console/src/main/resources/org/apache/syncope/client/console/pages/SynthesisProcessorPage.properties
0 → 100644
View file @
a45fc7f7
#
# Copyright 2016 The CHOReVOLUTION project
#
# 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.
#
header_title
=
Synthesis Processors
ext/synthesis-processor/client-console/src/main/resources/org/apache/syncope/client/console/pages/SynthesisProcessorPage_it.properties
0 → 100644
View file @
a45fc7f7
#
# Copyright 2016 The CHOReVOLUTION project
#
# 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.
#
header_title
=
Synthesis Processors
ext/synthesis-processor/client-console/src/main/resources/org/apache/syncope/client/console/pages/SynthesisProcessorPage_pt_BR.properties
0 → 100644
View file @
a45fc7f7
#
# Copyright 2016 The CHOReVOLUTION project
#
# 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.
#
header_title
=
Synthesis Processors
ext/synthesis-processor/logic/pom.xml
0 → 100644
View file @
a45fc7f7
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project
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>
eu.chorevolution.idm.ext
</groupId>
<artifactId>
syncope-ext-synthesis-processor
</artifactId>
<version>
1.0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: Synthesis Processor Logic
</name>
<description>
CHOReVOLUTION IdM Extensions: Synthesis Processor Logic
</description>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-logic
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
org.apache.syncope.core
</groupId>
<artifactId>
syncope-core-logic
</artifactId>
<version>
${syncope.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
common
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.cxf
</groupId>
<artifactId>
cxf-rt-rs-client
</artifactId>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.jaxrs
</groupId>
<artifactId>
jackson-jaxrs-json-provider
</artifactId>
</dependency>
<dependency>
<groupId>
eu.chorevolution.securityfilter
</groupId>
<artifactId>
sf-provision-data
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
ext/synthesis-processor/logic/src/main/java/org/apache/syncope/core/logic/SynthesisProcessorLogic.java
0 → 100644
View file @
a45fc7f7
/*
* Copyright 2017 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.syncope.core.logic
;
import
java.lang.reflect.Method
;
import
org.apache.syncope.common.lib.AbstractBaseBean
;
import
org.springframework.stereotype.Component
;
@Component
public
class
SynthesisProcessorLogic
extends
AbstractLogic
<
AbstractBaseBean
>
{
@Override
protected
AbstractBaseBean
resolveReference
(
final
Method
method
,
final
Object
...
args
)
throws
UnresolvedReferenceException
{
throw
new
UnresolvedReferenceException
();
}
}
ext/synthesis-processor/logic/src/main/java/org/apache/syncope/core/logic/init/SynthesisProcessorLoader.java
0 → 100644
View file @
a45fc7f7
/*
* Copyright 2017 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.syncope.core.logic.init
;
import
eu.chorevolution.idm.common.ChorevolutionEntitlement
;
import
org.apache.syncope.core.persistence.api.SyncopeLoader
;
import
org.apache.syncope.core.provisioning.api.EntitlementsHolder
;
public
class
SynthesisProcessorLoader
implements
SyncopeLoader
{
@Override
public
Integer
getPriority
()
{
return
1100
;
}
@Override
public
void
load
()
{
EntitlementsHolder
.
getInstance
().
init
(
ChorevolutionEntitlement
.
values
());
}
}
ext/synthesis-processor/pom.xml
0 → 100644
View file @
a45fc7f7
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project
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>
eu.chorevolution.idm
</groupId>
<artifactId>
syncope-ext
</artifactId>
<version>
1.0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: Synthesis Processor
</name>
<description>
CHOReVOLUTION IdM Extensions: Synthesis Processor
</description>
<groupId>
eu.chorevolution.idm.ext
</groupId>
<artifactId>
syncope-ext-synthesis-processor
</artifactId>
<packaging>
pom
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../..
</rootpom.basedir>
</properties>
<modules>
<module>
rest-api
</module>
<module>
rest-cxf
</module>
<module>
logic
</module>
<module>
client-console
</module>
</modules>
</project>
ext/synthesis-processor/rest-api/pom.xml
0 → 100644
View file @
a45fc7f7
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project
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>
eu.chorevolution.idm.ext
</groupId>
<artifactId>
syncope-ext-synthesis-processor
</artifactId>
<version>
1.0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: Synthesis Processor REST API
</name>
<description>
CHOReVOLUTION IdM Extensions: Synthesis Processor REST API
</description>
<groupId>
eu.chorevolution.idm.ext.synthesis-processor
</groupId>
<artifactId>
syncope-ext-synthesis-processor-rest-api
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
org.apache.syncope.common
</groupId>
<artifactId>
syncope-common-rest-api
</artifactId>
<version>
${syncope.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
common
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Generating javadoc JAR artifact for usage with CXF's WADL generator (for core) -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<inherited>
true
</inherited>
<executions>
<execution>
<id>
attach-javadocs
</id>
<goals>
<goal>
jar
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
ext/synthesis-processor/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/SynthesisProcessorService.java
0 → 100644
View file @
a45fc7f7
/*
* Copyright 2017 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.syncope.common.rest.api.service
;
import
javax.ws.rs.Path
;
/**
* REST operations for managing synthesis processor.
*/
@Path
(
"synthesisProcessor"
)
public
interface
SynthesisProcessorService
extends
JAXRSService
{
}
ext/synthesis-processor/rest-cxf/pom.xml
0 → 100644
View file @
a45fc7f7
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");