com.ibm.commerce.store.commands

Class AddStoreRelationshipCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.store.commands.AddStoreRelationshipCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, AddStoreRelationshipCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class AddStoreRelationshipCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements AddStoreRelationshipCmd
    Adds a store relationship
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer getRelatedStore()
      Gets the related store id
      java.lang.Float getSequence()
      Gets the sequence
      java.lang.Integer getState()
      Gets the state
      java.lang.Integer getStore()
      Gets the store id
      java.lang.String getStoreRelationshipType()
      Gets the store relationship type
      void performExecute()
      Execute the command.
      void reset()
      Resets the command.
      void setRelatedStore(java.lang.Integer relatedStoreId)
      Sets the related store id
      void setSequence(java.lang.Float sequence)
      Sets the sequence
      void setState(java.lang.Integer state)
      Sets the state
      void setStore(java.lang.Integer storeId)
      Sets the store id
      void setStoreRelationshipType(java.lang.String storeRelationshipType)
      Sets the store relationship type
      void validateParameters()
      Check mandatory parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 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, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Constructor Detail

      • AddStoreRelationshipCmdImpl

        public AddStoreRelationshipCmdImpl()
        Constructor for AddStoreRelationshipCmdImpl
    • Method Detail

      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Execute the command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - These exceptions are allowed to percolate.
      • reset

        public void reset()
        Resets the command.
        Overrides:
        reset in class com.ibm.commerce.command.AbstractECTargetableCommand
      • setRelatedStore

        public void setRelatedStore(java.lang.Integer relatedStoreId)
        Sets the related store id
        Specified by:
        setRelatedStore in interface AddStoreRelationshipCmd
        Parameters:
        relatedStoreId - the related store id
      • setSequence

        public void setSequence(java.lang.Float sequence)
        Sets the sequence
        Specified by:
        setSequence in interface AddStoreRelationshipCmd
        Parameters:
        sequence - the sequence
      • setState

        public void setState(java.lang.Integer state)
        Sets the state
        Specified by:
        setState in interface AddStoreRelationshipCmd
        Parameters:
        state - the state
      • setStore

        public void setStore(java.lang.Integer storeId)
        Sets the store id
        Specified by:
        setStore in interface AddStoreRelationshipCmd
        Parameters:
        the - store id
      • setStoreRelationshipType

        public void setStoreRelationshipType(java.lang.String storeRelationshipType)
        Sets the store relationship type
        Specified by:
        setStoreRelationshipType in interface AddStoreRelationshipCmd
        Parameters:
        storeRelationshipType - the store relationship type
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Check mandatory parameters.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if the store id, related store id, or store relationship type is not specified.
        com.ibm.commerce.exception.ECException