Topic Text   Topic Comments (0)   Topic Properties   Topic Information test@tes...
Topic title: test Wednesday April 21, 2010 15:24:25

Download topic text | View in monospace font | Tab width set to 8 (change to 4)

Files in topic: (view all files)  
Fault.AlarmManager/src/com/dhyan/nms/server/fault/alarmmanager/AlarmManager.java  6018   {+130,-0}
Fault.AlarmManager/src/com/dhyan/nms/server/fault/alarmmanager/ejb/AlarmSessionBean.java  6018   {+160,-36}
Fault.AlarmManager/src/com/dhyan/nms/server/fault/alarmmanager/resources/AlarmClassification.xml  0   {+27,-0}
Fault.AlarmManager/src/com/dhyan/nms/server/fault/alarmmanager/resources/AlarmClassification.xsd  0   {+42,-0}
Fault.FaultManager/DVL/dvl-DefaultQueries.xml  6018   {+7,-9}
Fault.Publisher/src/com/dhyan/nms/server/fault/publisher/EmailPublisherImpl.java  6018   {+11,-0}
Perf.DataCollection/src/com/dhyan/nms/server/performance/datacollection/HistoricalProcessImpl.java  6018   {+1,-3}
Perf.DataCollection/src/com/dhyan/nms/server/performance/datacollection/PerformanceTaskCreator.java  6018   {+17,-8}
Perf.DataCollection/src/com/dhyan/nms/server/performance/datacollection/ejb/DataCollectionFacade.java  6018   {+1,-1}
Perf.PerformanceManager/src/com/dhyan/nms/server/performance/ejb/PerformanceFacade.java  6018   {+1,-0}
Web.BaseModule/WebContent/jsp/DNMSIndex.jsp  6018   {+4,-0}
Web.BaseModule/WebContent/jsp/LoadResourceBundle.jsp  6018   {+0,-1}
Web.BaseModule/WebContent/webresource/webcomponents/table/scripts/VerticalTable.js  6018   {+1,-1}
Web.Chart/WebContent/webresource/chart/flex/src/Linechart.mxml  6018   {+8,-5}
Web.ChassisView/WebContent/resources/conf/MultiChassisView.xml  6018   {+3,-3}
Web.ChassisView/WebContent/webresource/chassisview/scripts/ChassisView.js  6018   {+1,-1}
Web.ChassisView/src/com/dhyan/nms/client/webclient/chassisview/struts/resources/MultiChassisView.xsd  6018   {+6,-6}
Web.Fault/WebContent/WEB-INF/properties/AlarmDetailsAction.properties  6018   {+2,-1}
Web.Fault/WebContent/WEB-INF/struts/struts.xml  6018   {+4,-0}
Web.Fault/WebContent/webresource/fault/scripts/DNMSFault.js  6018   {+2,-2}
Web.Fault/WebContent/webresource/fault/scripts/FaultScriptController.js  6018   {+53,-28}
Web.Fault/WebContent/webresource/fault/scripts/FaultTabUtility.js  6018   {+19,-2}
Web.Fault/src/com/dhyan/nms/client/webclient/fault/struts/AlarmDetailsAction.java  6018   {+39,-3}
Web.Performance/WebContent/webresource/dashboard/scripts/DashboardConfigurator.js  6018   {+5,-5}
Web.Security/WebContent/webresource/security/scripts/SecurityUserManager.js  6018   {+1,-1}
Web.Topology/WebContent/WEB-INF/properties/resource.properties  6018   {+1,-1}
Web.Topology/WebContent/WEB-INF/properties/resourcegroup.properties  6018   {+1,-0}
Web.Topology/WebContent/webresource/topology/scripts/ResourceTreeManager.js  6018   {+11,-5}
Web.Topology/WebContent/webresource/topology/scripts/TopologyMapHelper.js  6018   {+8,-1}
dnms/resources/dbspecific/derby/schema/dnms_common.sql  6018   {+1,-1}
dnms/resources/dbspecific/derby/schema/dnms_default_records.sql  6018   {+1,-1}
dnms/resources/dbspecific/mysql/schema/dnms_common.sql  6018   {+1,-1}
dnms/resources/dbspecific/mysql/schema/dnms_default_records.sql  6018   {+1,-1}
dnms/resources/dbspecific/oracle/schema/dnms_common.sql  6018   {+1,-1}
dnms/resources/dbspecific/oracle/schema/dnms_default_records.sql  6018   {+1,-1}

[Add General Comment] to topic.

File Web.Fault/src/com/dhyan/nms/client/webclient/fault/struts/AlarmDetailsAction.java (Revision 6018) [Add File Comment] [<<] [Top] [>>]
 
