com.ibm.commerce.contract.commands

Class CheckCatalogGroupEntitlementCmdImpl

  • 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.CheckCatalogGroupEntitlementCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, CheckCatalogGroupEntitlementCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class CheckCatalogGroupEntitlementCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CheckCatalogGroupEntitlementCmd
    This command is to check the catalog group's entitlement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long[] getCatalogGroupIds()
      Get Catalog Group IDs.
      java.lang.Long getCatalogId()
      Get catalog ID.
      java.lang.Long[] getEntitledCatalogGroupIds()
      Get Entitled catalog group IDs.
      java.lang.Long getMemberId()
      Get member ID.
      com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] getTradingAgreementABs()
      Get trading agreements
      void performExecute()
      The main logic of this command.
      void reset()
      This method resets the parameters.
      void setCatalogGroupIds(java.lang.Long[] catalogGroupIds)
      Set Catalog Group IDs.
      void setCatalogId(java.lang.Long catalogId)
      Sets the catalog ID.
      void setCurrentCatalog(com.ibm.commerce.catalog.objects.CatalogAccessBean catalogAB)
      This method sets the current catalog access bean.
      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 agreements.
      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

      • CheckCatalogGroupEntitlementCmdImpl

        public CheckCatalogGroupEntitlementCmdImpl()
    • Method Detail

      • getEntitledCatalogGroupIds

        public java.lang.Long[] getEntitledCatalogGroupIds()
        Get Entitled catalog group IDs.
        Specified by:
        getEntitledCatalogGroupIds in interface CheckCatalogGroupEntitlementCmd
        Returns:
        The entitled catalog group IDs, in the same sequence specified by setCatalogGroupIds. A value of null indicates none are entitled.
      • getTradingAgreementABs

        public com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] getTradingAgreementABs()
        Get trading agreements
        Specified by:
        getTradingAgreementABs in interface CheckCatalogGroupEntitlementCmd
        Returns:
        Trading agreement AccessBeans
      • 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
      • setCurrentCatalog

        public void setCurrentCatalog(com.ibm.commerce.catalog.objects.CatalogAccessBean catalogAB)
        This method sets the current catalog access bean.
        Specified by:
        setCurrentCatalog in interface CheckCatalogGroupEntitlementCmd
        Parameters:
        catalogAB -
      • setTradingAgreementABs

        public void setTradingAgreementABs(com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] agreementABs)
        This method sets the trading agreements.
        Specified by:
        setTradingAgreementABs in interface CheckCatalogGroupEntitlementCmd
        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