Repository: syncope Updated Branches: refs/heads/master 101858dce -> 105631375
fix for build #2665 Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/10563137 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/10563137 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/10563137 Branch: refs/heads/master Commit: 105631375db60c2e4956d7d6a16dbcb4884cfc4c Parents: 101858d Author: fmartelli <[email protected]> Authored: Sat Nov 25 12:09:29 2017 +0100 Committer: fmartelli <[email protected]> Committed: Sat Nov 25 12:09:29 2017 +0100 ---------------------------------------------------------------------- .../syncope/client/console/panels/TogglePanel.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/10563137/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java ---------------------------------------------------------------------- diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java index afabac0..9f0260e 100644 --- a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java +++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java @@ -22,8 +22,8 @@ import java.io.Serializable; import org.apache.commons.lang3.StringUtils; import org.apache.syncope.client.console.commons.Constants; import org.apache.syncope.client.console.commons.status.StatusBean; -import org.apache.syncope.client.console.policies.PolicyRuleDirectoryPanel; -import org.apache.syncope.client.console.reports.ReportletDirectoryPanel; +import org.apache.syncope.client.console.policies.PolicyRuleWrapper; +import org.apache.syncope.client.console.reports.ReportletWrapper; import org.apache.syncope.client.console.topology.TopologyNode; import org.apache.syncope.client.console.wizards.WizardMgtPanel; import org.apache.syncope.client.console.wizards.any.AnyWrapper; @@ -210,12 +210,12 @@ public abstract class TogglePanel<T extends Serializable> extends WizardMgtPanel key = ((EntityTO) modelObject).getKey(); } else if (modelObject instanceof StatusBean) { key = ((StatusBean) modelObject).getKey(); - } else if (modelObject instanceof PolicyRuleDirectoryPanel.PolicyRuleWrapper) { - key = ((PolicyRuleDirectoryPanel.PolicyRuleWrapper) modelObject).getName(); - } else if (modelObject instanceof PolicyRuleDirectoryPanel.PolicyRuleWrapper) { - key = ((PolicyRuleDirectoryPanel.PolicyRuleWrapper) modelObject).getName(); - } else if (modelObject instanceof ReportletDirectoryPanel.ReportletWrapper) { - key = ((ReportletDirectoryPanel.ReportletWrapper) modelObject).getName(); + } else if (modelObject instanceof PolicyRuleWrapper) { + key = ((PolicyRuleWrapper) modelObject).getConf().getName(); + } else if (modelObject instanceof PolicyRuleWrapper) { + key = ((PolicyRuleWrapper) modelObject).getConf().getName(); + } else if (modelObject instanceof ReportletWrapper) { + key = ((ReportletWrapper) modelObject).getConf().getName(); } else if (modelObject instanceof JobTO) { key = ((JobTO) modelObject).getRefKey() == null ? ((JobTO) modelObject).getRefDesc() : ((JobTO) modelObject).getRefKey();
