com.ibm.commerce.orderquotation.commands
Class GetOrgDistributorPartnerInfoCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.orderquotation.commands.GetOrgDistributorPartnerInfoCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, GetOrgDistributorPartnerInfoCmd, TaskCommand

public class GetOrgDistributorPartnerInfoCmdImpl
extends TaskCommandImpl
implements GetOrgDistributorPartnerInfoCmd

Get the organization distributor partner information from the user attribute OrgDistributorPartnerId and from the appropriate member group, owned by the referral store, of type = Partner Group Type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.orderquotation.commands. GetOrgDistributorPartnerInfoCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
GetOrgDistributorPartnerInfoCmdImpl()
          Constructor for GetCredentialsCmdImpl
 
Method Summary
 java.lang.String getBusinessPartnerGrouping()
          Get the business partner grouping.
 java.lang.String getCustomerNo()
          Get the customer number.
 void performExecute()
          Execute the command.
 void reset()
          Resets the command.
 void setDistributor(java.lang.Integer theStoreId)
          Set the distributor's store id for the credentials.
 void setOrgId(java.lang.Long theOrgId)
          Set the organization id.
 void validateParameters()
          Check mandatory parameters.
 
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

GetOrgDistributorPartnerInfoCmdImpl

public GetOrgDistributorPartnerInfoCmdImpl()
Constructor for GetCredentialsCmdImpl
Method Detail

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
EXException - These exceptions are allowed to percolate.
ECException

reset

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

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if the org id or storeId is not specified.
ECException

setDistributor

public void setDistributor(java.lang.Integer theStoreId)
Set the distributor's store id for the credentials.
Specified by:
setDistributor in interface GetOrgDistributorPartnerInfoCmd
Parameters:
theStoreId - The distributor's store id.

setOrgId

public void setOrgId(java.lang.Long theOrgId)
Set the organization id.
Specified by:
setOrgId in interface GetOrgDistributorPartnerInfoCmd
Parameters:
theOrgId - The organization id.

getCustomerNo

public java.lang.String getCustomerNo()
Get the customer number.
Specified by:
getCustomerNo in interface GetOrgDistributorPartnerInfoCmd
Returns:
The customer number.

getBusinessPartnerGrouping

public java.lang.String getBusinessPartnerGrouping()
Get the business partner grouping.
Specified by:
getBusinessPartnerGrouping in interface GetOrgDistributorPartnerInfoCmd
Returns:
The business partner grouping.