1 package org.enhydra.shark.api.internal.security; 2 3 import org.enhydra.shark.api.SharkTransaction; 4 import org.enhydra.shark.api.RootException; 5 import org.enhydra.shark.api.internal.working.CallbackUtilities; 6 7 import java.util.List ; 8 9 14 public interface SecurityManager { 15 16 void configure (CallbackUtilities cus) throws RootException; 17 18 List getAssignments ( 19 SharkTransaction t, 20 String engineName, 21 String procId, 22 String actId, 23 List userIds) throws RootException; 24 25 void check_processmgr_how_many_process (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 27 28 void check_processmgr_get_iterator_process (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 29 30 void check_processmgr_get_sequence_process (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 31 32 void check_processmgr_is_member_of_process (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 33 34 void check_processmgr_process_mgr_state (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 35 36 void check_processmgr_set_process_mgr_state (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 37 38 void check_processmgr_name (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 39 40 void check_processmgr_description (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 41 42 void check_processmgr_category (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 43 44 void check_processmgr_version (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 45 46 void check_processmgr_context_signature (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 47 48 void check_processmgr_result_signature (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 49 50 void check_processmgr_create_process (SharkTransaction t,String name,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 51 52 53 55 void check_process_workflow_state (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 57 58 void check_process_while_open (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 59 60 void check_process_why_not_running (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 61 62 void check_process_how_closed (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 63 64 void check_process_valid_states (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 65 66 void check_process_state (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 67 68 void check_process_change_state (SharkTransaction t,String procId,String userId,String procCreator,String curState,String new_state) throws SecurityException ; 69 70 void check_process_name (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 71 72 void check_process_set_name (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 73 74 void check_process_key (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 75 76 void check_process_description (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 77 78 void check_process_set_description (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 79 80 void check_process_process_context (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 81 82 void check_process_set_process_context (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 83 84 void check_process_priority (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 85 86 void check_process_set_priority (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 87 88 void check_process_resume (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 89 90 void check_process_suspend (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 91 92 void check_process_terminate (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 93 94 void check_process_abort (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 95 96 void check_process_how_many_history (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 97 98 void check_process_get_iterator_history (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 99 100 void check_process_get_sequence_history (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 101 102 void check_process_is_member_of_history (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 103 104 void check_process_last_state_time (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 105 106 void check_process_requester (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 108 109 void check_process_set_requester (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 110 111 void check_process_how_many_step (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 112 113 void check_process_get_iterator_step (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 114 115 void check_process_get_sequence_step (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 116 117 void check_process_is_member_of_step (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 118 119 void check_process_manager (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 120 121 void check_process_result (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 122 123 void check_process_start (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 124 125 void check_process_get_activities_in_state (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 126 127 128 130 void check_activity_workflow_state (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 132 133 void check_activity_while_open (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 134 135 void check_activity_why_not_running (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 136 137 void check_activity_how_closed (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 138 139 void check_activity_valid_states (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 140 141 void check_activity_state (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 142 143 void check_activity_change_state (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners,String curState,String new_state) throws SecurityException ; 144 145 void check_activity_name (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 146 147 void check_activity_set_name (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 148 149 void check_activity_key (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 150 151 void check_activity_description (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 152 153 void check_activity_set_description (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 154 155 void check_activity_process_context (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 156 157 void check_activity_set_process_context (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 158 159 void check_activity_priority (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 160 161 void check_activity_set_priority (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 162 163 void check_activity_resume (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 164 165 void check_activity_suspend (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 166 167 void check_activity_terminate (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 168 169 void check_activity_abort (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 170 171 void check_activity_how_many_history (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 172 173 void check_activity_get_iterator_history (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 174 175 void check_activity_get_sequence_history (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 176 177 void check_activity_is_member_of_history (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 178 179 void check_activity_last_state_time (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 180 181 void check_activity_how_many_performer(SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 183 184 void check_activity_get_iterator_performer(SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 185 186 void check_activity_get_sequence_performer(SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 187 188 void check_activity_is_member_of_performer(SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 189 190 void check_activity_receive_event(SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 191 192 void check_activity_how_many_assignment (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 194 195 void check_activity_get_iterator_assignment (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 196 197 void check_activity_get_sequence_assignment (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 198 199 void check_activity_is_member_of_assignment (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 200 201 void check_activity_container (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 202 203 void check_activity_result (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 204 205 void check_activity_set_result (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 206 207 void check_activity_complete (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 208 209 void check_assignment_activity (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 211 212 void check_assignment_assignee (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 213 214 void check_assignment_set_assignee (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 215 216 void check_assignment_set_accepted_status (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 217 218 void check_assignment_get_accepted_status (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 219 220 221 void check_resource_how_many_work_item (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 223 224 void check_resource_get_iterator_work_item (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 225 226 void check_resource_get_sequence_work_item (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 227 228 void check_resource_is_member_of_work_items (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 229 230 void check_resource_resource_key (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 231 232 void check_resource_resource_name (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 233 234 void check_resource_release (SharkTransaction t,String resourceId,String userId) throws SecurityException ; 235 236 void check_requester_how_many_performer (SharkTransaction t,String requesterResourceUsername,String userId) throws SecurityException ; 238 239 void check_requester_get_iterator_performer (SharkTransaction t,String requesterResourceUsername,String userId) throws SecurityException ; 240 241 void check_requester_get_sequence_performer (SharkTransaction t,String requesterResourceUsername,String userId) throws SecurityException ; 242 243 void check_requester_is_member_of_performer (SharkTransaction t,String requesterResourceUsername,String userId) throws SecurityException ; 244 245 void check_requester_receive_event (SharkTransaction t,String requesterResourceUsername,String userId) throws SecurityException ; 246 247 248 void check_sharkconnection_connect (SharkTransaction t,String userId) throws SecurityException ; 250 251 void check_sharkconnection_getResourceObject (SharkTransaction t,String userId) throws SecurityException ; 252 253 void check_sharkconnection_createProcess (SharkTransaction t,String pmgrname,String userId,String pkgId,String version,String pDefId) throws SecurityException ; 254 255 void check_executionadministration_connect (SharkTransaction t,String userId) throws SecurityException ; 257 258 void check_executionadministration_get_iterator_processmgr (SharkTransaction t,String userId) throws SecurityException ; 259 260 void check_executionadministration_get_sequence_processmgr (SharkTransaction t,String userId) throws SecurityException ; 261 262 void check_executionadministration_getLoggedUsers (SharkTransaction t,String userId) throws SecurityException ; 263 264 void check_executionadministration_get_iterator_resource (SharkTransaction t,String userId) throws SecurityException ; 265 266 void check_executionadministration_get_sequence_resource (SharkTransaction t,String userId) throws SecurityException ; 267 268 void check_executionadministration_startActivity (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 269 270 void check_executionadministration_getProcessMgr (SharkTransaction t,String userId,String name) throws SecurityException ; 271 272 void check_executionadministration_getResource (SharkTransaction t,String username,String userId) throws SecurityException ; 273 274 void check_executionadministration_getProcess (SharkTransaction t,String procId,String userId,String procCreator) throws SecurityException ; 275 276 void check_executionadministration_getActivity (SharkTransaction t,String procId,String actId,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 277 278 void check_executionadministration_getAssignment (SharkTransaction t,String procId,String actId,String username,String userId,String procCreator,String ownerId,List possibleOwners) throws SecurityException ; 279 280 void check_executionadministration_getAssignment (SharkTransaction t,String procId,String assId,String userId,String procCreator) throws SecurityException ; 281 282 void check_executionadministration_reevaluateAssignments (SharkTransaction t,String userId) throws SecurityException ; 283 284 void check_executionadministration_deleteClosedProcesses (SharkTransaction t,String userId) throws SecurityException ; 285 286 void check_deadlines (SharkTransaction t,String userId) throws SecurityException ; 288 289 } 290 | Popular Tags |