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 ObjectQueryaddFilter(ObjectQuery query, ObjectFilter additionalFilter) static ObjectQuerycreateQueryForOpenWorkItems(ObjectQuery baseWorkItemsQuery, MidPointPrincipal principal, boolean notDecidedOnly) static S_FilterExitfilterForAssignees(@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_FilterExitfilterForCaseAssignees(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type), for case management work items.static S_FilterExitfilterForCasesOverObject(S_FilterEntryOrEmpty q, String objectOid) static S_FilterExitfilterForCertificationAssignees(@NotNull S_FilterEntryOrEmpty q, @Nullable MidPointPrincipal principal) The call tofilterForAssignees(S_FilterEntryOrEmpty, MidPointPrincipal, OtherPrivilegesLimitations.Type), for access certification work items.static S_FilterExitfilterForClaimableItems(S_FilterEntryOrEmpty q, String userOid, RepositoryService repositoryService, RelationRegistry relationRegistry, OperationResult result) static S_FilterExitfilterForMyRequests(S_FilterEntryOrEmpty q, String principalUserOid) static S_FilterExitfilterForNotClosedStateAndAssignees(@NotNull S_FilterEntryOrEmpty q, @Nullable 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
-
filterForMyRequests
-
filterForCasesOverObject
-
addFilter
-
createQueryForOpenWorkItems
public static ObjectQuery createQueryForOpenWorkItems(ObjectQuery baseWorkItemsQuery, MidPointPrincipal principal, boolean notDecidedOnly)
-