public class Filter
extends java.lang.Object
TaskManager.getTasks(Filter, int, int)
Constructor and Description |
---|
Filter()
Construct an empty Filter
|
Filter(java.lang.String... taskTypes)
Construct a Filter object with null conditions and the specified taskTypes
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(Condition... condition)
Set the List of Condition objects associated with this filter.
|
java.util.Iterator<Condition> |
getConditions()
Returns a List of Condition objects associated with this filter.
|
java.lang.String |
getParentTaskId()
Return the parent task Id specified for this filter.
|
java.lang.String[] |
getTaskTypes()
Gets the task type names associated with this filter
|
boolean |
isReturnFlatStructure()
indicates if the tasks will be returned in a flattened format
|
boolean |
isReturnTaskStructure()
indicates if task structure is being returned
|
void |
setParentTaskId(java.lang.String parentTaskId)
Specify the parent task Id for this filter.
|
void |
setReturnFlatStructure(boolean returnFlatStructure)
If true the search will recurse the subtasks to return all tasks matching this filter, false will only check the level specified by the parentTaskid.
|
void |
setReturnTaskStructure(boolean returnTaskStructure)
if true child tasks are returned as a structure under a parent task
Consider only using #setReturnFlatStructure(true) or #setReturnTaskStructure(true), not both
|
void |
setTaskTypes(java.lang.String... taskTypes)
Sets the taskTypes to be returned by a query
|
public Filter()
public Filter(java.lang.String... taskTypes)
taskTypes
- the taskTypes for this filterpublic void setTaskTypes(java.lang.String... taskTypes)
taskTypes
- task type names specified for this filterpublic java.lang.String[] getTaskTypes()
public void addCondition(Condition... condition)
condition
- conditions to add to this filterpublic java.util.Iterator<Condition> getConditions()
public void setParentTaskId(java.lang.String parentTaskId)
parentTaskId
- the id of the task at which we want to start searching for tasks.public java.lang.String getParentTaskId()
public void setReturnFlatStructure(boolean returnFlatStructure)
returnFlatStructure
- indicates to return all tasks regardless of where they fall in the structurepublic boolean isReturnFlatStructure()
public void setReturnTaskStructure(boolean returnTaskStructure)
returnTaskStructure
- indicates to return tasks in their parent/child structurepublic boolean isReturnTaskStructure()
Copyright © 2010 - 2023 Adobe. All Rights Reserved