1 package org.telscenter.pas.otrunk.skeleton.controllers;
2
3 import org.telscenter.pas.otrunk.skeleton.steps.OTAbstractUrlStep;
4 import org.telscenter.pas.otrunk.skeleton.steps.OTEvidence;
5 import org.telscenter.pas.steps.AbstractUrlStep;
6 import org.telscenter.pas.steps.Evidence;
7
8 public class OTEvidenceController extends OTBrowseWebController {
9
10 public static Class[] realObjectClasses = { Evidence.class };
11 public static Class otObjectClass = OTEvidence.class;
12
13
14
15 public void loadRealObject(Object realObject) {
16 super.loadRealObject(realObject);
17
18 Evidence evidence = (Evidence) realObject;
19 OTEvidence otEvidence = (OTEvidence) otObject;
20
21
22
23
24 evidence.setAttribution(otEvidence.getAttribution());
25
26 evidence.setEvidenceTitle(otEvidence.getEvidenceTitle());
27 }
28
29 public void registerRealObject(Object arg0) {
30 }
31
32 public void saveRealObject(Object realObject) {
33 super.saveRealObject(realObject);
34 Evidence evidence = (Evidence) realObject;
35 OTEvidence otEvidence = (OTEvidence) otObject;
36
37 otEvidence.setAttribution(evidence.getAttribution());
38 otEvidence.setEvidenceTitle(evidence.getEvidenceTitle());
39
40 }
41
42 }