Package com.evolveum.midpoint.wf.util
Class QueryUtils
- java.lang.Object
-
- com.evolveum.midpoint.wf.util.QueryUtils
-
public class QueryUtils extends Object
TODO move to more appropriate place (common for both wf and certifications)- Author:
- mederly
-
-
Constructor Summary
Constructors Constructor Description QueryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static S_AtomicFilterExit
filterForAssignees(S_FilterEntryOrEmpty q, MidPointPrincipal principal, QName limitationItemName, RelationRegistry relationRegistry)
Augments work item query by including filter to see only work items assigned to the current user or any of his delegators, providing that the limitation(s) allow it.static S_AtomicFilterExit
filterForCasesOverUser(S_FilterEntryOrEmpty q, String userOid)
static S_FilterExit
filterForClaimableItems(S_FilterEntryOrEmpty q, String userOid, RepositoryService repositoryService, RelationRegistry relationRegistry, OperationResult result)
static S_AtomicFilterExit
filterForMyRequests(S_FilterEntryOrEmpty q, String principalUserOid)
static S_AtomicFilterExit
filterForNotClosedStateAndAssignees(S_FilterEntryOrEmpty q, MidPointPrincipal principal, QName limitationItemName, RelationRegistry relationRegistry)
-
-
-
Method Detail
-
filterForAssignees
public static S_AtomicFilterExit filterForAssignees(S_FilterEntryOrEmpty q, MidPointPrincipal principal, QName limitationItemName, RelationRegistry relationRegistry)
Augments work item query by including filter to see only work items assigned to the current user or any of his delegators, providing that the limitation(s) allow it. Note that work item limitations are supported only in the current (crude) form: all or none.
-
filterForNotClosedStateAndAssignees
public static S_AtomicFilterExit filterForNotClosedStateAndAssignees(S_FilterEntryOrEmpty q, MidPointPrincipal principal, QName limitationItemName, RelationRegistry relationRegistry)
-
filterForClaimableItems
public static S_FilterExit filterForClaimableItems(S_FilterEntryOrEmpty q, String userOid, RepositoryService repositoryService, RelationRegistry relationRegistry, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
filterForMyRequests
public static S_AtomicFilterExit filterForMyRequests(S_FilterEntryOrEmpty q, String principalUserOid)
-
filterForCasesOverUser
public static S_AtomicFilterExit filterForCasesOverUser(S_FilterEntryOrEmpty q, String userOid)
-
-