syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgrosso <...@git.apache.org>
Subject [GitHub] syncope pull request #50: Connector and Resource configuration versioning in...
Date Wed, 12 Jul 2017 06:57:23 GMT
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.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message