KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corba > WfDataEventAuditCORBA


1 package org.enhydra.shark.corba;
2
3 import org.omg.TimeBase.*;
4 import org.omg.WfBase.*;
5 import org.omg.WorkflowModel.*;
6
7 /**
8  * WfDataEventAuditImpl - Workflow Event Audit implementation
9  */

10 public class WfDataEventAuditCORBA extends _WfDataEventAuditImplBase {
11
12    private org.enhydra.shark.api.client.wfmodel.WfDataEventAudit ea;
13
14    private Collective __collective;
15
16    protected WfDataEventAuditCORBA(Collective toJoin,
17                                    org.enhydra.shark.api.client.wfmodel.WfDataEventAudit ea) {
18       __collective = toJoin;
19       toJoin.__recruit(this);
20       this.ea = ea;
21    }
22
23    public WfExecutionObject source() throws BaseException, SourceNotAvailable {
24       try {
25          if (ea.source() instanceof org.enhydra.shark.api.client.wfmodel.WfProcess) {
26             return new WfProcessCORBA(__collective,
27                                       (org.enhydra.shark.api.client.wfmodel.WfProcess) ea.source());
28          } else {
29             return new WfActivityCORBA(__collective,
30                                        (org.enhydra.shark.api.client.wfmodel.WfActivity) ea.source());
31          }
32       } catch (org.enhydra.shark.api.client.wfmodel.SourceNotAvailable sna) {
33          throw new SourceNotAvailable();
34       } catch (Exception JavaDoc ex) {
35          throw new BaseException();
36       }
37    }
38
39    public UtcT time_stamp() throws BaseException {
40       try {
41          org.enhydra.shark.api.client.timebase.UtcT t = ea.time_stamp();
42          return new UtcT(t.time, t.inacclo, t.inacchi, t.tdf);
43       } catch (Exception JavaDoc ex) {
44          throw new BaseException();
45       }
46    }
47
48    public String JavaDoc event_type() throws BaseException {
49       try {
50          return ea.event_type();
51       } catch (Exception JavaDoc ex) {
52          throw new BaseException();
53       }
54    }
55
56    public String JavaDoc activity_key() throws BaseException {
57       try {
58          return ea.activity_key();
59       } catch (Exception JavaDoc ex) {
60          throw new BaseException();
61       }
62    }
63
64    public String JavaDoc activity_name() throws BaseException {
65       try {
66          return ea.activity_name();
67       } catch (Exception JavaDoc ex) {
68          throw new BaseException();
69       }
70    }
71
72    public String JavaDoc process_key() throws BaseException {
73       try {
74          return ea.process_key();
75       } catch (Exception JavaDoc ex) {
76          throw new BaseException();
77       }
78    }
79
80    public String JavaDoc process_name() throws BaseException {
81       try {
82          return ea.process_name();
83       } catch (Exception JavaDoc ex) {
84          throw new BaseException();
85       }
86    }
87
88    public String JavaDoc process_mgr_name() throws BaseException {
89       try {
90          return ea.process_mgr_name();
91       } catch (Exception JavaDoc ex) {
92          throw new BaseException();
93       }
94    }
95
96    public String JavaDoc process_mgr_version() throws BaseException {
97       try {
98          return ea.process_mgr_version();
99       } catch (Exception JavaDoc ex) {
100          throw new BaseException();
101       }
102    }
103
104    public NameValue[] old_data() throws BaseException {
105       try {
106          return SharkCORBAUtilities.makeCORBANameValueArray(this._orb(),
107                                                             ea.old_data());
108       } catch (Exception JavaDoc ex) {
109          throw new BaseException();
110       }
111    }
112
113    public NameValue[] new_data() throws BaseException {
114       try {
115          return SharkCORBAUtilities.makeCORBANameValueArray(this._orb(),
116                                                             ea.new_data());
117       } catch (Exception JavaDoc ex) {
118          throw new BaseException();
119       }
120    }
121
122 }
Popular Tags