com.ibm.commerce.utf.commands
Class DeleteRFQCatentryRelCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.utf.commands.DeleteRFQCatentryRelCmdImpl
All Implemented Interfaces:
DeleteRFQCatentryRelCmd, ECCommand, TaskCommand

public class DeleteRFQCatentryRelCmdImpl
extends TaskCommandImpl
implements DeleteRFQCatentryRelCmd

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

Behaviour

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


Field Summary
 java.lang.Long[] catalogEntries
           
 java.lang.Long offeringId
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.DeleteRFQCatentryRelCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
DeleteRFQCatentryRelCmdImpl()
           
 
Method Summary
 java.lang.Long[] getCatalogEntries()
          Retrieves the list of catalog entries to be deleted.
 java.lang.Long getOfferingId()
          Retrieves the RFQ ID.
 void performExecute()
          Calls the deleteAllCatentryRel method if the incoming catalogEntries is null.
 void setCatalogEntries(java.lang.Long[] newCatalogEntries)
          Stores the list of catalog entries.
 void setOfferingId(java.lang.Long newOfferingId)
          Stores the RFQ ID.
 void validateParameters()
          Checks for an incoming RFQ ID.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

catalogEntries

public java.lang.Long[] catalogEntries

offeringId

public java.lang.Long offeringId
Constructor Detail

DeleteRFQCatentryRelCmdImpl

public DeleteRFQCatentryRelCmdImpl()
Method Detail

getCatalogEntries

public java.lang.Long[] getCatalogEntries()
Retrieves the list of catalog entries to be deleted.
Returns:
The list of catalog entry IDs.

getOfferingId

public java.lang.Long getOfferingId()
Retrieves the RFQ ID.
Returns:
The RFQ ID.

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setCatalogEntries

public void setCatalogEntries(java.lang.Long[] newCatalogEntries)
Stores the list of catalog entries.
Specified by:
setCatalogEntries in interface DeleteRFQCatentryRelCmd
Parameters:
newCatalogEntries - The list of catalog entry IDs.

setOfferingId

public void setOfferingId(java.lang.Long newOfferingId)
Stores the RFQ ID.
Specified by:
setOfferingId in interface DeleteRFQCatentryRelCmd
Parameters:
newOfferingId - The RFQ ID.

validateParameters

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