[
https://issues.apache.org/jira/browse/SYNCOPE-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083544#comment-16083544
]
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_r126876940
--- Diff:
client/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java
---
@@ -522,6 +549,32 @@ public String getAjaxIndicatorMarkupId() {
MetaDataRoleAuthorizationStrategy.authorize(push, RENDER,
StandardEntitlement.TASK_LIST);
fragment.add(push);
+ 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 ResourceTO modelObject =
resourceRestClient.read(String.class.cast(node.getKey()));
+
+ target.add(modal.setContent(new HistoryConfList(modal,
connID, pageRef, modelObject)));
+
+ modal.header(new Model<>(MessageFormat.
+ format(getString("resource.menu.history"),
node.getDisplayName())));
+
+ modal.show(true);
+ }
+
+ @Override
+ public String getAjaxIndicatorMarkupId() {
+ return Constants.VEIL_INDICATOR_MARKUP_ID;
+ }
+
+ };
+ MetaDataRoleAuthorizationStrategy.authorize(history, RENDER,
StandardEntitlement.RESOURCE_UPDATE);
--- End diff --
Authorize by `RESOURCE_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)