Skip to content
GitLab
Menu
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
ceccd6c9
Commit
ceccd6c9
authored
Oct 19, 2016
by
Gianluca Filippone
Browse files
Adding skeleton for Enactment Engine extension
parent
b1c9ae72
Changes
18
Hide whitespace changes
Inline
Side-by-side
console/pom.xml
View file @
ceccd6c9
...
...
@@ -63,7 +63,13 @@ limitations under the License.
<artifactId>
syncope-ext-choreography-client-console
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-client-console
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
...
...
ext/choreography/logic/pom.xml
View file @
ceccd6c9
...
...
@@ -77,6 +77,12 @@ limitations under the License.
<artifactId>
syncope-ext-choreography-persistence-jpa
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
connid-security-filter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<type>
jar
</type>
</dependency>
</dependencies>
<build>
...
...
ext/ee/client-console/pom.xml
0 → 100644
View file @
ceccd6c9
<?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-ee
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: EE Client Console
</name>
<description>
CHOReVOLUTION IdM Extensions: EE Client Console
</description>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-client-console
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-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/ee/client-console/src/main/java/org/apache/syncope/client/console/pages/EnactmentEnginePage.java
0 → 100644
View file @
ceccd6c9
/*
* 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.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.panel.EmptyPanel
;
import
org.apache.wicket.request.mapper.parameter.PageParameters
;
@ExtPage
(
label
=
"Enactment Engines"
,
icon
=
"fa-cogs"
,
listEntitlement
=
ChorevolutionEntitlement
.
CHOREOGRAPHY_LIST
,
priority
=
100
)
public
class
EnactmentEnginePage
extends
BaseExtPage
{
private
static
final
long
serialVersionUID
=
3027209313427520303L
;
public
static
final
String
PREF_EE_PAGINATOR_ROWS
=
"ee.paginator.rows"
;
public
EnactmentEnginePage
(
final
PageParameters
parameters
)
{
super
(
parameters
);
body
.
add
(
BookmarkablePageLinkBuilder
.
build
(
"dashboard"
,
"dashboardBr"
,
Dashboard
.
class
));
WebMarkupContainer
content
=
new
WebMarkupContainer
(
"content"
);
content
.
setOutputMarkupId
(
true
);
content
.
add
(
new
EmptyPanel
(
"enactmentengines"
));
// Re-enable when entilements for this service will be defined
//MetaDataRoleAuthorizationStrategy.authorize(content, ENABLE, CamelEntitlement.ROUTE_LIST);
body
.
add
(
content
);
}
}
ext/ee/client-console/src/main/java/org/apache/syncope/client/console/panels/EnactmentEngineDirectoryPanel.java
0 → 100644
View file @
ceccd6c9
/*
* 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.panels
;
import
org.apache.wicket.markup.html.panel.Panel
;
public
class
EnactmentEngineDirectoryPanel
extends
Panel
{
public
EnactmentEngineDirectoryPanel
(
final
String
id
)
{
super
(
id
);
}
}
ext/ee/client-console/src/main/resources/org/apache/syncope/client/console/pages/EnactmentEnginePage.html
0 → 100644
View file @
ceccd6c9
<!DOCTYPE html>
<!--
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.
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:wicket=
"http://wicket.apache.org"
>
<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"
wicket:id=
"enactmentengines"
/>
</div>
</section>
</wicket:extend>
</html>
\ No newline at end of file
ext/ee/client-console/src/main/resources/org/apache/syncope/client/console/pages/EnactmentEnginePage.properties
0 → 100644
View file @
ceccd6c9
#
# 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
=
Enactment Engines
description
=
Description
ext/ee/client-console/src/main/resources/org/apache/syncope/client/console/pages/EnactmentEnginePage_it.properties
0 → 100644
View file @
ceccd6c9
#
# 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
=
Enactment Engines
description
=
Descrizione
ext/ee/client-console/src/main/resources/org/apache/syncope/client/console/pages/EnactmentEnginePage_pt_BR.properties
0 → 100644
View file @
ceccd6c9
#
# 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
=
Enactment Engines
description
=
Descri
\u
00e7
\u
00e3o
ext/ee/logic/pom.xml
0 → 100644
View file @
ceccd6c9
<?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-ee
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: EE Logic
</name>
<description>
CHOReVOLUTION IdM Extensions: EE Logic
</description>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-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>
eu.chorevolution.ee
</groupId>
<artifactId>
chorspec
</artifactId>
</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>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
connid-security-filter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<type>
jar
</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
ext/ee/logic/src/main/java/org/apache/syncope/core/logic/EELogic.java
0 → 100644
View file @
ceccd6c9
/*
* 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.core.logic
;
import
java.lang.reflect.Method
;
import
org.apache.syncope.common.lib.AbstractBaseBean
;
import
org.springframework.stereotype.Component
;
@Component
public
class
EELogic
extends
AbstractTransactionalLogic
<
AbstractBaseBean
>
{
@Override
protected
AbstractBaseBean
resolveReference
(
final
Method
method
,
final
Object
...
os
)
throws
UnresolvedReferenceException
{
throw
new
UnresolvedReferenceException
();
}
}
ext/ee/logic/src/main/java/org/apache/syncope/core/logic/init/EELoader.java
0 → 100644
View file @
ceccd6c9
/*
* 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.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
EELoader
implements
SyncopeLoader
{
@Override
public
Integer
getPriority
()
{
return
1100
;
}
@Override
public
void
load
()
{
EntitlementsHolder
.
getInstance
().
init
(
ChorevolutionEntitlement
.
values
());
}
}
ext/ee/pom.xml
0 → 100644
View file @
ceccd6c9
<?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>
0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: EE
</name>
<description>
CHOReVOLUTION IdM Extensions: EE
</description>
<groupId>
eu.chorevolution.idm.ext
</groupId>
<artifactId>
syncope-ext-ee
</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/ee/rest-api/pom.xml
0 → 100644
View file @
ceccd6c9
<?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-ee
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: EE REST API
</name>
<description>
CHOReVOLUTION IdM Extensions: EE REST API
</description>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-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/ee/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/EEService.java
0 → 100644
View file @
ceccd6c9
/*
* 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.
*/
package
org.apache.syncope.common.rest.api.service
;
import
javax.ws.rs.Path
;
/**
* REST operations for acting on choreographies and / or their services.
*/
@Path
(
"enactmentengine"
)
public
interface
EEService
extends
JAXRSService
{
}
ext/ee/rest-cxf/pom.xml
0 → 100644
View file @
ceccd6c9
<?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-ee
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</parent>
<name>
CHOReVOLUTION IdM Extensions: EE REST CXF
</name>
<description>
CHOReVOLUTION IdM Extensions: EE REST CXF
</description>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-rest-cxf
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
org.apache.syncope.core
</groupId>