Line 31 | Parallel Line 31 | Parallel
31 import com.dhyan.nms.client.webclient.webbase.struts.WebConstants; 31 import com.dhyan.nms.client.webclient.webbase.struts.WebConstants;
32 import com.dhyan.nms.datamodel.StaleDataException; 32 import com.dhyan.nms.datamodel.StaleDataException;
33 import com.dhyan.nms.server.fault.alarmmanager.AlarmConstants; 33 import com.dhyan.nms.server.fault.alarmmanager.AlarmConstants;
34 import com.dhyan.nms.server.fault.alarmmanager.AlarmManager;
34 import com.dhyan.nms.server.fault.alarmmanager.datamodel.Alarm; 35 import com.dhyan.nms.server.fault.alarmmanager.datamodel.Alarm;
35 import com.dhyan.nms.server.fault.alarmmanager.datamodel.Alarmannotation; 36 import com.dhyan.nms.server.fault.alarmmanager.datamodel.Alarmannotation;
36 import com.dhyan.nms.server.fault.alarmmanager.interfaces.AlarmSessionLocal; 37 import com.dhyan.nms.server.fault.alarmmanager.interfaces.AlarmSessionLocal;
 
 
Line 160 | Parallel Line 161 | Parallel
160 this.optionalfield = optionalfieldArg; 161 this.optionalfield = optionalfieldArg;
161 } 162 }
162 163
163
164 /** 164 /**
165 * @param rowsjsonArg the rowsjson to set 165 * @param rowsjsonArg the rowsjson to set
166 */ 166 */
 
 
Line 883 | Parallel Line 883 | Parallel
883 { 883 {
884 if (response != null) 884 if (response != null)
885 { 885 {
886 JSONBuilder.setResponseAttributes(response);
886 response.getWriter().write(responseString); 887 response.getWriter().write(responseString);
887 } 888 }
888 } 889 }
 
 
Line 892 | Parallel Line 893 | Parallel
892 * @return null 893 * @return null
893 * @throws Exception exception 894 * @throws Exception exception
894 */ 895 */
896 public String checkCanClearAlarms() throws Exception
897 {
898
899 try
900 {
901 JSONArray jsonArray = new JSONArray(getRowsjson());
902 JSONObject responseJSON = new JSONObject();
903 if (jsonArray.length() > 0)
904 {
905 for (int i = 0; i < jsonArray.length(); i++)
906 {
907 JSONObject jsonObject = jsonArray.getJSONObject(i);
908 Alarm alarmObj = getAlarmFromJSON(jsonObject);
909 if (AlarmManager.getInstance().isDeviceAlarm(alarmObj))
910 {
911 responseJSON.put("errorMessage", ResourceBundleHandler.getInstance().getResource(AlarmDetailsAction.RESOURCE_BUNDLE,
912 "AlarmDetailsAction.alert.clearAlarm.validation", "Problem in locating Resource Bundle / Keys"));
913 break;
914 }
915 }
916 }
917 this.writeToResponse(responseJSON.toString());
918 }
919 catch (Exception e)
920 {
921 AlarmDetailsAction.LOGGER.error("Problem while Clearing Alarms; Exception caused due to " + e.getMessage());
922 }
923 return null;
924 }
925
926 /**
927 * To clear the alarms.
928 * @return null
929 * @throws Exception exception
930 */
895 public String clearAlarm() throws Exception 931 public String clearAlarm() throws Exception
896 { 932 {
897 try 933 try
 
 
Line 913 | Parallel Line 949 | Parallel
913 alarm_store_local.addAnnotateAlarm(alarmObj.getAlarmid(), this.getAnnotation(), security_facade_local.getUserID(alarmObj.getOwner())); 949 alarm_store_local.addAnnotateAlarm(alarmObj.getAlarmid(), this.getAnnotation(), security_facade_local.getUserID(alarmObj.getOwner()));
914 } 950 }
915 } 951 }
916 this.writeToResponse(JSONBuilder.OPEN_CURLY_BRACE 952 this.writeToResponse(JSONBuilder.OPEN_CURLY_BRACE + JSONBuilder.prepareKeyValuePair(AlarmDetailsAction.SUCCESS, "success ")
917 + JSONBuilder.prepareKeyValuePair(AlarmDetailsAction.SUCCESS, "success ") + JSONBuilder.CLOSED_CURLY_BRACE); 953 + JSONBuilder.CLOSED_CURLY_BRACE);
918 } 954 }
919 catch (StaleDataException se) 955 catch (StaleDataException se)
920 { 956 {
 
File Web.Fault/src/com/dhyan/nms/client/webclient/fault/struts/AlarmDetailsAction.java (Revision 6018) [Add File Comment] [<<] [Top] [>>]
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.