Class GiftListContextUpdateCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, GiftListContextUpdateCmd,,,,,,

    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


        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
        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
        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
        performExecute in class AbstractECTargetableCommand
        ECException - - When an error occurs while fetching the context.
        See Also:
      • 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
        nouns - The list of gift list nouns.