com.sri.emo.controller.nodefilter
Class NodeFilter

java.lang.Object
  extended by com.sri.emo.controller.nodefilter.NodeFilter
All Implemented Interfaces:
FilterKeyConstants

public class NodeFilter
extends Object
implements FilterKeyConstants

Provides a session storage wrapper around the filter criteria.

Author:
Michael Rimov, Larry Hamel

Field Summary
static String IS_LAST_EDITOR_RADIO
           
static String IS_TAG_RADIO
           
 
Fields inherited from interface com.sri.emo.controller.nodefilter.FilterKeyConstants
ALL_FILTER_KEYS, FILTER_GROUP, FILTER_KEY, FILTER_LAST_EDITOR, FILTER_TAGS, FILTER_WORDS, TAG_OR_LAST_EDITOR_RADIO
 
Constructor Summary
NodeFilter(ExpressoRequest request)
          Constructs a filter for the given request
 
Method Summary
 void addFiltersToMulti(MultiDBObject multi, Node samplenode)
          add any filters to the multiDBObject supplied.
 void addInputs(ExpressoResponse response)
           
 void addLasteditorFilter(Node samplenode)
          add filtering for last editor
 Attribute getFilterAttribute()
          attribute filtering involves some field of an attribute associated with a given node
 MultiDBObject getMulti(Node samplenode)
           
 boolean isFiltered()
           
 boolean isFilteringWords()
           
 void saveNewCriteria()
          get criteria from request and replace in session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_TAG_RADIO

public static final String IS_TAG_RADIO
See Also:
Constant Field Values

IS_LAST_EDITOR_RADIO

public static final String IS_LAST_EDITOR_RADIO
See Also:
Constant Field Values
Constructor Detail

NodeFilter

public NodeFilter(ExpressoRequest request)
Constructs a filter for the given request

Method Detail

isFiltered

public boolean isFiltered()
                   throws ControllerException,
                          DBException
Returns:
true if filtering criteria exists
Throws:
ControllerException
DBException

getFilterAttribute

public Attribute getFilterAttribute()
                             throws DBException
attribute filtering involves some field of an attribute associated with a given node

Returns:
attribute that will filter, or null if no filtering is needed
Throws:
DBException

addLasteditorFilter

public void addLasteditorFilter(Node samplenode)
                         throws ControllerException,
                                DBException
add filtering for last editor

Throws:
ControllerException
DBException

isFilteringWords

public boolean isFilteringWords()
                         throws ControllerException
Throws:
ControllerException

addFiltersToMulti

public void addFiltersToMulti(MultiDBObject multi,
                              Node samplenode)
                       throws ControllerException,
                              DBException
add any filters to the multiDBObject supplied. may add nothing, depending on criteria

Parameters:
multi - a multiobject with already-added sample node object
samplenode -
Throws:
ControllerException
DBException

getMulti

public MultiDBObject getMulti(Node samplenode)
                       throws DBException,
                              ControllerException
Throws:
DBException
ControllerException

addInputs

public void addInputs(ExpressoResponse response)
               throws DBException,
                      ControllerException
Throws:
DBException
ControllerException

saveNewCriteria

public void saveNewCriteria()
                     throws ControllerException
get criteria from request and replace in session

Throws:
ControllerException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.