public class WorkflowSearchMO
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ASCENDING_SORT
Constant identifying a low to high sort order.
|
static int |
DESCENDING_SORT
Constant identifying a high to low sort order.
|
| Constructor and Description |
|---|
WorkflowSearchMO(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the the managed object with a platform context and a subject.
|
| Modifier and Type | Method and Description |
|---|---|
WorkflowSearchResultsMO |
execute()
Executes the search using the configured parameters.
|
void |
execute(WorkflowSearchResultsMO results)
Executes the search using the configured parameters.
|
java.util.Locale |
getLocale()
Returns the locale associated with the user.
|
java.lang.String |
getSortAttribute()
Returns the name of the attribute to sort by.
|
int |
getSortOrder()
Returns the sort order for the result set.
|
WorkflowQueryStatement |
getStatement()
Returns the workflow specific query statement being executed.
|
boolean |
isPaging()
Returns true if the result set should be paginated otherwise false.
|
void |
setLocale(java.util.Locale locale)
Sets the locale associated with the user.
|
void |
setPaging(boolean toggle)
Toggles pagination on/off for the request.
|
void |
setSortAttribute(java.lang.String sortAttribute)
Sets the name of the attribute to sort by.
|
void |
setSortOrder(int sortOrder)
Sets the sort order for the result set.
|
void |
setStatement(WorkflowQueryStatement statement)
Sets the workflow specific query statement to execute.
|
public static int ASCENDING_SORT
public static int DESCENDING_SORT
public WorkflowSearchMO(PlatformContext platform, javax.security.auth.Subject subject)
platform - PlatformContext holding platform connection information.subject - Subject representing the authenticated caller.public WorkflowSearchResultsMO execute() throws java.rmi.RemoteException, ApplicationException
WorkflowProcess)
of the search.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to execute the search.
This is most likely caused by an invalid
parameter in the request.public void execute(WorkflowSearchResultsMO results) throws java.rmi.RemoteException, ApplicationException
results - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of WorkflowProcess)
of the search.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to execute the search.
This is most likely caused by an invalid
parameter in the request.public void setLocale(java.util.Locale locale)
locale - The user's Locale.public java.util.Locale getLocale()
public void setStatement(WorkflowQueryStatement statement)
statement - WorkflowQueryStatement defining the query logic to execute.
This parameter should be an instance of ProvisioningQueryStatement.ProvisioningQueryStatementpublic WorkflowQueryStatement getStatement()
public void setSortAttribute(java.lang.String sortAttribute)
sortAttribute - The name of the attribute to sort by.public java.lang.String getSortAttribute()
public void setPaging(boolean toggle)
toggle - true to paginate the result set
false otherwise.public boolean isPaging()
true if the result set should be paginated
false otherwise.public int getSortOrder()
ASCENDING_SORT for ascending sort or
DESCENDING_SORT constant for descending sort.public void setSortOrder(int sortOrder)
ASCENDING_SORT for ascending sort or
DESCENDING_SORT constant for descending sort.sortOrder - result set sort order.