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 ; 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 24 public interface ObjectFactory { 25 26 WfProcessMgrInternal createProcessMgr ( 28 SharkTransaction t, 29 String packageId, 30 String procDefId, 31 String version) throws BaseException; 32 33 WfProcessMgrInternal createProcessMgr (ProcessMgrPersistenceInterface po) throws BaseException; 34 35 WfProcessMgr createProcessMgrWrapper ( 36 String userAuth, 37 String name) throws BaseException; 38 39 WfProcessInternal createProcess ( 40 SharkTransaction t, 41 WfProcessMgrInternal manager, 42 WfRequesterInternal requester, 43 String key) throws BaseException; 44 45 WfProcessInternal createProcess (ProcessPersistenceInterface po) throws BaseException; 46 47 WfProcess createProcessWrapper ( 48 String userAuth, 49 String mgrName, 50 String procId); 51 52 WfRequesterInternal createDefaultRequester (String resUsername,WfRequester extRequester); 53 54 WfRequester createRequesterWrapper ( 55 String userAuth, 56 String resUsername); 57 58 WfActivityInternal createActivity ( 59 SharkTransaction t, 60 WfProcessInternal process, 61 String key, 62 String activitySetDefId, 63 String activityDefId, 64 WfActivityInternal blockActivity) throws BaseException; 65 66 WfActivityInternal createActivity (ActivityPersistenceInterface po,WfProcessInternal process) throws BaseException; 67 68 WfActivity createActivityWrapper ( 69 String userAuth, 70 String mgrName, 71 String procId, 72 String 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 userAuth, 85 String mgrName, 86 String procId, 87 String actId, 88 String username); 89 90 WfResourceInternal createResource ( 91 SharkTransaction t, 92 String resourceKey) throws BaseException; 93 94 WfResourceInternal createResource (ResourcePersistenceInterface po) throws BaseException; 95 96 WfResource createResourceWrapper ( 97 String userAuth, 98 String username); 99 100 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 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 userAuth, 119 CreateProcessEventAuditPersistenceInterface po) throws BaseException; 120 121 WfDataEventAuditInternal createDataEventAuditWrapper ( 122 SharkTransaction t, 123 WfExecutionObjectInternal object, 124 String eventType, 125 Map oldData, 126 Map newData) throws BaseException; 127 128 WfDataEventAuditInternal createDataEventAuditWrapper ( 129 String userAuth, 130 DataEventAuditPersistenceInterface po) throws BaseException; 131 132 WfStateEventAuditInternal createStateEventAuditWrapper ( 133 SharkTransaction t, 134 WfExecutionObjectInternal object, 135 String eventType, 136 String oldState, 137 String newState) throws BaseException; 138 139 WfStateEventAuditInternal createStateEventAuditWrapper ( 140 String userAuth, 141 StateEventAuditPersistenceInterface po) throws BaseException; 142 143 WfProcessMgrIterator createProcessMgrIteratorWrapper ( 145 SharkTransaction t, 146 String userAuth) throws BaseException; 147 148 WfProcessIterator createProcessIteratorWrapper ( 149 SharkTransaction t, 150 String userAuth, 151 String mgrName) throws BaseException; 152 153 WfProcessIterator createProcessIteratorWrapper ( 154 SharkTransaction t, 155 String userAuth, 156 String procId, 157 String actId) throws BaseException; 158 159 WfProcessIterator createProcessIteratorWrapper ( 160 SharkTransaction t, 161 String userAuth, 162 String username, 163 boolean ext) throws BaseException; 164 165 WfActivityIterator createActivityIteratorWrapper ( 166 SharkTransaction t, 167 String userAuth, 168 String procId) throws BaseException; 169 170 WfAssignmentIterator createAssignmentIteratorWrapper ( 171 SharkTransaction t, 172 String userAuth, 173 String procId, 174 String actId) throws BaseException; 175 176 WfAssignmentIterator createAssignmentIteratorWrapper ( 177 SharkTransaction t, 178 String userAuth, 179 String username) throws BaseException; 180 181 WfResourceIterator createResourceIteratorWrapper ( 182 SharkTransaction t, 183 String userAuth) throws BaseException; 184 185 WfEventAuditIterator createEventAuditIteratorWrapper ( 186 SharkTransaction t, 187 String userAuth, 188 String procId) throws BaseException; 189 190 WfEventAuditIterator createEventAuditIteratorWrapper ( 191 SharkTransaction t, 192 String userAuth, 193 String procId, 194 String 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 |