Class QueryUtils
java.lang.Object
com.evolveum.midpoint.cases.api.util.QueryUtils
TODO move to more appropriate place (common for both wf and certifications)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectQuery
addFilter
(ObjectQuery query, ObjectFilter additionalFilter) static ObjectQuery
createQueryForOpenWorkItems
(ObjectQuery baseWorkItemsQuery, MidPointPrincipal principal, boolean notDecidedOnly) static ObjectQuery
createQueryForOpenWorkItemsForCampaigns
(List<String> campaignOids, MidPointPrincipal principal, boolean notDecidedOnly) static S_FilterExit
filterForAssignees
(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal, OtherPrivilegesLimitations.Type limitationType) 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
filterForCaseAssignees
(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type)
, for case management work items.static S_FilterExit
filterForCasesOverObject
(S_FilterEntryOrEmpty q, String objectOid) static S_FilterExit
filterForCertificationAssignees
(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type)
, for access certification work items.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
(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal, OtherPrivilegesLimitations.Type limitationType) static List<PrismReferenceValue>
getPotentialAssigneesForUser
(@NotNull MidPointPrincipal principal, OtherPrivilegesLimitations.Type limitationType)
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
filterForCaseAssignees
public static S_FilterExit filterForCaseAssignees(@NotNull @NotNull S_FilterEntryOrEmpty q, @Nullable @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type)
, for case management work items. -
filterForCertificationAssignees
public static S_FilterExit filterForCertificationAssignees(@NotNull @NotNull S_FilterEntryOrEmpty q, @Nullable @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type)
, for access certification work items. -
filterForAssignees
public static S_FilterExit filterForAssignees(@NotNull @NotNull S_FilterEntryOrEmpty q, @Nullable @Nullable MidPointPrincipal principal, @NotNull OtherPrivilegesLimitations.Type limitationType) 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(@NotNull @NotNull S_FilterEntryOrEmpty q, @Nullable @Nullable MidPointPrincipal principal, @NotNull OtherPrivilegesLimitations.Type limitationType) -
filterForClaimableItems
public static S_FilterExit filterForClaimableItems(S_FilterEntryOrEmpty q, String userOid, RepositoryService repositoryService, RelationRegistry relationRegistry, OperationResult result) throws SchemaException - Throws:
SchemaException
-
getPotentialAssigneesForUser
public static List<PrismReferenceValue> getPotentialAssigneesForUser(@NotNull @NotNull MidPointPrincipal principal, @NotNull OtherPrivilegesLimitations.Type limitationType) -
filterForMyRequests
-
filterForCasesOverObject
-
addFilter
-
createQueryForOpenWorkItemsForCampaigns
public static ObjectQuery createQueryForOpenWorkItemsForCampaigns(List<String> campaignOids, MidPointPrincipal principal, boolean notDecidedOnly) -
createQueryForOpenWorkItems
public static ObjectQuery createQueryForOpenWorkItems(ObjectQuery baseWorkItemsQuery, MidPointPrincipal principal, boolean notDecidedOnly)
-