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
3619f002
Commit
3619f002
authored
Oct 26, 2016
by
Gianluca Filippone
Browse files
Added Enactment Engines list and other EE estension improvements
parent
a200c8a1
Changes
9
Hide whitespace changes
Inline
Side-by-side
ext/ee/client-console/src/main/java/org/apache/syncope/client/console/pages/EnactmentEnginePage.java
View file @
3619f002
...
...
@@ -18,8 +18,8 @@ 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.syncope.client.console.panels.EnactmentEngineDirectoryPanel
;
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"
,
...
...
@@ -38,10 +38,8 @@ public class EnactmentEnginePage extends BaseExtPage {
WebMarkupContainer
content
=
new
WebMarkupContainer
(
"content"
);
content
.
setOutputMarkupId
(
true
);
content
.
add
(
new
E
mpt
yPanel
(
"enactmentengines"
));
content
.
add
(
new
E
nactmentEngineDirector
yPanel
(
"enactmentengines"
,
getPageReference
()
));
// 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
View file @
3619f002
...
...
@@ -15,11 +15,44 @@
*/
package
org.apache.syncope.client.console.panels
;
import
org.apache.wicket.markup.html.panel.Panel
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.syncope.client.console.pages.EnactmentEnginePage
;
import
org.apache.syncope.common.lib.search.AnyObjectFiqlSearchConditionBuilder
;
import
org.apache.syncope.common.lib.to.AnyObjectTO
;
import
org.apache.syncope.common.lib.types.AnyTypeKind
;
import
org.apache.wicket.PageReference
;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn
;
public
class
EnactmentEngineDirectoryPanel
extends
Panel
{
public
EnactmentEngineDirectoryPanel
(
final
String
id
)
{
super
(
id
);
public
class
EnactmentEngineDirectoryPanel
extends
AnyObjectDirectoryPanel
{
private
static
final
long
serialVersionUID
=
7303610381539502741L
;
public
EnactmentEngineDirectoryPanel
(
final
String
id
,
final
PageReference
pageRef
)
{
super
(
id
,
new
Builder
(
AnyTypeKind
.
ANY_OBJECT
.
name
(),
pageRef
),
false
);
this
.
fiql
=
new
AnyObjectFiqlSearchConditionBuilder
(
"ENACTMENT ENGINE"
).
query
();
dataProvider
.
setFIQL
(
fiql
);
}
@Override
protected
String
paginatorRowsKey
()
{
return
EnactmentEnginePage
.
PREF_EE_PAGINATOR_ROWS
;
}
@Override
protected
List
<
IColumn
<
AnyObjectTO
,
String
>>
getColumns
()
{
return
super
.
getColumns
();
}
public
static
class
Builder
extends
AnyObjectDirectoryPanel
.
Builder
{
private
static
final
long
serialVersionUID
=
1903764789236792302L
;
public
Builder
(
final
String
type
,
final
PageReference
pageRef
)
{
super
(
new
ArrayList
<>(),
type
,
pageRef
);
setFiltered
(
true
);
setShowResultPage
(
true
);
}
}
}
ext/ee/client-console/src/main/java/org/apache/syncope/client/console/rest/EnactmentEngineRestClient.java
0 → 100644
View file @
3619f002
/*
* 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
EnactmentEngineRestClient
extends
BaseRestClient
{
private
static
final
long
serialVersionUID
=
-
1037423582023749173L
;
}
ext/ee/common-lib/pom.xml
0 → 100644
View file @
3619f002
<?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 Common Lib
</name>
<description>
CHOReVOLUTION IdM Extensions: EE Common Lib
</description>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-common-lib
</artifactId>
<packaging>
jar
</packaging>
<properties>
<rootpom.basedir>
${basedir}/../../..
</rootpom.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
common
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
ext/ee/logic/pom.xml
View file @
3619f002
...
...
@@ -52,6 +52,11 @@ limitations under the License.
<artifactId>
chorspec
</artifactId>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-common-lib
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.cxf
</groupId>
<artifactId>
cxf-rt-rs-client
</artifactId>
...
...
ext/ee/pom.xml
View file @
3619f002
...
...
@@ -39,5 +39,6 @@ limitations under the License.
<module>
rest-cxf
</module>
<module>
logic
</module>
<module>
client-console
</module>
<module>
common-lib
</module>
</modules>
</project>
ext/ee/rest-api/pom.xml
View file @
3619f002
...
...
@@ -47,6 +47,11 @@ limitations under the License.
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-common-lib
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
...
...
ext/ee/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/EEService.java
View file @
3619f002
...
...
@@ -18,7 +18,7 @@ package org.apache.syncope.common.rest.api.service;
import
javax.ws.rs.Path
;
/**
* REST operations for
acting on choreographies and / or their servic
es.
* REST operations for
managing enactment engin
es.
*/
@Path
(
"enactmentengine"
)
public
interface
EEService
extends
JAXRSService
{
...
...
ext/ee/rest-cxf/pom.xml
View file @
3619f002
...
...
@@ -57,6 +57,12 @@ limitations under the License.
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm.ext.ee
</groupId>
<artifactId>
syncope-ext-ee-common-lib
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment