com.ibm.commerce.giftcenter.commands

Class GiftListContextUpdateCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GiftListContextUpdateCmd, 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 GiftListContextUpdateCmdImpl
    extends TaskCommandImpl
    implements GiftListContextUpdateCmd
    The default implementation of the GiftListContextUpdateCmd task command interface. The command updates the gift center context of the user with the list of external identifiers that are accessed and the relationship shared with them.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • GiftListContextUpdateCmdImpl

        public GiftListContextUpdateCmdImpl()
        Default constructor for the class.
    • Method Detail

      • setListExternalIds

        public void setListExternalIds(java.util.Vector<java.lang.String> externalIds)
        Sets the list of external identifiers which needs to be updated in the context.
        Specified by:
        setListExternalIds in interface GiftListContextUpdateCmd
        Parameters:
        externalIds - A vector of strings representing the external identifiers.
      • setUserRelationship

        public void setUserRelationship(java.lang.Integer relationshipEstablished)
        Sets the relationship to be established with the external identifiers in the context.
        Specified by:
        setUserRelationship in interface GiftListContextUpdateCmd
        Parameters:
        relationshipEstablished - The relationship to be established.
      • performExecute

        public void performExecute()
                            throws ECException
        Updates the gift center context to establish the user's relationship with the external identifiers passed.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - - When an error occurs while fetching the context.
        See Also:
        ContextServiceFactory#getContextService()}
      • setNouns

        public void setNouns(java.util.List nouns)
        Sets the list of nouns which are returned by the get service based on the search expression.
        Specified by:
        setNouns in interface GiftListContextUpdateCmd
        Parameters:
        nouns - The list of gift list nouns.