com.ibm.commerce.giftcenter.facade.server.commands

Class FetchGiftListByAccessKeysCmdImpl

  • All Implemented Interfaces:
    AbstractFetchNounCmd, FetchGiftListCmd, 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


    public class FetchGiftListByAccessKeysCmdImpl
    extends AbstractFetchNounUsingBusinessObjectMediatorCmdImpl
    implements FetchGiftListCmd
    The FetchGiftListByAccessKeysCmdImpl command fetches the gift list using the external identifier and either the guest access key or registry access key. The XPaths supported by this command are:
    • /GiftList[AccessSpecifier[GuestAccessKey=] and GiftListIdentifier[GiftListExternalIdentifier[ExternalIdentifier=]]]
    • /GiftList[AccessSpecifier[RegistryAccessKey=] and GiftListIdentifier[GiftListExternalIdentifier[ExternalIdentifier=]]]

    When the command successfully retrieves the gift list, the user"s context is updated with the relationship the user shares with the gift list. If the gift list is fetched by external identifier and registry access key, the user is set to have a co-registrant relationship with the gift list. If the gift list is fetched by external identifier and guest access key, the context is set to have the gift giver relationship with the gift list.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      Invokes the super"s implementation to fetch the gift list by external identifier and registry access key or external identifier and guest access key.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, 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, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

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

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copy right field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FetchGiftListByAccessKeysCmdImpl

        public FetchGiftListByAccessKeysCmdImpl()
        The default constructor for the class.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        Invokes the super"s implementation to fetch the gift list by external identifier and registry access key or external identifier and guest access key. It then updates the context based on the access key used.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractFetchNounUsingBusinessObjectMediatorCmdImpl
        Throws:
        java.lang.Exception