services.jsp revision ae4ee6e50386a7dd03bacc6118902609b145379b
536N/A<%@ page import="com.iplanet.sso.SSOToken" %>
913N/A<%@ page import="com.sun.identity.sm.*" %>
536N/A<%@ page import="java.util.*" %>
536N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
536N/A<html xmlns="http://www.w3.org/1999/xhtml">
536N/A <link rel="shortcut icon" href="com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon"/>
<script src="js/jquery.js"></script>
<script type="text/javascript">
<div class="SkpMedGry1"><a href="#SkipAnchor3860"><img src="com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1"/></a></div>
<div class="MstDivTtl"><img name="AMConfig.configurator.ProdName" src="com_sun_web_ui/images/PrimaryProductName.png" alt="OpenAM" border="0"/></div>
<td><img src="com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1"/></a></td>
<%@ include file="/WEB-INF/jsp/admincheck.jsp" %>
SSOToken ssoToken = requireAdminSSOToken(request, response, out, "showServerConfig.jsp");
<pre>ssoadm set-attr-defs -u amadmin -f /tmp/pwd.txt -s iPlanetAMSessionService \
onclick="$(document).find('.serviceBlock').show(); $(document).find('.schemaBlock').show();">Expand all
onclick="$(document).find('.serviceBlock').hide(); $(document).find('.schemaBlock').hide();">Collapse all
Set serviceNames = sm.getServiceNames();
String serviceName = o.toString();
out.println("<div class='service' name='" + o + "'>");
out.println("<div class='serviceName'>" + serviceName + "</div>");
out.println("<div class='serviceBlock'>");
ServiceConfigManager scm = sm.getConfigManager(serviceName, "1.0");
Set<String> instances = scm.getInstanceNames();
// out.println("Instance: " + instance + "");
ServiceSchemaManager ssm = sm.getSchemaManager(serviceName, "1.0");
ServiceSchema dynamic = ssm.getDynamicSchema();
serviceSchemaList.put("Dynamic", dynamic);
ServiceSchema global = ssm.getGlobalSchema();
serviceSchemaList.put("Global", global);
ServiceSchema org = ssm.getOrganizationSchema();
serviceSchemaList.put("Organization", org);
for (String schemaType : serviceSchemaList.keySet()) {
ServiceSchema ss = serviceSchemaList.get(schemaType);
String i18nFilename = ss.getI18NFileName();
ResourceBundle bundle = ResourceBundle.getBundle(i18nFilename);
Set<String> serviceAttributeNames = ss.getServiceAttributeNames();
if (serviceAttributeNames == null || serviceAttributeNames.isEmpty()) {
out.println("<div class='schemaType'><div class='schemaTitle'>" + schemaType + "</div>");
out.println("<div class='schemaBlock'>");
AttributeSchema as = ss.getAttributeSchema(s);
out.println("<div class='attribute'>");
out.println("<div class='attributeRowA'>");
out.println("<div class='attributeRowB'>");
out.println("<div class='name'>" + s + "</div>");
if (as.getI18NKey() != null)
out.println("<div class='descriptionMissing'>" + s + " (missing description)</div>");
if (as.getI18NKey() != null)
out.println("</div>");
out.println("</div>");
out.println("</div>");
out.println("</div>");
out.println("</div></div>");