KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > working > ObjectFactory


1 package org.enhydra.shark.api.internal.working;
2
3 import org.enhydra.shark.api.client.wfmodel.*;
4 import org.enhydra.shark.api.client.wfservice.*;
5
6 import java.util.Map JavaDoc;
7 import org.enhydra.shark.api.SharkTransaction;
8 import org.enhydra.shark.api.client.wfbase.BaseException;
9 import org.enhydra.shark.api.internal.eventaudit.AssignmentEventAuditPersistenceInterface;
10 import org.enhydra.shark.api.internal.eventaudit.CreateProcessEventAuditPersistenceInterface;
11 import org.enhydra.shark.api.internal.eventaudit.DataEventAuditPersistenceInterface;
12 import org.enhydra.shark.api.internal.eventaudit.StateEventAuditPersistenceInterface;
13 import org.enhydra.shark.api.internal.instancepersistence.ActivityPersistenceInterface;
14 import org.enhydra.shark.api.internal.instancepersistence.AssignmentPersistenceInterface;
15 import org.enhydra.shark.api.internal.instancepersistence.ProcessMgrPersistenceInterface;
16 import org.enhydra.shark.api.internal.instancepersistence.ProcessPersistenceInterface;
17 import org.enhydra.shark.api.internal.instancepersistence.ResourcePersistenceInterface;
18
19 /**
20  * Factory interface for generating Shark core objects.
21  * @author Sasa Bojanic
22  * @version 1.0
23  */

