com.ibm.commerce.command
Interface CommandContext

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
CommandContextImpl

public interface CommandContext
extends java.lang.Cloneable

The command context contains session and user information. It is set in the controller command before the execute method is called


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 java.lang.Long becomeUser(java.lang.Long userId)
          Become another user.
 java.lang.String buildRedirectUrl(TypedProperty prop)
          Returns a redirect url based on the properties.
 void changeStore(java.lang.Integer newValue)
          Changes the store and store associated information
 void changeUser(java.lang.Long newValue)
          Changes the user and information associated with user
 java.lang.Object clone()
          This method returns a clone of this command context.
 void generateLogId()
          Generate a Log Id.
 long getActivityId()
          Gets the activity ID associated with this command.
 boolean getAsyncCommand()
          Returns true if this command is an asynchronize command.
 boolean getCachePage()
          Returns true if page has to be cached.
 boolean getClearForUser()
          Returns true if the parameter for clearing the for User Id is set.
 ECCommand getCommand()
          Gets the command associated with this command context.
 java.lang.String getCommandName()
          Gets the name of the command.
 java.lang.String getCountry()
          Gets the 2 character country code associated with this command.
 java.lang.String getCurrency()
          Gets the currency associated with this request.
 java.lang.String getCurrentCommandName()
          Gets the interface name of the current command.
 java.lang.String getCurrentTradingAgreementIdsAsString()
          Gets the current trading agreement ids as a string seperated by "." For Internal use only.
 TradingAgreementAccessBean[] getCurrentTradingAgreements()
          Gets the current set of trading agreements.
 java.lang.Integer getDefaultDeviceFormat()
          Gets the default device type.
 DeviceFormatAdapter getDeviceFormatAdapter()
          Gets the device format adapter associated with this command.
 java.lang.Integer getDeviceFormatId()
          Gets the device format id for the adapter associated with this request.
 java.lang.Integer getDeviceFormatTypeId()
          Gets the device type associated with this request.
 java.lang.Integer getDeviceType()
          Gets the device format type id for the adapter associated with this request.
 java.lang.String getDocumentPathName(java.lang.String baseName)
          Returns the actual output document path name give a base name
 java.lang.String[] getEligibleTradingAgreementIds()
          Gets the eligible trading agreemnt ids as an array.
 java.lang.String getEligibleTradingAgreementIdsAsString()
          Gets the eligible trading agreement ids as a string seperated by ";" For Internal use only.
 java.lang.String getEncCurContr()
           
 java.lang.String getEncElgContr()
           
 java.lang.String getEncParOrg()
           
 java.lang.String getEncParOrgAndCurContr()
           
 java.lang.String getEncSesContr()
           
 java.lang.String getErrorViewName()
          Gets the error view name.
 java.sql.Timestamp getExpiryDate()
          Gets the expiry date of a cached page.
 java.lang.Long getForUserId()
          Gets the for user ID for this request.
 java.lang.Integer getInitialPreferredLanguage()
          Gets the preferred language Id for this request.
 java.lang.String getLanguage()
          Gets the 2 character language code associated with this command.
 java.lang.Integer getLanguageId()
          Gets the language Id associated with this request.
 java.util.Locale getLocale()
          Returns the locale associated with this request.
 java.util.Locale getLocale(java.lang.Integer languageId)
          Returns the locale associated with a given language.
 java.lang.String getLocaleVariant()
          Gets the locale variant associated with this request.
 long getLogId()
          Gets the Log id.
 StoreAccessBean getNonNullStore()
          Returns a non null store access bean object.
 java.lang.Long getOriginalUserId()
          Gets the user Id for the caller of this request.
 java.lang.String getParentOrg()
          Gets the parent Org
 java.lang.String getPreferredCurrency()
          Gets the preferred currency associated with this request.
 java.lang.Integer getPreferredLanguage()
          Gets the preferred language Id for this request.
 java.lang.String getRedirectionURL()
          Gets the redirect URL for this request.
 java.lang.String getRemoteAddr()
          Gets the address of the remote host.
 java.lang.String getRemoteHost()
          Gets the name of the remote host.
 java.lang.Object getRequest()
          Gets the controller request object associated with this request.
 TypedProperty getRequestProperties()
          Gets the request properties associated with this request.
 java.lang.String getResolvedQueryString()
          Gets the resolved request properties as a queryString.
 java.lang.Object getResponse()
          Gets the response object associated with this request.
 boolean getResult()
          Returns true when the command is successful.
 SessionContext getSessionContext()
          Return a session context associated with this request.
 SessionData getSessionData()
          Gets the sessionData associated with this request.
 java.lang.String getSessionTradingAgreementIdsAsString()
          Gets the session trading agreement ids as a string seperated by ";" For Internal use only.
 StoreAccessBean getStore()
          Gets the Store Access Bean associated with this request.
 StoreAccessBean getStore(java.lang.Integer storeId)
          Returns a Store Access Bean give a store Id.
 java.lang.Integer getStoreId()
          Gets the store Id for this request.
 java.sql.Timestamp getTimestamp()
          Gets the timestamp when the request starts.
 TradingAgreementAccessBean getTradingAgreement(java.lang.Long id)
          Gets a trading agreement given an id.
 TradingAgreementAccessBean getTradingAgreement(java.lang.String id)
          Gets a trading agreement given an id.
 java.lang.String getUniqueSessionTag()
          Return a tag that is unique for the session.
 UserAccessBean getUser()
          Gets the user access bean for the user of this request.
 java.lang.Long getUserId()
          Gets the user Id for the caller of this request.
 java.lang.String getViewCommand()
          Gets the view task associated with this command.
 java.lang.String getWebpath()
          Returns the web path for an Http request.
 void invalidateTradingAgreement(java.lang.Long id)
          Remove a trading agreement from cache.
 void invalidateTradingAgreement(java.lang.String id)
          Remove a trading agreement from cache.
 boolean isCacheTarget()
          Returns true if this command is a cache target.
 boolean isResponseNecessary()
          Returns true if response is necessary for this command.
 boolean isSecure()
          Returns true if this is an https commands and returns false otherwise.
 boolean isStoreCommand()
          Returns true if this is a store command.
 void resetStoreRef()
          Resets the EJB reference to the StoreAccessBean.
 void restoreUser(java.lang.Long user)
          Restore to original user.
 void setActivityId(long newValue)
          Sets the activity ID associated with this command.
 void setAsyncCommand(boolean newValue)
          Sets the value to indicate whether this is an asynchronize command.
 void setCachePage(boolean newValue)
          Sets the value to indicate whether a page should be cached or not.
 void setCacheTarget(boolean newValue)
          Sets the isCacheTarget value for this command.
 void setCommand(ECCommand command)
          Sets the command associated with this command context.
 void setCommandName(java.lang.String value)
          Sets the command name.
 void setCountry(java.lang.String value)
          Sets the 2 character country code associated with this command.
 void setCurrency(java.lang.String value)
          Sets the currency to be used for this command.
 void setCurrentCommandName(java.lang.String name)
          Sets the interface name of the current command to be executed.
 void setCurrentTradingAgreements(TradingAgreementAccessBean[] contracts)
          Sets the current trading agreements.
 void setDefaultDeviceFormat(java.lang.Integer newValue)
          Sets the default device format type for this request.
 void setDeviceFormatAdapter(DeviceFormatAdapter newValue)
          Sets the device format adapter used for this request.
 void setDeviceFormatId(java.lang.Integer newValue)
          Sets the device format id for this request.
 void setDeviceFormatTypeId(java.lang.Integer newValue)
          Sets the device format type id for this request.
 void setDeviceType(java.lang.Integer newValue)
          Sets the device format type id for this request.
 void setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
          Sets the eligible trading agreement ids as a string.
 void setEncCurContr(java.lang.String newValue)
           
 void setEncElgContr(java.lang.String newValue)
           
 void setEncParOrg(java.lang.String newValue)
           
 void setEncSesContr(java.lang.String newValue)
           
 void setErrorViewName(java.lang.String value)
          Sets the error view name.
 void setExpiryDate(java.sql.Timestamp newValue)
          Sets the expiry date for a cached page.
 void setForUserId(java.lang.Long value)
          Sets the for User Id for this request.
 void setLanguage(java.lang.String value)
          Sets the negotiated language for this command.
 void setLanguageId(java.lang.Integer newValue)
          Sets the negotiated language Id associated with this command.
 void setLocale(java.util.Locale newValue)
          Sets the locale for the command.
 void setLocaleVariant(java.lang.String value)
          Sets the locale variant to be used for this request.
 void setPreferredCurrency(java.lang.String value)
          Sets the preferred currency for the user for this command.
 void setPreferredLanguage(java.lang.Integer value)
          Sets the preferred language for this request.
 void setRedirectionURL(java.lang.String value)
          Sets the redirect URL name .
 void setRemoteAddr(java.lang.String newRemoteAddr)
          Sets the remote host address.
 void setRemoteHost(java.lang.String newRemoteHost)
          Sets the remote host name.
 void setRequest(java.lang.Object value)
          Sets the controller request object associated with this command.
 void setRequestProperties(TypedProperty prop)
          Sets the request property object associated with this request.
 void setResponse(java.lang.Object value)
          Sets the response object associated with this command.
 void setResponseNecessary(boolean newValue)
          Sets the isSecure value for this command.
 void setResult(boolean newValue)
          Sets the result for this command.This is for internal use by the framework only.
 void setSecure(boolean newValue)
          Sets the isSecure value for this command.
 void setSessionContext(SessionContext sessionContext)
          Sets the SessionContext object associated with this request.
 void setSessionData(SessionData sessionData)
          Sets the SessionData object associated with this request.
 void setSessionTradingAgreementIdsAsString(java.lang.String newValue)
          Sets the session trading agreemnt ids as a string.
 void setStore(StoreAccessBean newValue)
          Sets the store associated with this command.
 void setStoreCommand(boolean value)
          Sets the value for store command.
 void setStoreId(java.lang.Integer newValue)
          Sets the store Id associated with this command.
 void setTimestamp(java.sql.Timestamp value)
          Sets the timestamp for the comamnd.
 void setUniqueSessionTag(java.lang.String value)
          Sets a tag that is unique for the session.
 void setUserId(java.lang.Long value)
          Sets the user Id for this request.
 void setViewCommand(java.lang.String value)
          Sets the view name for this command.
 void setWebpath(java.lang.String webpath)
          Sets the webpath associated with this command.
 boolean userCanExecuteCommand(AccCommand command)
          This methods checks whether the user can execute a command.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Method Detail

