[
https://issues.apache.org/jira/browse/SYNCOPE-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083543#comment-16083543
]
ASF GitHub Bot commented on SYNCOPE-1145:
-----------------------------------------
Github user ilgrosso commented on a diff in the pull request:
https://github.com/apache/syncope/pull/50#discussion_r126876900
--- Diff:
client/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java
---
@@ -325,6 +326,32 @@ public String getAjaxIndicatorMarkupId() {
MetaDataRoleAuthorizationStrategy.authorize(edit, RENDER,
StandardEntitlement.CONNECTOR_UPDATE);
fragment.add(edit);
+ AjaxLink<String> history = new
IndicatingAjaxLink<String>("history") {
+
+ private static final long serialVersionUID =
-1876519166660008562L;
+
+ @Override
+ public void onClick(final AjaxRequestTarget target) {
+ String connID = String.class.cast(node.getKey());
+ final ConnInstanceTO modelObject =
connectorRestClient.read(String.class.cast(node.getKey()));
+
+ target.add(modal.setContent(new HistoryConfList(modal,
connID, pageRef, modelObject)));
+
+ modal.header(new Model<>(MessageFormat.
+ format(getString("connector.menu.history"),
node.getDisplayName())));
+
+ modal.show(true);
+ }
+
+ @Override
+ public String getAjaxIndicatorMarkupId() {
+ return Constants.VEIL_INDICATOR_MARKUP_ID;
+ }
+
+ };
+ MetaDataRoleAuthorizationStrategy.authorize(history, RENDER,
StandardEntitlement.CONNECTOR_UPDATE);
--- End diff --
Authorize by `CONNECTOR_HISTORY_LIST` instead.
> Connector and Resource configuration versioning
> -----------------------------------------------
>
> Key: SYNCOPE-1145
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1145
> Project: Syncope
> Issue Type: New Feature
> Components: common, console, core
> Reporter: Francesco Chicchiriccò
> Assignee: Francesco Chicchiriccò
> Fix For: 2.0.5, 2.1.0
>
>
> It often happens that, while playing with Connectors' and Resources'
> configuration, everything works up until a certain point, then some
> misconfiguration happens and errors start appearing.
> In such situations, it would be handy to have a simple mechanism to revert to
> a previous (working) situation.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)