com.ibm.commerce.catalog.commands

Class ProductDisplayCmdImpl

  • All Implemented Interfaces:
    ProductDisplayCmd, 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 ProductDisplayCmdImpl
    extends ControllerCommandImpl
    implements ProductDisplayCmd
    This command first ensures that the CatalogEntry specified by the ProductId can be displayed in the current store, if published, and is not marked for delete. It then resolves the Display Page by using the CatalogEntry information. This information includes the current store, 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 retrieved, the command sets the ProductDisplayView task with the resolved Display Page as the document name.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductDisplayCmdImpl

        public ProductDisplayCmdImpl()
        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 interface ControllerCommand
        Overrides:
        isGeneric in class ControllerCommandImpl
        Returns:
        This method returns true if this command can be called by a generic user and false 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 return true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        This method returns a boolean value; true if we can execute the command and false otherwise. This default implementation will return true.
      • 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 interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setMemberId

        public 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.
        Specified by:
        setMemberId in interface ProductDisplayCmd
        Parameters:
        anMemberId - java.jang.Long The member ID of the owner.
      • setPartNumber

        public 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.
        Specified by:
        setPartNumber in interface ProductDisplayCmd
        Parameters:
        astrPartNumber - java.lang.String The external part number.
      • setProductId

        public void setProductId(java.lang.Long anProductId)
        Sets the ProductId that represents the primary key of the CatalogEntry whose view is to be retrieved.
        Specified by:
        setProductId in interface ProductDisplayCmd
        Parameters:
        anProductId - java.lang.Long The product ID.