becomeUser

public java.lang.Long becomeUser(java.lang.Long userId)
Become another user.
Parameters:
Long - - userId

buildRedirectUrl

public java.lang.String buildRedirectUrl(TypedProperty prop)
                                  throws ECApplicationException
Returns a redirect url based on the properties.
Parameters:
prop - TypedProperty - parameters for the redirect url

changeStore

public void changeStore(java.lang.Integer newValue)
Changes the store and store associated information

Parameters:
storeId - java.lang.Integer

changeUser

public void changeUser(java.lang.Long newValue)
Changes the user and information associated with user

Parameters:
userId - java.lang.Long

clone

public java.lang.Object clone()
This method returns a clone of this command context.
Overrides:
clone in class java.lang.Object

generateLogId

public void generateLogId()
Generate a Log Id. This is for internal use only.

getActivityId

public long getActivityId()
Gets the activity ID associated with this command. This is used by the Logging component.
Returns:
int - the activity Id

getAsyncCommand

public boolean getAsyncCommand()
Returns true if this command is an asynchronize command.
Returns:
boolean - asynchronize command

getCachePage

public boolean getCachePage()
Returns true if page has to be cached. False otherwise.
Returns:
boolean

getClearForUser

public boolean getClearForUser()
Returns true if the parameter for clearing the for User Id is set. This method is for internal use only
Returns:
boolean

