KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class WfStateEventAuditCORBA extends _WfStateEventAuditImplBase {
11    
12    private org.enhydra.shark.api.client.wfmodel.WfStateEventAudit ea;
13
14    private Collective __collective;
15
16    protected WfStateEventAuditCORBA(Collective toJoin,
17                                     org.enhydra.shark.api.client.wfmodel.WfStateEventAudit 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 String JavaDoc old_state() throws BaseException {
105       try {
106          return ea.old_state();
107       } catch (Exception JavaDoc ex) {
108          throw new BaseException();
109       }
110    }
111
112    public String JavaDoc new_state() throws BaseException {
113       try {
114          return ea.new_state();
115       } catch (Exception JavaDoc ex) {
116          throw new BaseException();
117       }
118    }
119
120 }
Popular Tags