View Javadoc

1   package org.telscenter.pas.otrunk.skeleton.controllers;
2   
3   import org.telscenter.pas.otrunk.skeleton.steps.OTEvidence;
4   import org.telscenter.pas.otrunk.skeleton.steps.OTWobbleModule;
5   import org.telscenter.pas.steps.Evidence;
6   import org.telscenter.pas.steps.WobbleModule;
7   
8   /***
9    * Controller for a WobbleModule step which allows wise 2 to be viewed in pas projects
10   * 
11   * @author aperritano
12   *
13   */
14  public class OTWobbleModuleController extends OTBrowseWebController {
15  
16  	public static Class[] realObjectClasses = { WobbleModule.class };
17  	public static Class otObjectClass = OTWobbleModule.class;
18  
19  	
20  	//TODO: do not define these
21  	public void loadRealObject(Object realObject) {
22  		super.loadRealObject(realObject);
23  
24  		WobbleModule wobbleModule = (WobbleModule) realObject;
25  		OTWobbleModule otWobbleModule = (OTWobbleModule) otObject;
26  
27  		// FIXME use beanutils property mapper for all this
28  
29  		// property:ModuleOtherData
30  		wobbleModule.setModuleOtherData(otWobbleModule.getModuleOtherData());
31  		// property:ModuleOtherNumber
32  		wobbleModule.setModuleOtherNumber(otWobbleModule.getModuleOtherNumber());
33  		// property:WiseStepUrl
34  		wobbleModule.setWiseStepUrl(otWobbleModule.getWiseStepUrl());
35  		
36  	}
37  
38  	public void registerRealObject(Object arg0) {
39  		// TODO Auto-generated method stub
40  
41  	}
42  
43  	public void saveRealObject(Object arg0) {
44  		// TODO Auto-generated method stub
45  
46  	}
47  
48  }