com.ibm.commerce.contract.commands

Class CheckCatalogEntryEntitlementCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.contract.commands.CheckCatalogEntryEntitlementCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, CheckCatalogEntryEntitlementCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command
    Direct Known Subclasses:
    CheckCatalogEntryCategoryEntitlementCmdImpl


    public class CheckCatalogEntryEntitlementCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CheckCatalogEntryEntitlementCmd
    This command is to check the catalog entry' entitlement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long[] getEntitledCatalogEntryIds()
      Get entitled catalog entry IDs against the trading agreement set for this command.
      void performExecute()
      The main logic of this command.
      void reset()
      This method resets the parameters.
      void setCatentryIds(java.lang.Long[] catentryIds)
      Set catalog entry IDs for entitlement check.
      void setMemberId(java.lang.Long memberId)
      This method sets the member ID.
      void setTradingAgreementABs(com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] agreementABs)
      This method sets the trading agreemnts.
      void validateParameters()
      This method verifies the input parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this class
        See Also:
        Constant Field Values
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckCatalogEntryEntitlementCmdImpl

        public CheckCatalogEntryEntitlementCmdImpl()
    • Method Detail

      • getEntitledCatalogEntryIds

        public java.lang.Long[] getEntitledCatalogEntryIds()
        Get entitled catalog entry IDs against the trading agreement set for this command.
        Specified by:
        getEntitledCatalogEntryIds in interface CheckCatalogEntryEntitlementCmd
        Returns:
        A array of entitled catalog entry ID.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        The main logic of this command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
      • reset

        public void reset()
        This method resets the parameters.
        Overrides:
        reset in class com.ibm.commerce.command.AbstractECTargetableCommand
      • setCatentryIds

        public void setCatentryIds(java.lang.Long[] catentryIds)
        Set catalog entry IDs for entitlement check.
        Specified by:
        setCatentryIds in interface CheckCatalogEntryEntitlementCmd
        Parameters:
        catentryIds - A array of catalog entry ID.
      • setTradingAgreementABs

        public void setTradingAgreementABs(com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] agreementABs)
        This method sets the trading agreemnts.
        Specified by:
        setTradingAgreementABs in interface CheckCatalogEntryEntitlementCmd
        Parameters:
        agreementABs -
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        This method verifies the input parameters.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException