Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\dv\dvHomePage.jsp
<%try{ %> <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag/db" prefix="db" %> <%@ page import="oracle.sysman.emo.util.UIXDataSource" %> <%@ page import="oracle.sysman.db.rsc.sec.dv.DVMsgID" %> <%@ page import="oracle.sysman.db.rsc.inst.DBMsgID"%> <%@ page import="oracle.sysman.db.adm.sec.dv.DVController"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <%@ include file="/oemNoscript.jspf" %> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <db:script src="/database/LOV.js"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="dvMsgs" class="oracle.sysman.db.rsc.sec.dv.DVMsg"/> <uix:bundle name="dvPolicyMgmtMsgs" class="oracle.sysman.db.rsc.sec.dv.DVPolicyMgmtMsg"/> <uix:bundle name="dbMsgs1" class="oracle.sysman.db.rsc.inst.DBMsg"/> <% String sUrl = "/console/database/security/dv/DV?event="; String sTargetName = request.getParameter(ParameterNames.TARGET); String stargetType = request.getParameter(ParameterNames.TARGET_TYPE); String stt = "&"+ParameterNames.TARGET+"="+sTargetName+"&"+ParameterNames.TARGET_TYPE+"="+stargetType; String sFinalUrl=request.getContextPath()+sUrl+"refresh"+stt; String sFinalUrl3=request.getContextPath()+sUrl+"showAdminTab"+stt; String sFinalUrl1=request.getContextPath()+sUrl+"violationsGo"+stt; String sFinalUrl2=request.getContextPath()+sUrl+"violatorsGo"+stt; String sJS="please('"+sFinalUrl+"')"; String sJS1="please('"+sFinalUrl1+"')"; String sJS2="please('"+sFinalUrl2+"')"; String sJS5="please('"+sFinalUrl3+"')"; String sIsDVAUrlNotAvailable = request.getParameter("isDVAUrlNotAvailable"); if(sIsDVAUrlNotAvailable == null ){ sIsDVAUrlNotAvailable =(String) request.getAttribute("isDVAUrlNotAvailable"); } String sJS3 = null; String sJS4 = null; if(sIsDVAUrlNotAvailable.equals("false")){ String sRealmUrl = request.getParameter("activeRealmUrl"); if(sRealmUrl == null){ sRealmUrl = (String )request.getAttribute("activeRealmUrl"); } String sCommandUrl = request.getParameter("activeCommandUrl"); if(sCommandUrl == null){ sCommandUrl = (String)request.getAttribute("activeCommandUrl"); } sJS3 = "LaunchDVA('"+sRealmUrl+"')"; sJS4 = "LaunchDVA('"+sCommandUrl+"')"; } String sIsRealmCritical = request.getParameter("isRealmCritical"); if(sIsRealmCritical == null){ sIsRealmCritical = (String)request.getAttribute("isRealmCritical"); } if(sIsRealmCritical == null){ sIsRealmCritical = "false"; } String sIsCommandCritical = request.getParameter("isCommandCritical"); if(sIsCommandCritical == null){ sIsCommandCritical = (String)request.getAttribute("isCommandCritical"); } if(sIsCommandCritical == null){ sIsCommandCritical = "false"; } String sIsPolicyChangeCritical = request.getParameter("isPolicyChangeCritical"); if(sIsPolicyChangeCritical == null){ sIsPolicyChangeCritical = (String)request.getAttribute("isPolicyChangeCritical"); } if(sIsPolicyChangeCritical == null){ sIsPolicyChangeCritical = "false"; } %> <uix:document> <uix:metaContainer> <uix:head titleBinding="title@servletRequest"/> </uix:metaContainer> <script> function showDVAdminConsole(url) { openWindow(window, url, 'lovWindow',{width:700, height:600},true, 'dialog',''); } function refreshHome(event) { alert(event); document.dvHome.action = "/em/console/database/security/dv/DV?event="+event; document.dvHome.submit(); } </script> <script> function please(url) { document.dvHome.action = url; document.dvHome.submit(); } function LaunchDVA(dvaURL){ if(dvaURL != "" ){ window.open(dvaURL,'dvaWindow'); } } </script> <uix:body> <db:form name="dvHome" method="post" destination="/console/database/security/dv/DV" copyParams="target,type,otype,objectType"> <uix:formValue name="pageName" valueBinding="pageName@servletRequest" /> <uix:pageLayout titleBinding="header@servletRequest" > <%@ include file="/database/global.jspf" %> <oem:messageBox messageType="info" errorTableBinding="info@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <uix:messageBox messageBinding="DV_POLICY_MGMT_JOB_SUBMITTED_SUCCESS_MSG@dvPolicyMgmtMsgs" messageType="confirmation" textBinding="DV_POLICY_MGMT_CONFIRMATION_TXT@dvPolicyMgmtMsgs" renderedBinding="propogateJobSubmitted@servletRequest"> <uix:link textBinding="propogateJobName@servletRequest" destinationBinding="propogateJobLink@servletRequest"/> </uix:messageBox> <!-- Main Contents Starts Here --> <uix:subTabLayout> <uix:subTabs> <uix:subTabBar selectedIndex="0"> <uix:contents> <uix:link shortDescBinding="HOME@DBMsgBundle@servletRequest" textBinding="HOME@DBMsgBundle@servletRequest"/> <uix:link shortDescBinding="ADMINISTRATION@DBMsgBundle@servletRequest" textBinding="ADMINISTRATION@DBMsgBundle@servletRequest" onClickBinding="adminTabUrl@servletRequest" /> </uix:contents> </uix:subTabBar> </uix:subTabs> <uix:spacer width="5" height="5"/> <uix:flowLayout> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="right" > <uix:flowLayout> <%-- <uix:link textBinding="viewMsg@dvHomeBean@servletRequest" destinationBinding="viewMsgLink@dvHomeBean@servletRequest"/> <uix:spacer width="5" /> --%> <uix:styledText styleClass="OraTipText" textBinding="PAGE_REFRESHED_TIME@SDKBundle@servletRequest"/> <uix:spacer width="5" /> <uix:styledText styleClass="OraTipLabel" textBinding="refreshTime@servletRequest"/> <uix:spacer width="10" /> <uix:button textBinding="REFRESH@SDKBundle@servletRequest" shortDescBinding="REFRESH@SDKBundle@servletRequest" onClickBinding="refreshUrl@servletRequest" /> <%-- <uix:spacer width="10" /> <uix:styledText styleClass="OraFieldText" textBinding="VIEW_DATA@DBMsgBundle@servletRequest" labeledNodeId="ViewLabel" /> <uix:choice name="refreshHome" id="ViewLabel" onChange="<%=sJS%>" selectedValueBinding="refreshHomeSelected@servletRequest"> <uix:option textBinding="LAST1HR@dvMsgs" value="LAST1HR"/> <uix:option textBinding="LAST24HRS@dvMsgs" value="LAST24HRS"/> <uix:option textBinding="LAST7DAYS@dvMsgs" value="LAST7DAYS"/> <uix:option textBinding="LAST31DAYS@dvMsgs" value="LAST31DAYS"/> </uix:choice> --%> </uix:flowLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:flowLayout> <uix:tableLayout width="100%" cellSpacing="1"> <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="top" width="20%"> <!-- ................... General Section .................. --> <uix:header textBinding="GENERAL@DBMsgBundle@servletRequest" shortDescBinding="GENERAL@DBMsgBundle@servletRequest" iconBinding="allClearIcon@servletRequest" renderedBinding="showGeneral@servletRequest"> <uix:stackLayout> <uix:rowLayout> <uix:borderLayout> <%-- <uix:flowLayout> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:image sourceBinding="trafficImage@servletRequest" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="2" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:flowLayout> --%> <uix:tableLayout hAlign="left"> <!-- DV Status --> <uix:rowLayout vAlign="bottom"> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:image sourceBinding="trafficImage@servletRequest" shortDescBinding="NLSStatus@dvHomeBean@servletRequest" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="top" > <uix:tableLayout hAlign="left"> <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraPromptText" textBinding="STATUS@dvMsgs" labeledNodeId="status"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraDataText" textBinding="NLSStatus@dvHomeBean@servletRequest" shortDescBinding="NLSStatus@dvHomeBean@servletRequest" id="status"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraPromptText" textBinding="ACTIVE_REALM_COUNT@dvMsgs" labeledNodeId="ACTIVE_REALM_COUNT"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <% if(sIsDVAUrlNotAvailable.equals("false")){ %> <uix:link shortDescBinding="ACTIVE_REALMS@dvMsgs" textBinding="activeRealmCount@dvHomeBean@servletRequest" id="ACTIVE_REALM_COUNT" onClickBinding="activeRealmUrl@servletRequest" /> <%-- <uix:image source="/em/images/ok.gif"/> --%> <uix:spacer width="8"/> <uix:link shortDescBinding="DISABLED_REALMS@dvMsgs" textBinding="nonActiveRealmCount@dvHomeBean@servletRequest" id="ACTIVE_REALM_COUNT" onClickBinding="activeRealmUrl@servletRequest" /> <% if(sIsRealmCritical.equals("true")){ %> <%-- <uix:image source="/em/images/criticalind_status.gif"/> --%> <% } %> <% }else{ %> <db:link shortDescBinding="ACTIVE_REALMS@dvMsgs" textBinding="activeRealmCount@dvHomeBean@servletRequest" destinationBinding="DVA_URL@servletRequest" id="ACTIVE_REALM_COUNT" copyParams="target,type" /> <%-- <uix:styledText shortDescBinding="ACTIVE_REALMS@dvMsgs" styleClass="OraFieldText" textBinding="activeRealmCount@dvHomeBean@servletRequest"/> --%> <%-- <uix:image source="/em/images/ok.gif"/> --%> <uix:spacer width="8"/> <db:link shortDescBinding="DISABLED_REALMS@dvMsgs" textBinding="nonActiveRealmCount@dvHomeBean@servletRequest" destinationBinding="DVA_URL@servletRequest" id="ACTIVE_REALM_COUNT" copyParams="target,type" /> <%-- <uix:styledText shortDescBinding="DISABLED_REALMS@dvMsgs" styleClass="OraFieldText" textBinding="nonActiveRealmCount@dvHomeBean@servletRequest"/> --%> <% if(sIsRealmCritical.equals("true")){ %> <%-- <uix:image source="/em/images/criticalind_status.gif"/> --%> <% } %> <% } %> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraPromptText" textBinding="ACTIVE_COMMAND_RULE_COUNT@dvMsgs" labeledNodeId="ACTIVE_COMMAND_RULE_COUNT" /> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true"> <% if(sIsDVAUrlNotAvailable.equals("false")){ %> <uix:link shortDescBinding="ACTIVE_COMMAND@dvMsgs" textBinding="activeCommandRuleCount@dvHomeBean@servletRequest" id="ACTIVE_COMMAND_RULE_COUNT" onClickBinding="activeCommandUrl@servletRequest" /> <%-- <uix:image source="/em/images/ok.gif"/> --%> <uix:spacer width="8"/> <uix:link shortDescBinding="DISABLED_COMMAND@dvMsgs" textBinding="nonActiveCommandRuleCount@dvHomeBean@servletRequest" id="ACTIVE_COMMAND_RULE_COUNT" onClickBinding="activeCommandUrl@servletRequest" /> <% if(sIsCommandCritical.equals("true")){ %> <%-- <uix:image source="/em/images/criticalind_status.gif"/> --%> <% } %> <% }else{ %> <db:link shortDescBinding="ACTIVE_COMMAND@dvMsgs" textBinding="activeCommandRuleCount@dvHomeBean@servletRequest" destinationBinding="DVA_URL@servletRequest" id="ACTIVE_COMMAND_RULE_COUNT" copyParams="target,type" /> <%-- <uix:styledText shortDescBinding="ACTIVE_COMMAND@dvMsgs" styleClass="OraFieldText" textBinding="activeCommandRuleCount@dvHomeBean@servletRequest"/> --%> <%-- <uix:image source="/em/images/ok.gif"/> --%> <uix:spacer width="8"/> <db:link shortDescBinding="DISABLED_COMMAND@dvMsgs" textBinding="DISABLED_COMMAND@dvHomeBean@servletRequest" destinationBinding="DVA_URL@servletRequest" id="ACTIVE_COMMAND_RULE_COUNT" copyParams="target,type" /> <%-- <uix:styledText shortDescBinding="DISABLED_COMMAND@dvMsgs" styleClass="OraFieldText" textBinding="nonActiveCommandRuleCount@dvHomeBean@servletRequest"/> --%> <% if(sIsCommandCritical.equals("true")){ %> <%-- <uix:image source="/em/images/criticalind_status.gif"/> --%> <% } %> <% } %> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraPromptText" textBinding="VIOLATIONS_COUNT@dvMsgs" shortDescBinding="VIOLATIONS_COUNT@dvMsgs" labeledNodeId="VIOLATIONS_COUNT" /> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:link shortDescBinding="VIOLATIONS_COUNT@dvMsgs" textBinding="violationsCount@dvHomeBean@servletRequest" destinationBinding="violationsInLastDest@servletRequest" id="VIOLATIONS_COUNT" /> <uix:spacer width="4"/> <uix:styledText styleClass="OraInlineInfoText" textBinding="VIOLATIONS_IN_LAST_24_HRS@dvMsgs" /> </uix:cellFormat> </uix:rowLayout> <%-- <uix:rowLayout> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:spacer width="4"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:spacer width="2"/> <uix:styledText styleClass="OraInlineInfoText" textBinding="VIOLATIONS_IN_LAST_24_HRS@dvMsgs" /> </uix:cellFormat> </uix:rowLayout> --%> <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:styledText styleClass="OraPromptText" textBinding="POLICY_CHANGES_COUNT@dvMsgs" shortDescBinding="POLICY_CHANGES_COUNT@dvMsgs" labeledNodeId="policyChangesInLast"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="right" wrappingDisabled="true" vAlign="top"> <uix:link shortDescBinding="POLICY_CHANGES_COUNT@dvMsgs" textBinding="policyChangesCount@dvHomeBean@servletRequest" destinationBinding="policyChangesInLastDest@servletRequest" id="policyChangesInLast" /> <uix:spacer width="4"/> <uix:styledText styleClass="OraInlineInfoText" textBinding="VIOLATIONS_IN_LAST_24_HRS@dvMsgs" /> </uix:cellFormat> </uix:rowLayout> <%-- <uix:rowLayout> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:spacer width="4"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> <uix:spacer width="2"/> <uix:styledText styleClass="OraInlineInfoText" textBinding="VIOLATIONS_IN_LAST_24_HRS@dvMsgs" /> </uix:cellFormat> </uix:rowLayout> --%> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> <!-- DV Enabled Since --> <%-- <uix:rowLayout> <uix:cellFormat hAlign="left" wrappingDisabled="true" vAlign="top"> </uix:cellFormat> <uix:cellFormat hAlign="left" wrappingDisabled="true"> <uix:styledText styleClass="OraPromptText" textBinding="ENABLED_SINCE@dvMsgs"/> <uix:spacer width="8"/> <uix:styledText styleClass="OraDataText" textBinding="enabledSince@dvHomeBean@servletRequest"/> </uix:cellFormat> </uix:rowLayout> --%> <!-- Active Realm Count --> <!-- Active Command Rule Count --> <!-- Violations in last 24 hrs --> <%-- <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true"> <uix:styledText styleClass="OraPromptText" textBinding="VIOLATIONS@dvMsgs"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true"> <uix:link textBinding="violationsInLast@dvHomeBean@servletRequest" destinationBinding="violationsInLastDest@servletRequest"/> <uix:spacer width="4"/> <uix:styledText styleClass="OraTipText" textBinding="violationsInLast@servletRequest"/> </uix:cellFormat> </uix:rowLayout> --%> <%-- <uix:rowLayout> <uix:cellFormat hAlign="right" wrappingDisabled="true"> <uix:styledText styleClass="OraPromptText" textBinding="policyChangesInLast@servletRequest"/> </uix:cellFormat> <uix:spacer width="8"/> <uix:cellFormat hAlign="left" wrappingDisabled="true"> <uix:link textBinding="policyChangesInLast@dvHomeBean@servletRequest" destinationBinding="policyChangesInLastDest@servletRequest"/> </uix:cellFormat> </uix:rowLayout> --%> <!-- END Reconfigution history Info --> <!-- end of table of General info --> </uix:tableLayout> </uix:borderLayout> </uix:rowLayout> </uix:stackLayout> </uix:header> </uix:cellFormat> <uix:include node="/database/security/dv/dvChartIncl.jsp" /> </uix:rowLayout> </uix:tableLayout> <%-- <uix:hideShowHeader textBinding="ALERTS_HEADER@DBMsgBundle@servletRequest" renderedBinding="showNormal@defaultBean@servletRequest" id="hideShowAlertsTableHeader" partialRenderMode="self" formSubmitted="true" disclosedBinding="discloseHideShowAlertsTableHeader@httpSession" > --%> <uix:header textBinding="ALERTS_HEADER@DBMsgBundle@servletRequest" shortDescBinding="DATABASE_VAULT_ALERTS@dvMsgs"> <uix:tableLayout width="100%" > <uix:rowLayout vAlign="top"> <oem:table name="alertsUIDataSource" partialRenderMode="self" id="alertsTable" alternateTextBinding="NO_ALERTS_ALT@SDKBundle@servletRequest" width="100%" summaryBinding="ALERTS@SDKBundle@servletRequest" shortDescBinding="ALERTS@SDKBundle@servletRequest" dataSourceProp="alertsUIDataSource" beanKey="dvHomeBean" formSubmitted="true" blockSize="10"> </oem:table> </uix:rowLayout> </uix:tableLayout> <%-- </uix:hideShowHeader> --%> </uix:header> <uix:header textBinding="RELATED_LINKS@DBMsgBundle@servletRequest" shortDescBinding="RELATED_LINKS@DBMsgBundle@servletRequest" > <uix:tableLayout width="100%" cellSpacing="2"> <uix:rowLayout> <%-- <uix:cellFormat> <db:link textBinding="DATABASE_VAULT_POLICY_MGMT@dvMsgs" destination="/console/database/security/dv/DVPolicymgmt?event=POLICY_MGMT_PAGE" copyParams="target,type"/> </uix:cellFormat> --%> <uix:cellFormat width="33%"> <db:link textBinding="VIEW_ALL_METRICS@DBMsgBundle@servletRequest" shortDescBinding="VIEW_ALL_METRICS@DBMsgBundle@servletRequest" destination="/console/metrics/allMetrics" copyParams="target,type"/> </uix:cellFormat> <uix:cellFormat width="33%" > <db:link textBinding="CONFIGURE_ALERTS@dvMsgs" destination="/console/metrics/target/metricThresholds" shortDescBinding="CONFIGURE_ALERTS@dvMsgs" copyParams="target,type"/> </uix:cellFormat> <uix:cellFormat width="33%"> <db:link textBinding="DATABASE_VAULT_ADMINISTRATOR@dvMsgs" destinationBinding="DVA_URL@servletRequest" shortDescBinding="DATABASE_VAULT_ADMINISTRATOR@dvMsgs" copyParams="target,type"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:header> <!-- <uix:tableLayout width="100%"> <uix:rowLayout width="100%"> <uix:cellFormat width="33%" vAlign="top"> </uix:cellFormat> <uix:cellFormat width="33%" vAlign="top"> </uix:cellFormat> <uix:cellFormat width="33%" vAlign="top"> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> --> <!-- navigation --> </uix:subTabLayout> </uix:pageLayout> </db:form> </uix:body> </uix:document> </uix:renderingContext> <% }catch(Throwable t){ java.io.StringWriter stack = new java.io.StringWriter(1000); t.printStackTrace(new java.io.PrintWriter(stack)); //s_log.error(stack.toString()); out.print(stack.toString()); } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de