1 package org.telscenter.pas.otrunk.skeleton.controllers;
2
3 import org.telscenter.pas.otrunk.skeleton.steps.OTSelfAssessment;
4 import org.telscenter.pas.steps.JaxbQtiSelfAssessment;
5
6
7 /***
8 * Controller for self assessment steps
9 *
10 * @author aperritano
11 *
12 */
13 public class OTSelfAssessmentController extends OTAssessmentController {
14
15 public static Class[] realObjectClasses = { JaxbQtiSelfAssessment.class };
16 public static Class otObjectClass = OTSelfAssessment.class;
17
18
19
20 public void loadRealObject(Object realObject) {
21 super.loadRealObject(realObject);
22
23 JaxbQtiSelfAssessment studentAssess = (JaxbQtiSelfAssessment) realObject;
24 OTSelfAssessment otStudentAssess = (OTSelfAssessment) otObject;
25
26
27 studentAssess.setIntroductionHtml(otStudentAssess.getIntroductionHtml());
28 }
29
30 public void registerRealObject(Object realObject) {
31 }
32
33 /***
34 * Saves the real object
35 */
36 public void saveRealObject(Object realObject) {
37 super.saveRealObject(realObject);
38
39 JaxbQtiSelfAssessment studentAssess = (JaxbQtiSelfAssessment) realObject;
40
41 OTSelfAssessment otStudentAssess = (OTSelfAssessment)otObject;
42
43 otStudentAssess.setIntroductionHtml(studentAssess.getIntroductionHtml());
44 }
45
46 }