com.ibm.commerce.foundation.server.command.bod

Class AbstractChangeNounPartActionCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.command.MeasuredCacheableCommandImpl
          • com.ibm.commerce.foundation.server.command.bod.AbstractChangeNounPartActionCmdImpl
    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addActionExpression(java.lang.Object noun, ActionExpression changeAction)
      This method add the list of ActionExpression to perform against the specified noun.
      boolean isGeneric()
      This method returns true if the command can be run as a generic user, otherwise false.
      boolean isReadyToCallExecute()
      This method will indicate if the command is ready to executed.
      void performExecute()
      This method iterates though the action expressions and calls the appropriate method to handle the action.
      void reset()
      This method resets the command so it can be reused.
      void setPersistentObjects(java.util.Map persistentObjects)
      This method sets the persistent objects that have been resolved by the controller and passed along to all commands involved with this requests.
      void validate()
      This method iterates though the action expressions and calls the appropriate method to validate the action.
      • Methods inherited from class com.ibm.commerce.command.MeasuredCacheableCommandImpl

        execute
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Constructor Detail

      • AbstractChangeNounPartActionCmdImpl

        public AbstractChangeNounPartActionCmdImpl()
        Creates an instance of the abstract change noun part command.
    • Method Detail

      • addActionExpression

        public final void addActionExpression(java.lang.Object noun,
                                              ActionExpression changeAction)
        This method add the list of ActionExpression to perform against the specified noun. These change actions contain the the part of the noun to change and the operation associated with that part.
        Specified by:
        addActionExpression in interface AbstractChangeNounPartActionCmd
        Parameters:
        noun - The noun to apply the action expressions againsts.
        changeAction - The action expressions to perform.
      • setPersistentObjects

        public final void setPersistentObjects(java.util.Map persistentObjects)
        This method sets the persistent objects that have been resolved by the controller and passed along to all commands involved with this requests. These persistent objects are saved at the end of executing the entire request.
        Specified by:
        setPersistentObjects in interface AbstractChangeNounPartActionCmd
        Parameters:
        persistentObjects - The persistent objects.
      • reset

        public void reset()
        This method resets the command so it can be reused.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.websphere.command.CacheableCommandImpl
        See Also:
        CacheableCommandImpl.reset()
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method will indicate if the command is ready to executed. The command is ready if the noun and action expressions have been set and they are not null.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        Whether the nouns and acton expressions have been set.
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method iterates though the action expressions and calls the appropriate method to handle the action. If the action does not match the add(), change() or delete() methods, then handleAction() is called.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception - A problem occurred when performing the action expression.
      • isGeneric

        public boolean isGeneric()
        This method returns true if the command can be run as a generic user, otherwise false. The default implementation will return true.
        Specified by:
        isGeneric in interface AbstractChangeNounPartActionCmd
        Returns:
        true if the command can run as a generic user, otherwise false.