getCommand

public ECCommand getCommand()
Gets the command associated with this command context.
Returns:
ECCommand

getCommandName

public java.lang.String getCommandName()
Gets the name of the command.
Returns:
java.lang.String

getCountry

public java.lang.String getCountry()
Gets the 2 character country code associated with this command.
Returns:
java.lang.String

getCurrency

public java.lang.String getCurrency()
                             throws ECSystemException
Gets the currency associated with this request.
Returns:
java.lang.String
Throws:
ECSystemException -  

getCurrentCommandName

public java.lang.String getCurrentCommandName()
Gets the interface name of the current command.
Returns:
String - command interface name

getCurrentTradingAgreementIdsAsString

public java.lang.String getCurrentTradingAgreementIdsAsString()
                                                       throws ECException
Gets the current trading agreement ids as a string seperated by "." For Internal use only.
Returns:
String

getCurrentTradingAgreements

public TradingAgreementAccessBean[] getCurrentTradingAgreements()
                                                         throws ECException
Gets the current set of trading agreements.
Returns:
TradingAgreementAccessBean[]

getDefaultDeviceFormat

public java.lang.Integer getDefaultDeviceFormat()
Gets the default device type. This default device type is used to locate a view command implementation from the viewreg when no view command is defined for the input device type.
Returns:
Integer - defaultDeviceType

