|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.workplace.wcm.api.query.WorkflowSelectors
public abstract class WorkflowSelectors
WorkflowSelectors is a helper class to create workflow related Selector.
| Nested Class Summary | |
|---|---|
protected static interface |
WorkflowSelectors.Factory
Factory interface, used for internal implementation |
static class |
WorkflowSelectors.Status
Workflow status |
| Field Summary |
|---|
| Fields inherited from interface com.ibm.workplace.wcm.api.query.Selector |
|---|
NULL_SELECTOR |
| Constructor Summary | |
|---|---|
WorkflowSelectors()
|
|
| Method Summary | |
|---|---|
static Selector |
approversContains(java.util.Collection<java.lang.String> approvers)
Deprecated. Since 8.5
WARNING! This selector does not work. Due to a data model change, they query mechanism
is no longer applicable. Similar functionality can be achieved using a different API.
However, the APPROVER role has been replaced by two more specific roles (Draft Creator and Reviewer)
e.g. |
static Selector |
approversContains(java.lang.String... approvers)
Deprecated. Since 8.5
WARNING! This selector does not work. Due to a data model change, they query mechanism
is no longer applicable. Similar functionality can be achieved using a different API.
However, the APPROVER role has been replaced by two more specific roles (Draft Creator and Reviewer)
e.g. |
static Selector |
expireAfter(java.util.Date expireDate,
boolean includeBoundary)
Returns a selector representing 'after' a specified workflow expire date. |
static Selector |
expireBefore(java.util.Date expireDate,
boolean includeBoundary)
Returns a selector representing 'before' a specified workflow expire date. |
static Selector |
generalDateOneAfter(java.util.Date general1Date,
boolean includeBoundary)
Returns a selector representing 'after' a specified workflow general date one. |
static Selector |
generalDateOneBefore(java.util.Date general1Date,
boolean includeBoundary)
Returns a selector representing 'before' a specified workflow general date one. |
static Selector |
generalDateTwoAfter(java.util.Date general2Date,
boolean includeBoundary)
Returns a selector representing 'after' a specified workflow general date two. |
static Selector |
generalDateTwoBefore(java.util.Date general2Date,
boolean includeBoundary)
Returns a selector representing 'before' a specified workflow general date two. |
static Selector |
publishAfter(java.util.Date publishDate,
boolean includeBoundary)
Returns a selector representing 'after' a specified workflow publish date. |
static Selector |
publishBefore(java.util.Date publishDate,
boolean includeBoundary)
Returns a selector representing 'before' a specified workflow publish date. |
static Selector |
stageEquals(Identity stage)
Returns a selector representing workflow stage 'equals'. |
static Selector |
stageIn(java.util.Collection<? extends Identity> stages)
Returns a selector representing workflow stage 'in'. |
static Selector |
statusEquals(WorkflowSelectors.Status status)
Returns a selector representing workflow status 'equals' |
static Selector |
statusIn(java.util.Collection<WorkflowSelectors.Status> status)
Returns a selector representing workflow status 'in' |
static Selector |
statusIn(java.util.Collection<WorkflowSelectors.Status> status,
Identity<?> projectScope)
Returns a selector representing workflow status 'in' and project scope |
static Selector |
statusIn(WorkflowSelectors.Status... status)
Returns a selector representing workflow status 'in' |
static Selector |
workflowEquals(Identity workflow)
Returns a selector representing workflow 'equals'. |
static Selector |
workflowIn(java.util.Collection<? extends Identity> workflows)
Returns a selector representing workflow 'in'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.workplace.wcm.api.query.QueryElement |
|---|
getElements, hasElements |
| Constructor Detail |
|---|
public WorkflowSelectors()
| Method Detail |
|---|
public static Selector workflowEquals(Identity workflow)
workflow - workflow id
public static Selector workflowIn(java.util.Collection<? extends Identity> workflows)
workflows - a set of workflow id
public static Selector stageEquals(Identity stage)
stage - a workflow stage id
public static Selector stageIn(java.util.Collection<? extends Identity> stages)
stages - a set of workflow stage id
public static Selector publishAfter(java.util.Date publishDate,
boolean includeBoundary)
publishDate - publish dateincludeBoundary - is boundary included
public static Selector publishBefore(java.util.Date publishDate,
boolean includeBoundary)
publishDate - publish dateincludeBoundary - is boundary included
public static Selector generalDateOneAfter(java.util.Date general1Date,
boolean includeBoundary)
general1Date - general date oneincludeBoundary - is boundary included
public static Selector generalDateOneBefore(java.util.Date general1Date,
boolean includeBoundary)
general1Date - general date oneincludeBoundary - is boundary included
public static Selector generalDateTwoAfter(java.util.Date general2Date,
boolean includeBoundary)
general2Date - general date twoincludeBoundary - is boundary included
public static Selector generalDateTwoBefore(java.util.Date general2Date,
boolean includeBoundary)
general2Date - general date twoincludeBoundary - is boundary included
public static Selector expireAfter(java.util.Date expireDate,
boolean includeBoundary)
expireDate - expire dateincludeBoundary - is boundary included
public static Selector expireBefore(java.util.Date expireDate,
boolean includeBoundary)
expireDate - expire dateincludeBoundary - is boundary included
public static Selector statusEquals(WorkflowSelectors.Status status)
status - workflow status
public static Selector statusIn(java.util.Collection<WorkflowSelectors.Status> status)
status - a set of workflow status
public static Selector statusIn(java.util.Collection<WorkflowSelectors.Status> status,
Identity<?> projectScope)
status - a set of workflow status
public static Selector statusIn(WorkflowSelectors.Status... status)
status - a set of workflow status
public static Selector approversContains(java.lang.String... approvers)
WARNING! This selector does not work. Due to a data model change, they query mechanism
is no longer applicable. Similar functionality can be achieved using a different API.
However, the APPROVER role has been replaced by two more specific roles (Draft Creator and Reviewer)
e.g.
QueryService service = getQueryService();
Query q = service.createQuery();
AccessFilter filter = service.createAccessFilter(Access.REVIEWER, FilterOperation.ANY_USER, getUsers());
q.setAccessFilter(filter);
approvers -
QueryService.createAccessFilter(Access, FilterOperation, String...),
Query.setAccessFilter(AccessFilter)public static Selector approversContains(java.util.Collection<java.lang.String> approvers)
WARNING! This selector does not work. Due to a data model change, they query mechanism
is no longer applicable. Similar functionality can be achieved using a different API.
However, the APPROVER role has been replaced by two more specific roles (Draft Creator and Reviewer)
e.g.
QueryService service = getQueryService();
Query q = service.createQuery();
AccessFilter filter = service.createAccessFilter(Access.REVIEWER, FilterOperation.ANY_USER, getUsers());
q.setAccessFilter(filter);
approvers -
QueryService.createAccessFilter(Access, FilterOperation, String...),
Query.setAccessFilter(AccessFilter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||