Commit fc0ff88f authored by Gianluca Filippone's avatar Gianluca Filippone
Browse files

Added actions button for Enactment Engines

parent 2320be42
......@@ -26,7 +26,14 @@ import org.apache.syncope.common.lib.to.AnyObjectTO;
import org.apache.syncope.common.lib.types.AnyTypeKind;
import org.apache.syncope.common.lib.types.SchemaType;
import org.apache.wicket.PageReference;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;
import org.springframework.util.ReflectionUtils;
public class ChoreographyServiceDirectoryPanel extends AnyObjectDirectoryPanel {
......@@ -59,6 +66,36 @@ public class ChoreographyServiceDirectoryPanel extends AnyObjectDirectoryPanel {
columns.add(new AttrColumn<>("Service Location", SchemaType.PLAIN));
columns.add(new AbstractColumn<AnyObjectTO, String>(new ResourceModel("actions", "")) {
private static final long serialVersionUID = -5137819175810948915L;
@Override
public String getCssClass() {
return "action";
}
@Override
public void populateItem(
final Item<ICellPopulator<AnyObjectTO>> item,
final String componentId,
final IModel<AnyObjectTO> model) {
ChoreographyActionsPanel choreographyActionsPanel = new ChoreographyActionsPanel(componentId);
choreographyActionsPanel.addAction(new IndicatingAjaxLink<Void>("link") {
private static final long serialVersionUID = 4787462946145290675L;
@Override
public void onClick(final AjaxRequestTarget target) {
}
}, ChoreographyActionsPanel.ChoreographyActionType.SHOW);
item.add(choreographyActionsPanel);
}
});
return columns;
}
......
......@@ -143,6 +143,15 @@ public class ChoreographyVMDirectoryPanel extends DirectoryPanel<
target.add(utilityModal);
}
}, ChoreographyActionsPanel.ChoreographyActionType.RESIZE);
choreographyActionsPanel.addAction(new IndicatingAjaxLink<Void>("link") {
private static final long serialVersionUID = 3104631231085231035L;
@Override
public void onClick(final AjaxRequestTarget target) {
}
}, ChoreographyActionsPanel.ChoreographyActionType.SHOW);
item.add(choreographyActionsPanel);
}
});
......
......@@ -125,7 +125,7 @@ public class EnactmentEngineDirectoryPanel extends AnyObjectDirectoryPanel {
@Override
public void onClick(final AjaxRequestTarget target) {
utilityModal.header(Model.of("Edit Choreography"));
utilityModal.header(Model.of("Edit Enactment Engine"));
utilityModal.show(true);
target.add(utilityModal);
}
......
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