getDeviceFormatAdapter

public DeviceFormatAdapter getDeviceFormatAdapter()
Gets the device format adapter associated with this command.
Returns:
DeviceFormatAdapter

getDeviceFormatId

public java.lang.Integer getDeviceFormatId()
Gets the device format id for the adapter associated with this request.
Returns:
Integer

getDeviceFormatTypeId

public java.lang.Integer getDeviceFormatTypeId()
Gets the device type associated with this request. The device type is used for locating view commands from the viewreg.
Returns:
Integer

getDeviceType

public java.lang.Integer getDeviceType()
Gets the device format type id for the adapter associated with this request.
Returns:
Integer

getDocumentPathName

public java.lang.String getDocumentPathName(java.lang.String baseName)
Returns the actual output document path name give a base name

Parameters:
baseName - String - base name of the document
Returns:
String - actual output document name

getEligibleTradingAgreementIds

public java.lang.String[] getEligibleTradingAgreementIds()
                                                  throws ECException
Gets the eligible trading agreemnt ids as an array.

Returns:
String[] - trading agreement Ids

getEligibleTradingAgreementIdsAsString

public java.lang.String getEligibleTradingAgreementIdsAsString()
Gets the eligible trading agreement ids as a string seperated by ";" For Internal use only.
Returns:
String

getEncCurContr

public java.lang.String getEncCurContr()

getEncElgContr

public java.lang.String getEncElgContr()

getEncParOrg

public java.lang.String getEncParOrg()

getEncParOrgAndCurContr

public java.lang.String getEncParOrgAndCurContr()

getEncSesContr

public java.lang.String getEncSesContr()

getErrorViewName

public java.lang.String getErrorViewName()
Gets the error view name. This method is used by the command framework.
Returns:
String

getExpiryDate

public java.sql.Timestamp getExpiryDate()
Gets the expiry date of a cached page.
Returns:
TimeStamp

getForUserId

public java.lang.Long getForUserId()
                            throws ECException
Gets the for user ID for this request.
Returns:
Long - user Id

getInitialPreferredLanguage

public java.lang.Integer getInitialPreferredLanguage()
Gets the preferred language Id for this request.
Returns:
Integer
Throws:
ECSystemException -  

getLanguage

public java.lang.String getLanguage()
Gets the 2 character language code associated with this command.
Returns:
java.lang.String

getLanguageId

public java.lang.Integer getLanguageId()
                                throws ECSystemException
Gets the language Id associated with this request.
Returns:
Integer

getLocale

public java.util.Locale getLocale()
Returns the locale associated with this request.
Returns:
Locale

getLocale

public java.util.Locale getLocale(java.lang.Integer languageId)
Returns the locale associated with a given language.
Returns:
Locale

getLocaleVariant

public java.lang.String getLocaleVariant()
Gets the locale variant associated with this request.
Returns:
java.lang.String

getLogId

public long getLogId()
Gets the Log id. This method is for internal use only.
Returns:
long

getNonNullStore

public StoreAccessBean getNonNullStore()
                                throws ECSystemException
Returns a non null store access bean object. An exception is thrown if the StoreAccessBean object accociated with this command is null.

Returns:
StoreAccessBean, - non null store access bean object
Throws:
ECSystemException -  

getOriginalUserId

public java.lang.Long getOriginalUserId()
Gets the user Id for the caller of this request.
Returns:
Long

getParentOrg

public java.lang.String getParentOrg()
Gets the parent Org
Returns:
java.lang.String

getPreferredCurrency

public java.lang.String getPreferredCurrency()
                                      throws ECSystemException
Gets the preferred currency associated with this request.
Returns:
java.lang.String
Throws:
ECSystemException -  

getPreferredLanguage

