Support governance connectors to render Links
@@ -675,7 +675,21 @@ function idpMgtCancel(){
<%
org.wso2.carbon.identity.governance.stub.bean.Property[] connectorProperties = connectorConfig.getProperties();
for (int k = 0; k < connectorProperties.length; k++) {
- String value = connectorProperties[k].getValue();%>
+ String value = connectorProperties[k].getValue();
+ String displayName = connectorProperties[k].getDisplayName();
+ String name = connectorProperties[k].getName();
+ if (StringUtils.isNotEmpty(name) && name.startsWith("_url_")) {%>
+
+ <tr>
+ <td style="width: 500px;">
+ <a class="icon-link"
+ style="background-image:url(images/configure.gif);margin-right: 300px"
+ href="<%=Encode.forHtmlAttribute(value)%>"><%=Encode.forHtmlContent(displayName)%>
+ </a>
+ </td>
+ </tr>
+
+ <% } else { %>
<tr>
<td style="width: 500px;">
<%=Encode.forHtmlContent(connectorProperties[k].getDisplayName())%>
@@ -720,7 +734,7 @@ function idpMgtCancel(){
</td>
<%}%>
</tr>
- <%}%>
+ <%}}%>
</table></div>
<%
}
@@ -745,7 +759,21 @@ function idpMgtCancel(){
<%
org.wso2.carbon.identity.governance.stub.bean.Property[] connectorProperties = connectorConfig.getProperties();
for (int k = 0; k < connectorProperties.length; k++) {
- String value = connectorProperties[k].getValue();%>
+ String value = connectorProperties[k].getValue();
+ String displayName = connectorProperties[k].getDisplayName();
+ String name = connectorProperties[k].getName();
+ if (StringUtils.isNotEmpty(name) && name.startsWith("_url_")) { %>
+
+ <tr>
+ <td style="width: 500px;">
+ <a class="icon-link"
+ style="background-image:url(images/configure.gif);margin-right: 300px"
+ href="<%=Encode.forHtmlAttribute(value)%>"><%=Encode.forHtmlContent(displayName)%>
+ </a>
+ </td>
+ </tr>
+
+ <% } else { %>
<tr>
<td style="width: 500px;">
<%=Encode.forHtmlContent(connectorProperties[k].getDisplayName())%>
@@ -790,7 +818,7 @@ function idpMgtCancel(){
</td>
<%}%>
</tr>
- <%}%>
+ <%}}%>
</table></div>
<%
}
