Class ProductDisplayCmdImpl

  • All Implemented Interfaces:
    ProductDisplayCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable,,,,,,

    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


        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
        isGeneric in class ControllerCommandImpl
        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
        isReadyToCallExecute in class AbstractECTargetableCommand
        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.
      • 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
        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
        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
        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
        anProductId - java.lang.Long The product ID.