public java.lang.Integer getPreferredLanguage()
                                       throws ECSystemException
Gets the preferred language Id for this request.
Returns:
Integer
Throws:
ECSystemException -  

getRedirectionURL

public java.lang.String getRedirectionURL()
Gets the redirect URL for this request.
Returns:
String

getRemoteAddr

public java.lang.String getRemoteAddr()
Gets the address of the remote host.

Returns:
java.lang.String

getRemoteHost

public java.lang.String getRemoteHost()
Gets the name of the remote host.

Returns:
java.lang.String

getRequest

public java.lang.Object getRequest()
Gets the controller request object associated with this request.
Returns:
Object - the request object

getRequestProperties

public TypedProperty getRequestProperties()
Gets the request properties associated with this request.
Returns:
TypedProperty - the request properties

getResolvedQueryString

public java.lang.String getResolvedQueryString()
Gets the resolved request properties as a queryString.
Returns:
String - the resolved query string

getResponse

public java.lang.Object getResponse()
Gets the response object associated with this request.
Returns:
Object - the response object

getResult

public boolean getResult()
Returns true when the command is successful. This method is for internal use only.
Returns:
boolean

getSessionContext

public SessionContext getSessionContext()
                                 throws ECException
Return a session context associated with this request. This method is for internal use only.
Returns:
SessionContext

getSessionData

public SessionData getSessionData()
Gets the sessionData associated with this request. This method is for internal use only.
Returns:
SessionData - the sessionData

getSessionTradingAgreementIdsAsString

public java.lang.String getSessionTradingAgreementIdsAsString()
                                                       throws ECException
Gets the session trading agreement ids as a string seperated by ";" For Internal use only.
Returns:
String

getStore

public StoreAccessBean getStore()
                         throws ECSystemException
Gets the Store Access Bean associated with this request. It will return null if no store is associated with this request.
Returns:
StoreAccessBean

getStore

public StoreAccessBean getStore(java.lang.Integer storeId)
                         throws ECSystemException
Returns a Store Access Bean give a store Id.
Returns:
StoreAccessBean

getStoreId

public java.lang.Integer getStoreId()
Gets the store Id for this request.
Returns:
Integer - the store Id

getTimestamp

public java.sql.Timestamp getTimestamp()
Gets the timestamp when the request starts. This method is for internal use only.
Returns:
Timestamp

getTradingAgreement

public TradingAgreementAccessBean getTradingAgreement(java.lang.Long id)
                                               throws ECException
Gets a trading agreement given an id.

Parameters:
id - Long - trading agreement id
Returns:
TradingAgreementAccessBean

getTradingAgreement

public TradingAgreementAccessBean getTradingAgreement(java.lang.String id)
                                               throws ECException
Gets a trading agreement given an id.

Parameters:
id - String - trading agreement id
Returns:
TradingAgreementAccessBean

getUniqueSessionTag

public java.lang.String getUniqueSessionTag()
Return a tag that is unique for the session. This method is for internal use only.
Returns:
java.lang.String

getUser

public UserAccessBean getUser()
                       throws ECSystemException
Gets the user access bean for the user of this request. Returns null if no user is defined.
Returns:
UserAccessBean

getUserId

public java.lang.Long getUserId()
Gets the user Id for the caller of this request.
Returns:
Long

getViewCommand

public java.lang.String getViewCommand()
Gets the view task associated with this command.

getWebpath

public java.lang.String getWebpath()
Returns the web path for an Http request. This method is for internal use only.
Returns:
java.lang.String

invalidateTradingAgreement

public void invalidateTradingAgreement(java.lang.Long id)
                                throws ECException
Remove a trading agreement from cache.
Parameters:
id - Long - trading agreement id.

invalidateTradingAgreement

public void invalidateTradingAgreement(java.lang.String id)
                                throws ECException
Remove a trading agreement from cache.
Parameters:
id - String - trading agreement id.

isCacheTarget

public boolean isCacheTarget()
Returns true if this command is a cache target. This method is for internal use only.
Returns:
boolean - cacheTarget

isResponseNecessary

public boolean isResponseNecessary()
Returns true if response is necessary for this command. This method is for internal use only.

isSecure

public boolean isSecure()
Returns true if this is an https commands and returns false otherwise.

isStoreCommand

