Commit 3619f002 authored by Gianluca Filippone's avatar Gianluca Filippone
Browse files

Added Enactment Engines list and other EE estension improvements

parent a200c8a1
......@@ -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 EmptyPanel("enactmentengines"));
content.add(new EnactmentEngineDirectoryPanel("enactmentengines", getPageReference()));
// Re-enable when entilements for this service will be defined
//MetaDataRoleAuthorizationStrategy.authorize(content, ENABLE, CamelEntitlement.ROUTE_LIST);
body.add(content);
}
......
......@@ -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);
}
}
}
/*
* 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;
}
<?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>
......@@ -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>
......
......@@ -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>
......@@ -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>
......
......@@ -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 services.
* REST operations for managing enactment engines.
*/
@Path("enactmentengine")
public interface EEService extends JAXRSService {
......
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment