com.ibm.commerce.location.facade.server.commands

Class ProcessClientLocationCmdImplExtended

  • All Implemented Interfaces:
    BusinessObjectDocumentCmd, ProcessClientLocationCmd, 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
    Direct Known Subclasses:
    ProcessClientLocationCmdImpl


    public abstract class ProcessClientLocationCmdImplExtended
    extends AbstractProcessBusinessObjectDocumentCmdImpl
    implements ProcessClientLocationCmd
    Base class for executing the Process command via a set of child action commands which do not directly call the business object mediator layer -- instead the child action commands perform their work in other ways -- for example by delegating their work to instances of CHANGE commands that handle each action.

    The process command distinguishes source nouns from result nouns. Source nouns are the original nouns provided by the caller, upon which one or more actions are requested (e.g. "Create"). Each action may result in a multiplicity of results, for example, if the creation of a new noun causes multiple nouns to be created due to custom business logic (consider reporting a customer location near a mall by requesting a "Create" action on a customer location noun -- this may result into actual multiple locations being added which correspond to multiple stores in the mall).

    The process command communicates with the child action commands via the persistent object map, which create a slot for each noun it operates over (typically one) which maps to a results list. Individual child action commands are expected to carry out their action, then report their result set into the slot in the persistent object map for the noun which the action operates against. The result sets are then rolled up into the single response to the overall command.

    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessClientLocationCmdImplExtended

        public ProcessClientLocationCmdImplExtended()
    • Method Detail

      • getSourceNouns

        public java.util.List getSourceNouns()
        Returns the list of source nouns being processed by this command - this list is acquired and stored locally by the read() method.

        Returns:
        The list of source nouns to be processed by this command.

      • setSourceNouns

        public void setSourceNouns(java.util.List source_nouns)
        Sets the list of source nouns being processed by this command - by default this list is acquired and stored locally by the read() method and this method is not used.

        Parameters:
        source_nouns - The list of source nouns to be processed by this command.