com.jamasoftware.contour.ws.v2.domain
Class WsFilter

java.lang.Object
  extended by com.jamasoftware.contour.ws.v2.domain.WsFilter

public class WsFilter
extends java.lang.Object

This object represents a Contour filter. A Filter is a way for you to search for similar information based on the fields within Items and then create a filtered list of those Items. For complex Projects with hundreds or thousands of Items, Filters become a time-saving tool for getting to the most relevant Items you are working on. For example, a common use is to create a Filter for tasks that are assigned to you.

Author:
Dylan

Constructor Summary
WsFilter()
          Creates an empty WsFilter object.
WsFilter(java.lang.String name, java.lang.String query, java.lang.Integer itemTypeId, java.lang.Integer moduleId, WsProject project, WsFilterParameter[] parameters, java.lang.Integer scopeId, java.lang.Integer refId)
          Creates a new WsFilter object with the given values.
 
Method Summary
 java.lang.Long getId()
          Gets the filter's id
 java.lang.Integer getItemTypeId()
          Gets the id of the item type associated with this filter (Can be null).
 java.lang.Integer getModuleId()
          Gets the id of the module associated with this filter (Can be null).
 java.lang.String getName()
          Gets the filter's name.
 WsFilterParameter[] getParameters()
          Gets the filter's parameters.
 WsProject getProject()
          Gets the project associated with this filter.
 java.lang.String getQuery()
          Gets the filter's query.
 java.lang.Integer getRefId()
          Gets the filter's reference id.
 java.lang.Integer getScopeId()
          Gets the filter's scope.
 void setId(java.lang.Long id)
          Sets the filter's id
 void setItemTypeId(java.lang.Integer itemTypeId)
          Sets the id of the item type associated with this filter (Can be null).
 void setModuleId(java.lang.Integer moduleId)
          Sets the id of the module associated with this filter (Can be null).
 void setName(java.lang.String name)
          Sets the filter's name.
 void setParameters(WsFilterParameter[] parameters)
          Sets the filter's parameters.
 void setProject(WsProject project)
          Sets the project associated with this filter.
 void setQuery(java.lang.String query)
          Sets the filter's query.
 void setRefId(java.lang.Integer refId)
           
 void setScopeId(java.lang.Integer scopeId)
          Sets the filter's scope.
 java.lang.String toString()
          Gets a string representation of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsFilter

public WsFilter()
Creates an empty WsFilter object.


WsFilter

public WsFilter(java.lang.String name,
                java.lang.String query,
                java.lang.Integer itemTypeId,
                java.lang.Integer moduleId,
                WsProject project,
                WsFilterParameter[] parameters,
                java.lang.Integer scopeId,
                java.lang.Integer refId)
Creates a new WsFilter object with the given values.

Parameters:
name - name of the filter (can be null)
query - query (can be null)
itemTypeId - id of the item type to search (can be null)
moduleId - id of the module to search (can be null)
project - project to search (can be null)
parameters - parameters of the filter
scopeId - scope of the reference id (can be null)
refId - reference id (can be null)
Method Detail

getId

public java.lang.Long getId()
Gets the filter's id

Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the filter's id

Parameters:
id - the id to set

getName

public java.lang.String getName()
Gets the filter's name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the filter's name.

Parameters:
name - the name to set

getQuery

public java.lang.String getQuery()
Gets the filter's query.

Returns:
the query

setQuery

public void setQuery(java.lang.String query)
Sets the filter's query.

Parameters:
query - the query to set

getItemTypeId

public java.lang.Integer getItemTypeId()
Gets the id of the item type associated with this filter (Can be null).

Returns:
the itemTypeId

setItemTypeId

public void setItemTypeId(java.lang.Integer itemTypeId)
Sets the id of the item type associated with this filter (Can be null).

Parameters:
itemTypeId - the itemTypeId to set

getModuleId

public java.lang.Integer getModuleId()
Gets the id of the module associated with this filter (Can be null).

Returns:
the moduleId

setModuleId

public void setModuleId(java.lang.Integer moduleId)
Sets the id of the module associated with this filter (Can be null).

Parameters:
moduleId - the moduleId to set

getProject

public WsProject getProject()
Gets the project associated with this filter.

Returns:
the project

setProject

public void setProject(WsProject project)
Sets the project associated with this filter.

Parameters:
project - the project to set

getParameters

public WsFilterParameter[] getParameters()
Gets the filter's parameters.

Returns:
the parameters
See Also:
WsFilterParameter

setParameters

public void setParameters(WsFilterParameter[] parameters)
Sets the filter's parameters.

Parameters:
parameters - the parameters to set
See Also:
WsFilterParameter

getScopeId

public java.lang.Integer getScopeId()
Gets the filter's scope.

Returns:
the baseline's scope
See Also:
WsScope

setScopeId

public void setScopeId(java.lang.Integer scopeId)
Sets the filter's scope.

Parameters:
scopeId - the baseline's scope

getRefId

public java.lang.Integer getRefId()
Gets the filter's reference id.

Returns:
baseline's reference id

setRefId

public void setRefId(java.lang.Integer refId)

toString

public java.lang.String toString()
Gets a string representation of this filter.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 2010 Jama Software, Inc. All Rights Reserved.