KickJava   Java API By Example, From Geeks To Geeks.

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


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.POA JavaDoc;
8 import org.omg.PortableServer.POAHelper JavaDoc;
9 import org.enhydra.shark.corba.poa.Collective;
10 import org.enhydra.shark.corba.poa.SharkCORBAUtilities;
11 import org.enhydra.shark.corba.poa.WfActivityCORBA;
12
13 /**
14  * WfEventAuditImpl - Workflow Event Audit implementation
15  */

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