com.ibm.commerce.catalog.commands
Class StoreCatalogDisplayCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.catalog.commands.StoreCatalogDisplayCmdImpl
-
- All Implemented Interfaces:
- StoreCatalogDisplayCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class StoreCatalogDisplayCmdImpl extends ControllerCommandImpl implements StoreCatalogDisplayCmd
This command sets the StoreCatalogDisplayView task that will display the Catalogs available to browse in the current Store. There are no explicit input parameters to this command. The current store information from the command context is used to determine the set of available catalogs for display.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The internal copyright field.-
Fields inherited from interface com.ibm.commerce.catalog.commands.StoreCatalogDisplayCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description StoreCatalogDisplayCmdImpl()
No value constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
isGeneric()
This method determines whether this is a generic command.boolean
isReadyToCallExecute()
This method is called by the targetable command framework.void
performExecute()
This method performs the business logic for this command.boolean
performSecurityCheck()
Indicates that a user has authority to access this command.void
reset()
This method is called after a command has been executed.void
setRequestProperties(TypedProperty reqParms)
Sets the request property within this bean.void
validateParameters()
This method performs server side parameter checking.-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
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, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
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, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The internal copyright field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StoreCatalogDisplayCmdImpl
public StoreCatalogDisplayCmdImpl()
No value constructor.
-
-
Method Detail
-
isGeneric
public boolean isGeneric()
Description copied from class:ControllerCommandImpl
This method determines whether this is a generic command. A generic command is a command that can be invoked by a generic user. The default is false for all controller commands and true for all view commands.- Specified by:
isGeneric
in interfaceControllerCommand
- Overrides:
isGeneric
in classControllerCommandImpl
- Returns:
- This method returns
true
if this command can be called by a generic user andfalse
otherwise.
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
Description copied from class:AbstractECTargetableCommand
This method is called by the targetable command framework. This is where client side parameter checking is performed (before the execution of the command). The default implementation is to returntrue
.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractECTargetableCommand
- Returns:
- This method returns a
boolean
value;true
if we can execute the command andfalse
otherwise. This default implementation will returntrue
.
-
performExecute
public void performExecute() throws ECException
Description copied from class:AbstractECTargetableCommand
This method performs the business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
performSecurityCheck
public boolean performSecurityCheck()
Indicates that a user has authority to access this command.- Returns:
- boolean
-
reset
public void reset()
Description copied from class:AbstractECTargetableCommand
This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setRequestProperties
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
Sets the request property within this bean.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
reqParms
- The request property.- Throws:
ECApplicationException
-
validateParameters
public void validateParameters() throws ECException
Description copied from class:AbstractECTargetableCommand
This method performs server side parameter checking. This method replaces thecheckParameters()
method from version 5.1. The default implementation ofvalidateParameters()
is ano op
. It is the responsibility of the command writers to implement this method if they want to perform server side parameter checking.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
-