org.enhydra.shark.api.common
Interface AssignmentFilterBuilder

All Superinterfaces:
FilterBuilder

public interface AssignmentFilterBuilder
extends FilterBuilder

AssignmentIteratorExpressionBuilder

All methods are returning the object itself to allow stacking method calls on the same object.

Version:
0.4
Author:
V.Puskas

Field Summary
 
Fields inherited from interface org.enhydra.shark.api.common.FilterBuilder
ORDER_ASCENDING, ORDER_DESCENDING, SQL_TYPE_ACTIVITY, SQL_TYPE_ASSIGNMENT, SQL_TYPE_EVENT_AUDIT, SQL_TYPE_MANAGER, SQL_TYPE_PROCESS, SQL_TYPE_RESOURCE
 
Method Summary
 WMFilter addActivityDefIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments activity definition id == value of un"
 WMFilter addActivityIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments activity id == value of un"
 WMFilter addActivityPriorityEquals(WMSessionHandle sHandle, int p)
           
 WMFilter addActivityPriorityGreaterThan(WMSessionHandle sHandle, int p)
           
 WMFilter addActivityPriorityLessThan(WMSessionHandle sHandle, int p)
           
 WMFilter addActivitySetDefIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments activity set id == value of un"
 WMFilter addIsAccepted(WMSessionHandle sHandle)
          Appends condition "is assignment accepted"
 WMFilter addPackageIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments package id == value of un"
 WMFilter addPackageVersionEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments package version == value of un"
 WMFilter addProcessDefIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments package definition id == value of un"
 WMFilter addProcessIdEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments process id == value of un"
 WMFilter addProcessPriorityEquals(WMSessionHandle sHandle, int p)
           
 WMFilter addProcessPriorityGreaterThan(WMSessionHandle sHandle, int p)
           
 WMFilter addProcessPriorityLessThan(WMSessionHandle sHandle, int p)
           
 WMFilter addUsernameEquals(WMSessionHandle sHandle, java.lang.String un)
          Appends condition "assignments resource username == value of un"
 WMFilter setOrderByAccepted(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByCreatedTime(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByProcessId(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByUsername(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
           
 
Methods inherited from interface org.enhydra.shark.api.common.FilterBuilder
addBshExpression, and, andForArray, createEmptyFilter, getIteratorEmptyExpression, not, or, orForArray, setLimit, setStartPosition, toIteratorExpression
 

Method Detail

addUsernameEquals

public WMFilter addUsernameEquals(WMSessionHandle sHandle,
                                  java.lang.String un)
                           throws java.lang.Exception
Appends condition "assignments resource username == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addProcessIdEquals

public WMFilter addProcessIdEquals(WMSessionHandle sHandle,
                                   java.lang.String un)
                            throws java.lang.Exception
Appends condition "assignments process id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addProcessPriorityEquals

public WMFilter addProcessPriorityEquals(WMSessionHandle sHandle,
                                         int p)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

addProcessPriorityLessThan

public WMFilter addProcessPriorityLessThan(WMSessionHandle sHandle,
                                           int p)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

addProcessPriorityGreaterThan

public WMFilter addProcessPriorityGreaterThan(WMSessionHandle sHandle,
                                              int p)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

addIsAccepted

public WMFilter addIsAccepted(WMSessionHandle sHandle)
                       throws java.lang.Exception
Appends condition "is assignment accepted"

Returns:
itself
Throws:
java.lang.Exception

addPackageIdEquals

public WMFilter addPackageIdEquals(WMSessionHandle sHandle,
                                   java.lang.String un)
                            throws java.lang.Exception
Appends condition "assignments package id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addPackageVersionEquals

public WMFilter addPackageVersionEquals(WMSessionHandle sHandle,
                                        java.lang.String un)
                                 throws java.lang.Exception
Appends condition "assignments package version == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addProcessDefIdEquals

public WMFilter addProcessDefIdEquals(WMSessionHandle sHandle,
                                      java.lang.String un)
                               throws java.lang.Exception
Appends condition "assignments package definition id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addActivitySetDefIdEquals

public WMFilter addActivitySetDefIdEquals(WMSessionHandle sHandle,
                                          java.lang.String un)
                                   throws java.lang.Exception
Appends condition "assignments activity set id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addActivityDefIdEquals

public WMFilter addActivityDefIdEquals(WMSessionHandle sHandle,
                                       java.lang.String un)
                                throws java.lang.Exception
Appends condition "assignments activity definition id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addActivityIdEquals

public WMFilter addActivityIdEquals(WMSessionHandle sHandle,
                                    java.lang.String un)
                             throws java.lang.Exception
Appends condition "assignments activity id == value of un"

Parameters:
un -
Returns:
itself
Throws:
java.lang.Exception

addActivityPriorityEquals

public WMFilter addActivityPriorityEquals(WMSessionHandle sHandle,
                                          int p)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

addActivityPriorityLessThan

public WMFilter addActivityPriorityLessThan(WMSessionHandle sHandle,
                                            int p)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

addActivityPriorityGreaterThan

public WMFilter addActivityPriorityGreaterThan(WMSessionHandle sHandle,
                                               int p)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

setOrderByUsername

public WMFilter setOrderByUsername(WMSessionHandle sHandle,
                                   WMFilter filter,
                                   boolean ascending)
                            throws java.lang.Exception
Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByProcessId

public WMFilter setOrderByProcessId(WMSessionHandle sHandle,
                                    WMFilter filter,
                                    boolean ascending)
                             throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process id value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByCreatedTime

public WMFilter setOrderByCreatedTime(WMSessionHandle sHandle,
                                      WMFilter filter,
                                      boolean ascending)
                               throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by assignment created time value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByAccepted

public WMFilter setOrderByAccepted(WMSessionHandle sHandle,
                                   WMFilter filter,
                                   boolean ascending)
                            throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by assignment accepted status value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception