source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/factory/DebugFactory.as@ 1227

Last change on this file since 1227 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 1.0 KB
Line 
1/* DebugFactory.as */
2
3package gov.va.med.edp.factory
4{
5 import gov.va.med.edp.business.CSPService;
6 import gov.va.med.edp.model.TrackingModelLocator;
7 import gov.va.med.edp.vo.DebugVO;
8
9 import mx.collections.ArrayCollection;
10 import mx.utils.ObjectUtil;
11
12 public class DebugFactory
13 {
14
15 public static function updateDebugModel(cspService:CSPService, results:String, fault:String, parameters:Object): void
16 {
17 var model:TrackingModelLocator = TrackingModelLocator.getInstance();
18 var list:ArrayCollection = model.debug.cspServiceCallList;
19
20 if (list != null){
21 var debugVO: DebugVO= new DebugVO()
22 debugVO.url = cspService.url;
23 debugVO.command = cspService.command;
24
25 debugVO.parameters = ObjectUtil.toString(parameters);
26 debugVO.request = ObjectUtil.toString(cspService);
27
28 debugVO.results = results;
29 if (fault != "" && fault != null){
30 debugVO.results = fault;
31 }
32 list.addItem(debugVO);
33 }
34 }
35
36 }
37
38}
Note: See TracBrowser for help on using the repository browser.