com.ibm.commerce.store.commands

Class ManageStoreCmdImpl

  • 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.ManageStoreCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, ManageStoreCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class ManageStoreCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements ManageStoreCmd
    ManageStoreCmdImpl updates an individual store from the datasource. It takes the store entity id of the store to be updated, as well as the store state or markfordelete as parameters. ManageStoreCmdImpl updates the store staus or marks the store for delete, and refreshes the store registry, and invalidates the WebSphere Application Server cache. To use this task command, setStoreEntityId(id) first (mandatory), then call setStoreStuts(status), and setMarkforDelete(false/true) at same time or one at a time.

    • Constructor Summary

      Constructors 
      Constructor and Description
      ManageStoreCmdImpl()
      ManageStoreCmdImpl constructor comment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getStoreEntityId()
      Gets the store entity id.
      void performExecute()
      To see the details of the business logic for this task command, see the comments for the class.
      void reset()
      Reset all parameters that are being used.
      void setMarkforDelete(boolean inMarkfordelete)
      Sets the message to be returned to the caller.
      void setStoreEntityId(java.lang.String storeId)
      Sets the store id.
      void setStoreStatus(java.lang.Integer statusId)
      Sets the store status Id.
      • 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, validateParameters
      • 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, validateParameters
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        Indicates closs name
        See Also:
        Constant Field Values
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Indicates standard copyright
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManageStoreCmdImpl

        public ManageStoreCmdImpl()
        ManageStoreCmdImpl constructor comment.
    • Method Detail

      • getStoreEntityId

        public java.lang.String getStoreEntityId()
        Gets the store entity id.
        Returns:
        The id of the store entity to be updated
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        To see the details of the business logic for this task command, see the comments for the class. When you change the store state, the following three steps occur: 1. Set store status to new value 2. Refresh store registry 3. Invalidate WebSphere Application Server cache
        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 - If an error is encountered while updating the datasource
      • reset

        public void reset()
        Reset all parameters that are being used.
        Overrides:
        reset in class com.ibm.commerce.command.AbstractECTargetableCommand
      • setMarkforDelete

        public void setMarkforDelete(boolean inMarkfordelete)
        Sets the message to be returned to the caller.
        Specified by:
        setMarkforDelete in interface ManageStoreCmd
        Parameters:
        resultMsg - Message that is returned to the caller upon completion of the command
      • setStoreEntityId

        public void setStoreEntityId(java.lang.String storeId)
        Sets the store id.
        Specified by:
        setStoreEntityId in interface ManageStoreCmd
        Parameters:
        storeId - The id of the store to be update
      • setStoreStatus

        public void setStoreStatus(java.lang.Integer statusId)
        Sets the store status Id.
        Specified by:
        setStoreStatus in interface ManageStoreCmd
        Parameters:
        store - status of the store