3.2.4: 2013-12-06

net.sf.basedb.clients.web.extensions
Class InstallFilter

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.InstallFilter
All Implemented Interfaces:
Filter<ExtensionsFile>

public class InstallFilter
extends Object
implements Filter<ExtensionsFile>

Filter implementation that selects only those extensions that was selected by the user in the gui. Eg. if the request parameter filename.install is set.

Since:
3.0
Author:
Nicklas
Last modified
$Date $

Field Summary
private  boolean ignoreErrorFlag
           
private  HttpServletRequest request
           
 
Constructor Summary
InstallFilter(HttpServletRequest request)
           
InstallFilter(HttpServletRequest request, boolean ignoreErrorFlag)
          Create a filter that allow us to ignore the error flag.
 
Method Summary
 boolean evaluate(ExtensionsFile xtFile)
          Evaluate if the given object should pass the filter or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

private final HttpServletRequest request

ignoreErrorFlag

private final boolean ignoreErrorFlag
Constructor Detail

InstallFilter

public InstallFilter(HttpServletRequest request)

InstallFilter

public InstallFilter(HttpServletRequest request,
                     boolean ignoreErrorFlag)
Create a filter that allow us to ignore the error flag. Needed to be able to reset the error status for extensions that has been selected for re-install. See ResetErrorFlagProcessor.

Since:
3.2.4
Method Detail

evaluate

public boolean evaluate(ExtensionsFile xtFile)
Description copied from interface: Filter
Evaluate if the given object should pass the filter or not.

Specified by:
evaluate in interface Filter<ExtensionsFile>
Parameters:
xtFile - The object to evaluate
Returns:
TRUE if the object passes the filter, FALSE otherwise

3.2.4: 2013-12-06