Class QueryUtils
- java.lang.Object
-
- com.evolveum.midpoint.cases.api.util.QueryUtils
-
public class QueryUtils extends Object
TODO move to more appropriate place (common for both wf and certifications)
-
-
Constructor Summary
Constructors Constructor Description QueryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static S_FilterExit
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_FilterExit
filterForCasesOverObject(S_FilterEntryOrEmpty q, String objectOid)
static S_FilterExit
filterForClaimableItems(S_FilterEntryOrEmpty q, String userOid, RepositoryService repositoryService, RelationRegistry relationRegistry, OperationResult result)
static S_FilterExit
filterForMyRequests(S_FilterEntryOrEmpty q, String principalUserOid)
static S_FilterExit
filterForNotClosedStateAndAssignees(S_FilterEntryOrEmpty q, MidPointPrincipal principal, QName limitationItemName, RelationRegistry relationRegistry)
-
-
-
Method Detail
-
filterForAssignees
public static S_FilterExit 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_FilterExit 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_FilterExit filterForMyRequests(S_FilterEntryOrEmpty q, String principalUserOid)
-
filterForCasesOverObject
public static S_FilterExit filterForCasesOverObject(S_FilterEntryOrEmpty q, String objectOid)
-
-