public boolean isStoreCommand()
Returns true if this is a store command. This implied that the store directory will be automatically added to the document path for any forward view command. This method is for internal use only.

resetStoreRef

public void resetStoreRef()
Resets the EJB reference to the StoreAccessBean. This is for internal use only.

restoreUser

public void restoreUser(java.lang.Long user)
Restore to original user. This is for internal use only.

Parameters:
user - Long - original user Id

setActivityId

public void setActivityId(long newValue)
Sets the activity ID associated with this command. This is for internal use only.

Parameters:
value - long - activity Id

setAsyncCommand

public void setAsyncCommand(boolean newValue)
Sets the value to indicate whether this is an asynchronize command.
Parameters:
newValue - boolean - true for asynchronize command

setCachePage

public void setCachePage(boolean newValue)
Sets the value to indicate whether a page should be cached or not. This method is for internal use only.
Parameters:
newValue - boolean

setCacheTarget

public void setCacheTarget(boolean newValue)
Sets the isCacheTarget value for this command. This method is for internal use only.
Parameters:
newValue - boolean

setCommand

public void setCommand(ECCommand command)
Sets the command associated with this command context. This method is for internal use only.
Parameters:
command - ECCommand

setCommandName

public void setCommandName(java.lang.String value)
Sets the command name. This method is used by the command framework only.
Parameters:
value - language java.lang.String

setCountry

public void setCountry(java.lang.String value)
Sets the 2 character country code associated with this command.

setCurrency

public void setCurrency(java.lang.String value)
Sets the currency to be used for this command.

setCurrentCommandName

public void setCurrentCommandName(java.lang.String name)
Sets the interface name of the current command to be executed.
Parameters:
String - - command interface name

setCurrentTradingAgreements

public void setCurrentTradingAgreements(TradingAgreementAccessBean[] contracts)
Sets the current trading agreements. This method is for internal use only.
Parameters:
value - TradingAgreementAccessBean[] - trading agreements

setDefaultDeviceFormat

public void setDefaultDeviceFormat(java.lang.Integer newValue)
Sets the default device format type for this request.
Parameters:
value - Integer - device format type

setDeviceFormatAdapter

public void setDeviceFormatAdapter(DeviceFormatAdapter newValue)
Sets the device format adapter used for this request. This method is for use by the framework only.
Parameters:
value - - DeviceFormatAdapter

setDeviceFormatId

public void setDeviceFormatId(java.lang.Integer newValue)
Sets the device format id for this request. This method is for internal use by the framwork only.
Parameters:
newValue - java.lang.Integer - device format id

setDeviceFormatTypeId

public void setDeviceFormatTypeId(java.lang.Integer newValue)
Sets the device format type id for this request. This method is for internal use by the framework only.
Parameters:
newValue - java.lang.Integer - device format type id

setDeviceType

public void setDeviceType(java.lang.Integer newValue)
Sets the device format type id for this request. This method is for internal use by the framework only.
Parameters:
newValue - java.lang.Integer - device format type id

setEligibleTradingAgreementIdsAsString

public void setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
Sets the eligible trading agreement ids as a string. For Internal use only.
Parameters:
value - String - eligible trading agreement Ids

setEncCurContr

public void setEncCurContr(java.lang.String newValue)

setEncElgContr

public void setEncElgContr(java.lang.String newValue)

setEncParOrg

public void setEncParOrg(java.lang.String newValue)

setEncSesContr

public void setEncSesContr(java.lang.String newValue)

setErrorViewName

public void setErrorViewName(java.lang.String value)
Sets the error view name. This method is used by the command framework only.
Parameters:
value - language java.lang.String

setExpiryDate

public void setExpiryDate(java.sql.Timestamp newValue)
Sets the expiry date for a cached page. This method is for internal use only.
Parameters:
newValue - - TimeStamp

setForUserId

public void setForUserId(java.lang.Long value)
Sets the for User Id for this request. This method is for internal used by the framework only.

setLanguage

public void setLanguage(java.lang.String value)
Sets the negotiated language for this command. This is for internal use by the framework only.
Parameters:
value - language java.lang.String - a 2 characeter String that represents the language

setLanguageId

public void setLanguageId(java.lang.Integer newValue)
Sets the negotiated language Id associated with this command. This method is for internal use by the framework.
Parameters:
newValue - java.lang.Integer

