com.ibm.commerce.contract.commands

Class CalculateProductSetEntitlementCmdImpl

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


    public class CalculateProductSetEntitlementCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CalculateProductSetEntitlementCmd
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Vector getExclusion()
      Get the list of applicable exclusion product sets
      java.util.Vector getInclusion()
      Get the list of applicable inclusion product sets
      long getObjectSize()
      Returns the estimated footprint size in bytes of this object and the objects it contains.
      java.lang.Long getParticipantId()
      get memberId of the trading agreement participant
      java.util.Vector[] getTradingAgreementBrowsableInclusionProductSetIds()
      Gets the list of applicable browsable inclusion product sets for each trading agreement.
      java.util.Vector[] getTradingAgreementExclusionProductSetIds()
      Gets the list of applicable exclusion product sets for each trading agreement.
      java.lang.Long[] getTradingAgreementIds()
      get trading agreement Ids
      java.util.Vector[] getTradingAgreementInclusionAndBrowsableProductSetIds()
      Gets the list of applicable inclusion and browsable product sets for each trading agreement.
      java.util.Vector[] getTradingAgreementInclusionProductSetIds()
      Gets the list of applicable inclusion product sets for each trading agreement.
      com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] getTradingAgreements()
      get a set of trading agreement access beans
      boolean isEntireMasterCatalogSelected()
      Is the entire master catalog for sale under the trading agreements
      boolean isReadyToCallExecute() 
      void performExecute() 
      void postExecute()
      This method is called by the Dynamic Cache when the execute method is called, and a cache miss occurs, after the performExecute method is called.
      void setOutputProperties(TargetableCommand fromCommand) 
      void setParticipantId(java.lang.Long memberId)
      set memberId of the trading agreement participant
      void setTradingAgreements(com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] agreements)
      set a set of trading agreement access beans
      void validateParameters() 
      • 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, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, 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

      • CalculateProductSetEntitlementCmdImpl

        public CalculateProductSetEntitlementCmdImpl()
    • Method Detail

      • getObjectSize

        public long getObjectSize()
        Returns the estimated footprint size in bytes of this object and the objects it contains.
        Overrides:
        getObjectSize in class com.ibm.commerce.command.AbstractECTargetableCommand
        Returns:
        the estimated footprint size in bytes or -1 if a size cannot be determined.
      • isEntireMasterCatalogSelected

        public boolean isEntireMasterCatalogSelected()
        Is the entire master catalog for sale under the trading agreements
        Specified by:
        isEntireMasterCatalogSelected in interface CalculateProductSetEntitlementCmd
        Returns:
        true if the entire master catalog is selected, false otherwise
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Overrides:
        isReadyToCallExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        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
      • postExecute

        public void postExecute()

        This method is called by the Dynamic Cache when the execute method is called, and a cache miss occurs, after the performExecute method is called.

        See Also:
        com.ibm.websphere.command.CacheableCommand#postExecute()
      • setOutputProperties

        public void setOutputProperties(TargetableCommand fromCommand)
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        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