java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.catalog.commands.ProductDisplayCmdImpl
This command first ensures that the CatalogEntry specified by ProductId can be displayed in the current store, is published, and is not marked for delete. It then resolves the Display Page by using the CatalogEntry information, the current Store, the the current user's member groups, the type of device that is being used to browse the CatalogEntry, the type of the CatalogEntry, and whether or not it is on auction. After the Display Page has been retreived, the command sets the ProductDisplayView task with the resolved Display Page as the document name.
Field Summary | |
static java.lang.String | COPYRIGHT The internal copyright field. |
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.catalog.commands.ProductDisplayCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ProductDisplayCmdImpl() No value constructor. |
Method Summary | |
protected java.lang.Long | getMemberId() Returns the MemberId (or owner) that along with the PartNumber uniquely identifies the CatalogEntry whose view is to be retrieved. |
protected java.lang.String | getPartNumber() Returns the external PartNumber that along with the MemberId uniquely identifies the CatalogEntry whose view is to be retrieved. |
protected java.lang.Long | getProductId() Returns the ProductId that represents the primary key of the CatalogEntry whose view is to be retrieved. |
boolean | isGeneric() Checks if this is a generic command. |
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. |
boolean | performSecurityCheck() Indicates that a user has authority to access this command. |
void | reset() This method should be called after a command has been executed to reset its states variables. |
void | setMemberId(java.lang.Long anMemberId) Sets the MemberId (or owner) that along with the PartNumber uniquely identifies the CatalogEntry whose view is to be retrieved. |
void | setPartNumber(java.lang.String astrPartNumber) Sets the external PartNumber that along with the MemberId uniquely identifies the CatalogEntry whose view is to be retrieved. |
void | setProductId(java.lang.Long anProductId) Sets the ProductId that represents the primary key of the CatalogEntry whose view is to be retrieved. |
void | setRequestProperties(TypedProperty reqParms) Sets the request properties. |
void | validateParameters() 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, 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, 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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ProductDisplayCmdImpl()
Method Detail |
protected java.lang.Long getMemberId()
protected java.lang.String getPartNumber()
protected java.lang.Long getProductId()
public boolean isGeneric()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public boolean performSecurityCheck()
public void reset()
public void setMemberId(java.lang.Long anMemberId)
public void setPartNumber(java.lang.String astrPartNumber)
public void setProductId(java.lang.Long anProductId)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.