com.ibm.commerce.marketing.commands

Class GetCatalogEntryAttributesCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.marketing.commands.GetCatalogEntryAttributesCmdImpl
  • All Implemented Interfaces:
    GetCatalogEntryAttributesCmd, 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 GetCatalogEntryAttributesCmdImpl
    extends com.ibm.websphere.command.CacheableCommandImpl
    implements GetCatalogEntryAttributesCmd
    This command implements GetCatalogEntryAttributesCmd interface. It calls CatalogComponentHelper to get attributes according to the names supplied, then builds a Map object with attribute maps according to language IDs.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The copyright information.
      • 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 addAttribute(java.lang.String aLanguage, java.lang.String aName, java.lang.String aValue)
      Adds the attribute for a specific language.
      java.util.Map getAttributes()
      Returns a Map object that has attribute maps by language IDs.
      boolean isReadyToCallExecute()
      Return True if it is ready to call performExecute().
      void performExecute()
      This method calls CatalogComponentHelper to get the attributes information based on the names supplied.
      void setAssociatedLanguage(java.lang.String aLanguage)
      Sets the associated language ID for the request.
      void setAttributeNames(java.util.List<java.lang.String> aAttributeNames)
      Sets the list of attribute names in the service command
      void setCatalogEntryKey(CatalogEntryKey aCatalogEntryKey)
      Sets the key of the CatalogEntry
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, 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, 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
        The copyright information.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetCatalogEntryAttributesCmdImpl

        public GetCatalogEntryAttributesCmdImpl()
        The constructor.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Return True if it is ready to call performExecute().
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        boolean
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method calls CatalogComponentHelper to get the attributes information based on the names supplied. It then builds a map object with attribute maps by languages.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception - Throws when error happens.
      • getAttributes

        public java.util.Map getAttributes()
        Description copied from interface: GetCatalogEntryAttributesCmd
        Returns a Map object that has attribute maps by language IDs.
        Specified by:
        getAttributes in interface GetCatalogEntryAttributesCmd
        Returns:
        A map object that contains maps of language specific attributes.
        See Also:
        com.ibm.commerce.marketing.promotion.commands.GetCatalogEntryAttributesCmd#getAttributes()
      • setCatalogEntryKey

        public void setCatalogEntryKey(CatalogEntryKey aCatalogEntryKey)
        Description copied from interface: GetCatalogEntryAttributesCmd
        Sets the key of the CatalogEntry
        Specified by:
        setCatalogEntryKey in interface GetCatalogEntryAttributesCmd
        Parameters:
        aCatalogEntryKey - The key of the CatalogEntry
        See Also:
        com.ibm.commerce.marketing.promotion.commands.GetCatalogEntryAttributesCmd#setCatalogEntryKey(com.ibm.commerce.marketing.promotion.dependency.CatalogEntryKey)
      • setAssociatedLanguage

        public void setAssociatedLanguage(java.lang.String aLanguage)
        Description copied from interface: GetCatalogEntryAttributesCmd
        Sets the associated language ID for the request.
        Specified by:
        setAssociatedLanguage in interface GetCatalogEntryAttributesCmd
        Parameters:
        aLanguage - The language ID
        See Also:
        com.ibm.commerce.marketing.promotion.commands.GetCatalogEntryAttributesCmd#setAssociatedLanguage(java.lang.String)
      • setAttributeNames

        public void setAttributeNames(java.util.List<java.lang.String> aAttributeNames)
        Sets the list of attribute names in the service command
        Parameters:
        aAttributeNames -