public class SearchCategoryCmdImpl extends ControllerCommandImpl implements SearchCategoryCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The constant name of this class.
|
static java.lang.String |
COPYRIGHT
The copyright value constant.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SearchCategoryCmdImpl()
The default constructor for SearchCategoryCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
buildFastSearchQuery(java.lang.String searchterm) |
void |
buildSearchQuery(java.lang.String desc,
java.lang.String mfname,
java.lang.String price)
Reserved for IBM internal use.
|
boolean |
isReadyToCallExecute()
This method is called by the targetable command framework.
|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setDesc(java.lang.String newDesc)
Reserved for IBM internal use.
|
void |
setMfname(java.lang.String newMfname)
Reserved for IBM internal use.
|
void |
setPrice(java.lang.String newPrice)
Reserved for IBM internal use.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the
requestProperties for the command. |
void |
setSearchTerm(java.lang.String newSearchTerm) |
void |
validateParameters()
Reserved for IBM internal use.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public SearchCategoryCmdImpl()
public void buildFastSearchQuery(java.lang.String searchterm) throws java.lang.Exception
java.lang.Exception
public void buildSearchQuery(java.lang.String desc, java.lang.String mfname, java.lang.String price) throws java.lang.Exception
newKeyword
- java.lang.Stringjava.lang.Exception
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
true
.isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
boolean
value; true
if we can execute the
command and false
otherwise. This default implementation will return true
.public void performExecute() throws ECException
AbstractECTargetableCommand
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setDesc(java.lang.String newDesc)
SearchCategoryCmd
setDesc
in interface SearchCategoryCmd
public void setMfname(java.lang.String newMfname)
setMfname
in interface SearchCategoryCmd
newKeyword
- java.lang.Stringpublic void setPrice(java.lang.String newPrice)
setPrice
in interface SearchCategoryCmd
newKeyword
- java.lang.Stringpublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommandImpl
requestProperties
for the command. The WebController
calls the setRequestProperties
method before invoking the execute method for this command.
It is the responsibility of the command writer to extract the
required input parameters from the requestProperties
object.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- This is an object that represents the request properties.ECApplicationException
public void setSearchTerm(java.lang.String newSearchTerm)