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
fc0ff88f
Commit
fc0ff88f
authored
Dec 19, 2016
by
Gianluca Filippone
Browse files
Added actions button for Enactment Engines
parent
2320be42
Changes
3
Hide whitespace changes
Inline
Side-by-side
ext/choreography/client-console/src/main/java/org/apache/syncope/client/console/panels/ChoreographyServiceDirectoryPanel.java
View file @
fc0ff88f
...
...
@@ -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
;
}
...
...
ext/choreography/client-console/src/main/java/org/apache/syncope/client/console/panels/ChoreographyVMDirectoryPanel.java
View file @
fc0ff88f
...
...
@@ -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
);
}
});
...
...
ext/ee/client-console/src/main/java/org/apache/syncope/client/console/panels/EnactmentEngineDirectoryPanel.java
View file @
fc0ff88f
...
...
@@ -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
);
}
...
...
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