com.ibm.commerce.contract.commands

Class DeployExtendedTCCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, DeployExtendedTCCmd, DeployTCCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class DeployExtendedTCCmdImpl
    extends DeployTCCmdImpl
    implements DeployExtendedTCCmd
    The purpose of this command is to deploy an Extended Terms and Conditions.

    Input parameters:

    NameTypeRequirementDescription
    terms and ConditionsTerm Condition Access BeanmandatoryThe Terms and Conditions.

    Behavior:

    • Gets the Terms and Conditions ID from the input parameter.
    • New an ExtendedAccessBean using the TC_ID.
    • Get the tcSubType of the TC.
    • Get the deployCommand using tcSubType of the TC and invoke it.

    Exception:

    • It throws an ECException when there are EJB exception threw.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long getTermConditionId()
      get the TermCondition Id
      void performExecute()
      Invoke prePerform() to get the ExtendedTermConditionAccessBean and get the tcSubType for the TC.
      void setTermConditionId(java.lang.Long termConditionId)
      Set the TermCondition Id
      • 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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • 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, validateParameters
    • Field Detail

      • COPYRIGHT

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

      • DeployExtendedTCCmdImpl

        public DeployExtendedTCCmdImpl()
    • Method Detail

      • getTermConditionId

        public java.lang.Long getTermConditionId()
        get the TermCondition Id
        Specified by:
        getTermConditionId in interface DeployExtendedTCCmd
        Returns:
        return the TERMCOND_ID which will be deployed.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Invoke prePerform() to get the ExtendedTermConditionAccessBean and get the tcSubType for the TC. Then, get the deployCommand using tcSubType of the TC and invoke it.
        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 - threw ECException if there are exception threw when initial ExtendedTermConditionAccessBean.
      • setTermConditionId

        public void setTermConditionId(java.lang.Long termConditionId)
        Set the TermCondition Id
        Specified by:
        setTermConditionId in interface DeployExtendedTCCmd
        Parameters:
        termConditionId - is the TERMCOND_ID for the TermCondition which will be deployed.