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

java.lang.Object
  extended by com.jamasoftware.contour.ws.v3.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.Long id)
          Creates a new WsFilter object with the given id.
WsFilter(java.lang.String name, WsDocumentType documentType, WsProject project, WsFilterParameter[] parameters, java.lang.Integer scopeId, java.lang.Integer refId)
          Creates a new WsFilter object with the given values.
 
Method Summary
 WsDocumentType getDocumentType()
          Gets the item type associated with this filter (Can be null).
 java.lang.Long getId()
          Gets the filter's id
 java.lang.Boolean getIncludeHierarchy()
          Whether or not the filter includes hierarchy items (items that are not results of the filter, but are required to construct the hierarchy)
 java.lang.Boolean getIsFavorite()
           
 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.Integer getRefId()
          Gets the filter's reference id.
 java.lang.Integer getScopeId()
          Gets the filter's scope.
 void setDocumentType(WsDocumentType documentType)
          Sets the item type associated with this filter (Can be null).
 void setId(java.lang.Long id)
          Sets the filter's id
 void setIncludeHierarchy(java.lang.Boolean includeHierarchy)
          Sets whether or not the filter includes hierarchy items (items that are not results of the filter, but are required to construct the hierarchy)
 void setIsFavorite(java.lang.Boolean isFavorite)
           
 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 setRefId(java.lang.Integer refId)
          Sets the filter's reference id.
 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.Long id)
Creates a new WsFilter object with the given id.

Parameters:
id - id to set for the filter

WsFilter

public WsFilter(java.lang.String name,
                WsDocumentType documentType,
                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)
documentType - the item type 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

getDocumentType

public WsDocumentType getDocumentType()
Gets the item type associated with this filter (Can be null).

Returns:
the document type

setDocumentType

public void setDocumentType(WsDocumentType documentType)
Sets the item type associated with this filter (Can be null).

Parameters:
documentType - the document type 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 filter's scope
See Also:
WsScope

setScopeId

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

Parameters:
scopeId - the filter's scope

getRefId

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

Returns:
filter's reference id

setRefId

public void setRefId(java.lang.Integer refId)
Sets the filter's reference id.

Parameters:
refId - filter's reference id

getIncludeHierarchy

public java.lang.Boolean getIncludeHierarchy()
Whether or not the filter includes hierarchy items (items that are not results of the filter, but are required to construct the hierarchy)

Returns:
the includeHierarchy

setIncludeHierarchy

public void setIncludeHierarchy(java.lang.Boolean includeHierarchy)
Sets whether or not the filter includes hierarchy items (items that are not results of the filter, but are required to construct the hierarchy)

Parameters:
includeHierarchy - the includeHierarchy to set

getIsFavorite

public java.lang.Boolean getIsFavorite()

setIsFavorite

public void setIsFavorite(java.lang.Boolean isFavorite)

toString

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

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


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.