com.ibm.commerce.search.catalog
Class SearchCategoryCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.search.catalog.SearchCategoryCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, SearchCategoryCmd

public class SearchCategoryCmdImpl
extends ControllerCommandImpl
implements SearchCategoryCmd

Search through catalog based on keyword, category and price

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.search.catalog. SearchCategoryCmd
defaultCommandClassName, NAME
 
Constructor Summary
SearchCategoryCmdImpl()
          SearchCategoryCmdImpl constructor comment.
 
Method Summary
 void buildFastSearchQuery(java.lang.String searchterm)
           
 void buildSearchQuery(java.lang.String desc, java.lang.String mfname, java.lang.String price)
          Internal use only.
 boolean isReadyToCallExecute()
          This method is called by the Targettable Command frame work before the execution of the command.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setDesc(java.lang.String newDesc)
          Internal Use Only.
 void setMfname(java.lang.String newMfname)
          Internal use only.
 void setPrice(java.lang.String newPrice)
          Internal use only.
 void setRequestProperties( TypedProperty aRequestProperties)
          Sets the request properties.
 void setSearchTerm(java.lang.String newSearchTerm)
           
 void validateParameters()
          Internal use only.
 
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

SearchCategoryCmdImpl

public SearchCategoryCmdImpl()
SearchCategoryCmdImpl constructor comment.
Method Detail

buildFastSearchQuery

public void buildFastSearchQuery(java.lang.String searchterm)
                          throws java.lang.Exception
java.lang.Exception

buildSearchQuery

public void buildSearchQuery(java.lang.String desc,
                             java.lang.String mfname,
                             java.lang.String price)
                      throws java.lang.Exception
Internal use only. Creation date: (07/27/00 4:46:47 PM)
java.lang.Exception

validateParameters

public void validateParameters()
                        throws ECException
Internal use only. Creation date: (07/27/00 4:46:47 PM)
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
ECException

isReadyToCallExecute

public boolean isReadyToCallExecute()
Description copied from class: AbstractECTargetableCommand
This method is called by the Targettable Command frame work before the execution of the command. The default implementation is to return true.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if we can execute the command false if we canot execute the command

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
ECException

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand

setDesc

public void setDesc(java.lang.String newDesc)
Description copied from interface: SearchCategoryCmd
Internal Use Only. Creation date: (9/20/00 6:20:26 PM)
Specified by:
setDesc in interface SearchCategoryCmd

setMfname

public void setMfname(java.lang.String newMfname)
Internal use only. Creation date: (9/20/00 6:16:39 PM)
Specified by:
setMfname in interface SearchCategoryCmd

setPrice

public void setPrice(java.lang.String newPrice)
Internal use only. Creation date: (9/20/00 6:16:39 PM)
Specified by:
setPrice in interface SearchCategoryCmd

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECApplicationException
Description copied from interface: ControllerCommand
Sets the request properties. The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
aRequestProperties - request properties
ECApplicationException

setSearchTerm

public void setSearchTerm(java.lang.String newSearchTerm)