setLocale

public void setLocale(java.util.Locale newValue)
Sets the locale for the command. This method is for internal use by the framework.

setLocaleVariant

public void setLocaleVariant(java.lang.String value)
Sets the locale variant to be used for this request. This method is for internal use by the framework.
Parameters:
value - language java.lang.String

setPreferredCurrency

public void setPreferredCurrency(java.lang.String value)
Sets the preferred currency for the user for this command. This method is for internal use by the framework only.
Parameters:
value - java.lang.String - a characeter String that represents the currency

setPreferredLanguage

public void setPreferredLanguage(java.lang.Integer value)
Sets the preferred language for this request. This is for internal use by the command framework only.

setRedirectionURL

public void setRedirectionURL(java.lang.String value)
Sets the redirect URL name . This method is for internal use by the framework.
Parameters:
value - String - redirect URL name

setRemoteAddr

public void setRemoteAddr(java.lang.String newRemoteAddr)
Sets the remote host address.

Parameters:
newRemoteHost - java.lang.String

setRemoteHost

public void setRemoteHost(java.lang.String newRemoteHost)
Sets the remote host name.

Parameters:
newRemoteHost - java.lang.String

setRequest

public void setRequest(java.lang.Object value)
Sets the controller request object associated with this command. This is for internal used by the framework only.

setRequestProperties

public void setRequestProperties(TypedProperty prop)
Sets the request property object associated with this request. This is used by the framework only.
Parameters:
value - - TypedProperty

setResponse

public void setResponse(java.lang.Object value)
Sets the response object associated with this command. This method is for internal use by the framework only.
Parameters:
value - Object - response object.

setResponseNecessary

public void setResponseNecessary(boolean newValue)
Sets the isSecure value for this command. This method is for internal use by the framework only.
Parameters:
newValue - boolean

setResult

public void setResult(boolean newValue)
Sets the result for this command.This is for internal use by the framework only.
Parameters:
newValue - boolean

setSecure

public void setSecure(boolean newValue)
Sets the isSecure value for this command. This method is for internal use by the framework only.
Parameters:
newValue - boolean

setSessionContext

public void setSessionContext(SessionContext sessionContext)
Sets the SessionContext object associated with this request. This method is for internal use by the framework only.
Parameters:
sessionContext - SessionContext

setSessionData

public void setSessionData(SessionData sessionData)
Sets the SessionData object associated with this request. This method is for internal use by the framework only.
Parameters:
sessionData - SessionData

setSessionTradingAgreementIdsAsString

public void setSessionTradingAgreementIdsAsString(java.lang.String newValue)
Sets the session trading agreemnt ids as a string. This method is for internal use only.
Parameters:
value - String - trading agreement Ids

setStore

public void setStore(StoreAccessBean newValue)
Sets the store associated with this command. This method is for internal use by the framework only.
Parameters:
store - StoreAccessBean

setStoreCommand

public void setStoreCommand(boolean value)
Sets the value for store command. True if this is a store level command. False otherwise.
Parameters:
value - boolean

setStoreId

public void setStoreId(java.lang.Integer newValue)
Sets the store Id associated with this command. This method is for internal use by the command framework only.
Parameters:
storeId - java.lang.Integer

setTimestamp

public void setTimestamp(java.sql.Timestamp value)
Sets the timestamp for the comamnd. This method is for internal use only.
Parameters:
value - Timestamp

setUniqueSessionTag

public void setUniqueSessionTag(java.lang.String value)
                         throws ECException
Sets a tag that is unique for the session. This method is for internal use by the framework only.
Parameters:
value - - java.lang.String

setUserId

public void setUserId(java.lang.Long value)
Sets the user Id for this request. This method is for internal used by the framework only.

setViewCommand

public void setViewCommand(java.lang.String value)
Sets the view name for this command. This method is for internal use by the framework only.
Parameters:
value - String - view name

setWebpath

public void setWebpath(java.lang.String webpath)
Sets the webpath associated with this command. This method is for internal use by the framework only.
Parameters:
webpath - String

userCanExecuteCommand

public boolean userCanExecuteCommand(AccCommand command)
                              throws ECException
This methods checks whether the user can execute a command. This method is for internal use by the framework only.
Returns:
true - if user can execute command false - if user cannot execute command