Added interface SecurityCallback which is called by a ServiceLoader at runtime to trigger pdp evaluations.

This commit is contained in:
Achim D. Brucker 2015-05-30 21:34:39 +02:00
parent bf758690bb
commit 2faca24e7a
1 changed files with 10 additions and 1 deletions

View File

@ -32,7 +32,16 @@ public class QueuedListQuery extends AbstractTaskListQuery {
@Override
protected TaskQuery getQuery() {
return taskService.createTaskQuery().taskCandidateGroup(groupId).taskUnnassigned().orderByTaskId().asc();
return taskService.createTaskQuery().taskCandidateGroup(groupId).taskUnnassigned().orderByTaskId().asc();
}
//<SecureBPMN>
public static interface SecurityCallback {
boolean securityCheck(String taskId, String userId);
boolean delegationCheck(String taskId, String userId);
String delegationTypeCheck(String taskId, String userId);
boolean negotiableCheck(String taskId, String userId);
}
//</SecureBPMN>
}