com.ibm.commerce.contract.commands
Class ContractListAsBuyerCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.contract.commands.ContractListAsBuyerCmdImpl
All Implemented Interfaces:
AccCommand, ContractListAsBuyerCmd, ControllerCommand, ECCommand, ECTargetableCommand

public class ContractListAsBuyerCmdImpl
extends ControllerCommandImpl
implements ContractListAsBuyerCmd

Gets a list of the contracts to which a user is entitled as a Buyer participant. The command uses the user ID and store ID used when logging onto the WebSphere Commerce system. (WebSphere Commerce Business Edition only). TradingAgreementAccessBean is used in this default implementation. ContractListView is called when the command completes.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this class.
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands. ContractListAsBuyerCmd
defaultCommandClassName, NAME
 
Constructor Summary
ContractListAsBuyerCmdImpl()
          Constructor for ContractListAsBuyerCmdImpl.
 
Method Summary
 void performExecute()
          The method queries the database to get the user entitled contract list based on the user ID and the ID of the store which the user logon
 void setParticipant(java.lang.Long anParticipantId)
          Sets the participant ID
 void validateParameters()
          Checks if the user logon to a store.
 
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
 
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this class.
See Also:
Constant Field Values
Constructor Detail

ContractListAsBuyerCmdImpl

public ContractListAsBuyerCmdImpl()
Constructor for ContractListAsBuyerCmdImpl.
Method Detail

performExecute

public void performExecute()
                    throws ECException
The method queries the database to get the user entitled contract list based on the user ID and the ID of the store which the user logon
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
AbstractECTargetableCommand.performExecute()

setParticipant

public void setParticipant(java.lang.Long anParticipantId)
Sets the participant ID
Parameters:
anParticipantId - ID of the contract participant

validateParameters

public void validateParameters()
                        throws ECException
Checks if the user logon to a store.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - Raised with message _ERR_DIDNT_LOGON if the user did not logon to a store.
See Also:
AbstractECTargetableCommand.validateParameters()