com.ibm.commerce.utf.commands
Class DeleteRFQCatentryRelCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.utf.commands.DeleteRFQCatentryRelCmdImpl
All Implemented Interfaces:
DeleteRFQCatentryRelCmd, ECCommand, ECTargetableCommand, TaskCommand

public class DeleteRFQCatentryRelCmdImpl
extends TaskCommandImpl
implements DeleteRFQCatentryRelCmd

This command deletes the relationship between an RFQ and one or more product entries.

Behaviour

  1. Verifies that a trading ID has been provided
  2. If no product entry ID is provided, dissociates the RFQ from all its product entries.
  3. If a list of product entries is provided, deletes the relationship between the RFQ and the incoming product entries.
See Also:
Serialized Form

Field Summary
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.utf.commands.DeleteRFQCatentryRelCmd
COPYRIGHT, defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
DeleteRFQCatentryRelCmdImpl()
Default Constructor.
Method Summary
java.lang.Long getRfqProdId()
Gets the rfqProdId
void performExecute()
Calls the deleteAllCatentryRel method if the incoming catalogEntries is null.
void reset()
Reset the command.
void setRfqProdId(java.lang.Long rfqProdId)
Sets the rfqProdId
void validateParameters()
Checks for an incoming RFQ ID.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DeleteRFQCatentryRelCmdImpl

public DeleteRFQCatentryRelCmdImpl()
Default Constructor.
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

performExecute

public void performExecute()
                    throws ECException
Calls the deleteAllCatentryRel method if the incoming catalogEntries is null. Otherwise, calls the deleteSpecificCatentryRel method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#performExecute()

validateParameters

public void validateParameters()
                        throws ECException
Checks for an incoming RFQ ID.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - If the RFQ ID has not been provided.
See Also:
ECCommand#validateParameters()

getRfqProdId

public java.lang.Long getRfqProdId()
Gets the rfqProdId
Returns:
Returns a java.lang.Long

setRfqProdId

public void setRfqProdId(java.lang.Long rfqProdId)
Sets the rfqProdId
Specified by:
setRfqProdId in interface DeleteRFQCatentryRelCmd
Parameters:
rfqProdId - The rfqProdId to set

Feedback