24 public interface ObjectFactory {
25
26    // main objects
27
WfProcessMgrInternal createProcessMgr (
28       SharkTransaction t,
29       String JavaDoc packageId,
30       String JavaDoc procDefId,
31       String JavaDoc version) throws BaseException;
32
33    WfProcessMgrInternal createProcessMgr (ProcessMgrPersistenceInterface po) throws BaseException;
34
35    WfProcessMgr createProcessMgrWrapper (
36       String JavaDoc userAuth,
37       String JavaDoc name) throws BaseException;
38
39    WfProcessInternal createProcess (
40       SharkTransaction t,
41       WfProcessMgrInternal manager,
42       WfRequesterInternal requester,
43       String JavaDoc key) throws BaseException;
44
45    WfProcessInternal createProcess (ProcessPersistenceInterface po) throws BaseException;
46
47    WfProcess createProcessWrapper (
48       String JavaDoc userAuth,
49       String JavaDoc mgrName,
50       String JavaDoc procId);
51
52    WfRequesterInternal createDefaultRequester (String JavaDoc resUsername,WfRequester extRequester);
53
54    WfRequester createRequesterWrapper (
55       String JavaDoc userAuth,
56       String JavaDoc resUsername);
57
58    WfActivityInternal createActivity (
59       SharkTransaction t,
60       WfProcessInternal process,
61       String JavaDoc key,
62       String JavaDoc activitySetDefId,
63       String JavaDoc activityDefId,
64       WfActivityInternal blockActivity) throws BaseException;
65
66    WfActivityInternal createActivity (ActivityPersistenceInterface po,WfProcessInternal process) throws BaseException;
67
68    WfActivity createActivityWrapper (
69       String JavaDoc userAuth,
70       String JavaDoc mgrName,
71       String JavaDoc procId,
72       String JavaDoc actId);
73
74    WfAssignmentInternal createAssignment (
75       SharkTransaction t,
76       WfActivityInternal activity,
77       WfResourceInternal resource) throws BaseException;
78
79    WfAssignmentInternal createAssignment (
80       AssignmentPersistenceInterface po,
81       WfResourceInternal res) throws BaseException;
82
83    WfAssignment createAssignmentWrapper (
84       String JavaDoc userAuth,
85       String JavaDoc mgrName,
86       String JavaDoc procId,
87       String JavaDoc actId,
88       String JavaDoc username);
89
90    WfResourceInternal createResource (
91       SharkTransaction t,
92       String JavaDoc resourceKey) throws BaseException;
93
94    WfResourceInternal createResource (ResourcePersistenceInterface po) throws BaseException;
95
96    WfResource createResourceWrapper (
97       String JavaDoc userAuth,
98       String JavaDoc username);
99
100    // event audits
101
WfAssignmentEventAuditInternal createAssignmentEventAuditWrapper (
102       SharkTransaction t,
103       WfActivityInternal activity,
104       WfResourceInternal oldRes,
105       WfResourceInternal newRes,
106       boolean isAccepted) throws BaseException;
107
108    WfAssignmentEventAuditInternal createAssignmentEventAuditWrapper (
109       String JavaDoc userAuth,
110       AssignmentEventAuditPersistenceInterface po) throws BaseException;
111
112    WfCreateProcessEventAuditInternal createCreateProcessEventAuditWrapper (
113       SharkTransaction t,
114       WfProcessInternal process,
115       WfRequesterInternal requester) throws BaseException;
116
117    WfCreateProcessEventAuditInternal createCreateProcessEventAuditWrapper (
118       String JavaDoc userAuth,
119       CreateProcessEventAuditPersistenceInterface po) throws BaseException;
120
121    WfDataEventAuditInternal createDataEventAuditWrapper (
122       SharkTransaction t,
123       WfExecutionObjectInternal object,
124       String JavaDoc eventType,
125       Map JavaDoc oldData,
126       Map JavaDoc newData) throws BaseException;
127
128    WfDataEventAuditInternal createDataEventAuditWrapper (
129       String JavaDoc userAuth,
130       DataEventAuditPersistenceInterface po) throws BaseException;
131
132    WfStateEventAuditInternal createStateEventAuditWrapper (
133       SharkTransaction t,
134       WfExecutionObjectInternal object,
135       String JavaDoc eventType,
136       String JavaDoc oldState,
137       String JavaDoc newState) throws BaseException;
138
139    WfStateEventAuditInternal createStateEventAuditWrapper (
140       String JavaDoc userAuth,
141       StateEventAuditPersistenceInterface po) throws BaseException;
142
143    // iterators
144
WfProcessMgrIterator createProcessMgrIteratorWrapper (
145       SharkTransaction t,
146       String JavaDoc userAuth) throws BaseException;
147
148    WfProcessIterator createProcessIteratorWrapper (
149       SharkTransaction t,
150       String JavaDoc userAuth,
151       String JavaDoc mgrName) throws BaseException;
152
153    WfProcessIterator createProcessIteratorWrapper (
154       SharkTransaction t,
155       String JavaDoc userAuth,
156       String JavaDoc procId,
157       String JavaDoc actId) throws BaseException;
158
159    WfProcessIterator createProcessIteratorWrapper (
160       SharkTransaction t,
161       String JavaDoc userAuth,
162       String JavaDoc username,
163       boolean ext) throws BaseException;
164
165    WfActivityIterator createActivityIteratorWrapper (
166       SharkTransaction t,
167       String JavaDoc userAuth,
168       String JavaDoc procId) throws BaseException;
169
170    WfAssignmentIterator createAssignmentIteratorWrapper (
171       SharkTransaction t,
172       String JavaDoc userAuth,
173       String JavaDoc procId,
174       String JavaDoc actId) throws BaseException;
175
176    WfAssignmentIterator createAssignmentIteratorWrapper (
177       SharkTransaction t,
178       String JavaDoc userAuth,
179       String JavaDoc username) throws BaseException;
180
181    WfResourceIterator createResourceIteratorWrapper (
182       SharkTransaction t,
183       String JavaDoc userAuth) throws BaseException;
184
185    WfEventAuditIterator createEventAuditIteratorWrapper (
186       SharkTransaction t,
187       String JavaDoc userAuth,
188       String JavaDoc procId) throws BaseException;
189
190    WfEventAuditIterator createEventAuditIteratorWrapper (
191       SharkTransaction t,
192       String JavaDoc userAuth,
193       String JavaDoc procId,
194       String JavaDoc actId) throws BaseException;
195
196    AdminInterface createAdminInterface ();
197
198    AdminMisc createAdminMisc ();
199
200    ApplicationMap createApplicationMap ();
201
202    ExecutionAdministration createExecutionAdministration ();
203
204    ParticipantMappingAdministration createParticipantMappingAdministration();
205
206    ApplicationMappingAdministration createApplicationMappingAdministration();
207
208    ScriptMappingAdministration createScriptMappingAdministration();
209
210    PackageAdministration createPackageAdministration ();
211
212    ParticipantMap createParticipantMap ();
213
214    RepositoryMgr createRepositoryManager ();
215
216    SharkConnection createSharkConnection ();
217
218    UserGroupAdministration createUserGroupAdministration ();
219
220    CacheAdministration createCacheAdministration ();
221
222    DeadlineAdministration createDeadlineAdministration ();
223
224    LimitAdministration createLimitAdministration ();
225
226 }
227
Popular Tags