KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corba > poa > WfCreateProcessEventAuditCORBA


1 package org.enhydra.shark.corba.poa;
2
3 import org.omg.TimeBase.*;
4 import org.omg.WfBase.*;
5 import org.omg.WorkflowModel.*;
6 import org.omg.CORBA.ORB JavaDoc;
7 import org.omg.PortableServer.POAPackage.ServantAlreadyActive JavaDoc;
8 import org.omg.PortableServer.POAPackage.WrongPolicy JavaDoc;
9 import org.omg.PortableServer.POAPackage.ServantNotActive JavaDoc;
10 import org.omg.PortableServer.POA JavaDoc;
11 import org.omg.PortableServer.POAHelper JavaDoc;
12 import org.enhydra.shark.corba.poa.Collective;
13 import org.enhydra.shark.corba.poa.SharkCORBAUtilities;
14
15 /**
16  * WfCreateProcessEventAuditImpl - Workflow Event Audit implementation
17  */

18 public class WfCreateProcessEventAuditCORBA extends
19                                            WfCreateProcessEventAuditPOA /*implements
20                                            Collective.Member */
{
21    //private SharkCORBAServer myServer;
22

23
24    private org.enhydra.shark.api.client.wfmodel.WfCreateProcessEventAudit ea;
25    private Collective __collective;
26    private ORB JavaDoc orb;
27
28    protected WfCreateProcessEventAuditCORBA(ORB JavaDoc orb, Collective toJoin,
29                                             org.enhydra.shark.api.client.wfmodel.WfCreateProcessEventAudit ea) {
30       __collective = toJoin;
31       this.orb = orb;
32     // toJoin.__recruit(this);
33
this.ea = ea;
34    }
35
36    public WfExecutionObject source() throws BaseException, SourceNotAvailable {
37       try {
38          WfExecutionObject obj = SharkCORBAUtilities.makeWfProcess(new WfProcessCORBA(orb, __collective, (org.enhydra.shark.api.client.wfmodel.WfProcess) ea.source()));
39          __collective.__recruit(obj);
40           return obj;
41       } catch (org.enhydra.shark.api.client.wfmodel.SourceNotAvailable sna) {
42          throw new SourceNotAvailable();
43       } catch (Exception JavaDoc ex) {
44          throw new BaseException();
45       }
46    }
47
48    public UtcT time_stamp() throws BaseException {
49       try {
50          org.enhydra.shark.api.client.timebase.UtcT t = ea.time_stamp();
51          return new UtcT(t.time, t.inacclo, t.inacchi, t.tdf);
52       } catch (Exception JavaDoc ex) {
53          throw new BaseException();
54       }
55    }
56
57    public String JavaDoc event_type() throws BaseException {
58       try {
59          return ea.event_type();
60       } catch (Exception JavaDoc ex) {
61          throw new BaseException();
62       }
63    }
64
65    public String JavaDoc activity_key() throws BaseException {
66       try {
67          return ea.activity_key();
68       } catch (Exception JavaDoc ex) {
69          throw new BaseException();
70       }
71    }
72
73    public String JavaDoc activity_name() throws BaseException {
74       try {
75          return ea.activity_name();
76       } catch (Exception JavaDoc ex) {
77          throw new BaseException();
78       }
79    }
80
81    public String JavaDoc process_key() throws BaseException {
82       try {
83          return ea.process_key();
84       } catch (Exception JavaDoc ex) {
85          throw new BaseException();
86       }
87    }
88
89    public String JavaDoc process_name() throws BaseException {
90       try {
91          return ea.process_name();
92       } catch (Exception JavaDoc ex) {
93          throw new BaseException();
94       }
95    }
96
97    public String JavaDoc process_mgr_name() throws BaseException {
98       try {
99          return ea.process_mgr_name();
100       } catch (Exception JavaDoc ex) {
101          throw new BaseException();
102       }
103    }
104
105    public String JavaDoc process_mgr_version() throws BaseException {
106       try {
107          return ea.process_mgr_version();
108       } catch (Exception JavaDoc ex) {
109          throw new BaseException();
110       }
111    }
112
113    public String JavaDoc p_activity_key() throws BaseException {
114       try {
115          return ea.p_activity_key();
116       } catch (Exception JavaDoc ex) {
117          throw new BaseException();
118       }
119    }
120
121    public String JavaDoc p_process_key() throws BaseException {
122       try {
123          return ea.p_process_key();
124       } catch (Exception JavaDoc ex) {
125          throw new BaseException();
126       }
127    }
128
129    public String JavaDoc p_process_name() throws BaseException {
130       try {
131          return ea.p_process_name();
132       } catch (Exception JavaDoc ex) {
133          throw new BaseException();
134       }
135    }
136
137    public String JavaDoc p_process_mgr_name() throws BaseException {
138       try {
139          return p_process_mgr_name();
140       } catch (Exception JavaDoc ex) {
141          throw new BaseException();
142       }
143    }
144
145    public String JavaDoc p_process_mgr_version() throws BaseException {
146       try {
147          return ea.p_process_mgr_version();
148       } catch (Exception JavaDoc ex) {
149          throw new BaseException();
150       }
151    }
152 }
Popular Tags