java.lang.Object | +--com.ibm.commerce.command.CommandContextImpl
The command context contains session and user information. It is set in the controller command before the execute method is called
Nested Class Summary | |
---|---|
class |
CommandContextImpl.UserDependantInfo |
Field Summary | |
---|---|
protected
long |
activityId |
protected
DeviceFormatAdapter |
adapter |
protected
CommandContextImpl.UserDependantInfo |
curUserInfo |
java.lang.String |
preferredCurrency |
java.lang.Integer |
preferredLanguage |
protected
java.lang.Object |
request |
protected
java.lang.Object |
response |
protected
java.lang.String |
webpath |
Fields inherited from interface com.ibm.commerce.command. CommandContext |
COPYRIGHT |
Constructor Summary | |
---|---|
CommandContextImpl() Default CommandContextImpl Constructor. |
Method Summary | |
---|---|
java.lang.Long |
becomeUser(java.lang.Long userId) Become another user. |
java.lang.String |
buildRedirectUrl(TypedProperty prop) Returns a redirect url with the properties are part of parameters for the url. |
boolean |
canUserExecuteCommand(
AccCommand command) This methods checks whether the user can execute a command. |
void |
changeStore(java.lang.Integer newValue) Changes the store and store associated information |
void |
changeUser(java.lang.Long newValue) Reserved for IBM internal use. |
void |
clearForUser() Clear for user parameter. |
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() Reserved for IBM internal use. |
boolean |
getClearForUser() Returns true if the parameter for clearing the for User Id is set. |
ECCommand |
getCommand() Gets the command. |
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 negotiated currency code associated with this request. |
java.lang.String |
getCurrentCommandName() Gets the class name of the current command. |
java.lang.String |
getCurrentTradingAgreementIdsAsString() Reserved for IBM internal use. |
TradingAgreementAccessBean[] |
getCurrentTradingAgreements() Gets the current set of trading agreements. |
com.ibm.commerce.command.CommandContextImpl.StoreDependantInfo |
getCurStoreInfo() Gets the curStoreInfo. |
CommandContextImpl.UserDependantInfo |
getCurUserInfo() Gets the curUserInfo. |
java.lang.Integer |
getDefaultDeviceFormat() Gets the default device type to be used for this request. |
DeviceFormatAdapter |
getDeviceFormatAdapter() Gets the device format adapter associated with this request. |
java.lang.Integer |
getDeviceFormatId() Gets the device format Id associated with this request. |
java.lang.Integer |
getDeviceFormatTypeId() Gets the device format type associated with this request. |
java.lang.Integer |
getDeviceType() Gets the device format type associated with this request. |
java.lang.String |
getDocumentPathName(java.lang.String baseName) Return the output document path name based on a base name. |
java.lang.String[] |
getEligibleTradingAgreementIds() Gets the eligible trading agreemnt ids as an array for type contract only. |
java.lang.String |
getEligibleTradingAgreementIdsAsString() Reserved for IBM internal use. |
java.lang.String |
getEncCurContr() Reserved for IBM internal use. |
java.lang.String |
getEncElgContr() Reserved for IBM internal use. |
java.lang.String |
getEncoding() Returns the character encoding. |
java.lang.String |
getEncParOrg() Reserved for IBM internal use. |
java.lang.String |
getEncParOrgAndCurContr() Reserved for IBM internal use. |
java.lang.String |
getEncSesContr() Reserved for IBM internal use. |
java.lang.String |
getErrorViewName() Gets the error view name. |
java.sql.Timestamp |
getExpiryDate() Gets the expiry date for a cached page. |
java.lang.Integer |
getForStoreId() Gets the forStoreId. |
java.lang.Long |
getForUserId() Gets the for user ID for this command. |
CommandContextImpl.UserDependantInfo |
getForUserInfo() Gets the forUserInfo |
java.lang.Integer |
getInitialPreferredLanguage() Gets the preferred language Id for this request. |
java.lang.Integer |
getInvokerStoreId() Gets the original store id. |
java.lang.String |
getLanguage() Gets the language associated with this request. |
java.lang.Integer |
getLanguageId() Gets the negotiated language Id for this request. |
java.util.Locale |
getLocale() Returns the locale for this command. |
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. |
java.util.ArrayList |
getNewStores() Gets the newStores |
StoreAccessBean |
getNonNullStore() Returns a non null store access bean object. |
CommandContextImpl.UserDependantInfo |
getOrgUserInfo() Gets the orgUserInfo |
java.lang.Long |
getOriginalUserId() Gets the user ID for the caller of this request. |
java.lang.String |
getParentOrg() Reserved for IBM internal use. |
java.util.ArrayList |
getParentStores() Gets the parentStores |
java.lang.String |
getPreferredCurrency() Gets the preferred currency code 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 request object associated with this request. |
TypedProperty |
getRequestProperties() Gets the request properties associated with this request. |
java.lang.String |
getResolvedQueryString() Gets the interpreted request properties as a queryString. |
java.lang.Object |
getResponse() Gets the response object associated with this request. |
boolean |
getResult() Gets the result of this request. |
com.ibm.commerce.adapter.SessionContext |
getSessionContext() Gets the SessionContext associated with this request. |
SessionData |
getSessionData() Gets the session data associated with this request. |
java.lang.String |
getSessionTradingAgreementIdsAsString() Reserved for IBM internal use. |
StoreAccessBean |
getStore() Gets the store access bean for this request. |
StoreAccessBean |
getStore(java.lang.Integer aStoreId) Gets the store access bean based on a store Id. |
java.lang.Integer |
getStoreId() Gets the store Id for this request. |
java.sql.Timestamp |
getTimestamp() Gets the current timestamp. |
TradingAgreementAccessBean |
getTradingAgreement(java.lang.Long id) Gets the trading agreement given an id. |
TradingAgreementAccessBean |
getTradingAgreement(java.lang.String id) Gets the trading agreement given an id. |
CustomProperties |
getTransactionCache() Gets the cache of custom properties. |
boolean |
getUncacheable() Gets the uncacheable value. |
java.lang.String |
getUniqueSessionTag() Return a tag that is unique for the session. |
com.ibm.commerce.user.objects.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. |
protected
TradingAgreementAccessBean[] |
getValidTradingAgreements(TradingAgreementAccessBean[] inTAs) Gets the valid set of trading agreements. |
java.lang.String |
getViewCommand() Gets the view name with this request. |
java.lang.String |
getWebpath() Gets the web path associated with this 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 this is an https commands and returns false otherwise. |
boolean |
isSecure() Returns true if this is a https command, returns false otherwise. |
boolean |
isStoreCommand() Returns true if this is a store command. |
protected
static java.lang.String |
removeTradingAgreementFromTradingAgreementIds(java.lang.String taIds,
java.lang.String id) Remove a trading agreement Id from the input trading agremment id string. |
void |
resetStoreRef() Resets the EJB reference for the store associated with this command. |
void |
resetTradingAgreementInfo() Resets all trading agreement information. |
void |
restoreStore() Restore store and store associated information |
void |
restoreUser(java.lang.Long uId) Restores to original user. |
void |
setActivityId(long newActivityId) 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) Reserved for IBM internal use. |
void |
setCacheTarget(boolean newValue) Sets the isCacheTarget value for this command. |
void |
setCommand(ECCommand aCommand) 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 negotiated currency to be used for this request. |
void |
setCurrentCommandName(java.lang.String name) Sets the class name of the current command to be executed. |
void |
setCurrentTradingAgreementIdsAsString(java.lang.String newValue) Sets the session trading agreemnt ids as a string. |
void |
setCurrentTradingAgreements(TradingAgreementAccessBean[] newValue) Sets the current trading agreements. |
void |
setCurStoreInfo(com.ibm.commerce.command.CommandContextImpl.StoreDependantInfo curStoreInfo) Sets the curStoreInfo. |
void |
setCurUserInfo(
CommandContextImpl.UserDependantInfo curUserInfo) Sets the curUserInfo. |
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) Reserved for IBM internal use. |
void |
setEncCurContr(java.lang.String newEncCurContr) Reserved for IBM internal use. |
void |
setEncElgContr(java.lang.String newEncElgContr) Reserved for IBM internal use. |
void |
setEncoding(java.lang.String encoding) Sets the character encoding. |
void |
setEncParOrg(java.lang.String newEncParOrg) Reserved for IBM internal use. |
void |
setEncSesContr(java.lang.String newEncSesContr) Reserved for IBM internal use. |
void |
setErrorViewName(java.lang.String value) Sets the error view name. |
void |
setExpiryDate(java.sql.Timestamp value) Sets the expiry date for a cached page. |
void |
setForStoreId(java.lang.Integer val) Sets the forStoreId. |
void |
setForUserId(java.lang.Long userId) Sets the user Id for this request. |
void |
setForUserInfo(
CommandContextImpl.UserDependantInfo forUserInfo) Sets the forUserInfo |
void |
setLanguage(java.lang.String value) Sets the negotiated language for this command. |
void |
setLanguageId(java.lang.Integer value) Sets the negotiated language Id for 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 |
setNewStores(java.util.ArrayList newStores) Sets the newStores |
void |
setOrgUserInfo(
CommandContextImpl.UserDependantInfo orgUserInfo) Sets the orgUserInfo |
void |
setParentOrg(java.lang.String newParentOrg) Insert the method's description here. |
void |
setParentStores(java.util.ArrayList parentStores) Sets the parentStores |
void |
setPreferredCurrency(java.lang.String value) Sets the preferred currency to use for this request. |
void |
setPreferredLanguage(java.lang.Integer value) Sets the preferred language for this request. |
void |
setRedirectionURL(java.lang.String url) 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 value) 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. |
void |
setSecure(boolean newValue) Sets the isSecure value for this command. |
void |
setSessionContext(com.ibm.commerce.adapter.SessionContext aSessionContext) Sets the SessionContext object associated with this request. |
void |
setSessionData(SessionData value) Sets the SessionData object associated with this request. |
void |
setSessionTradingAgreementIdsAsString(java.lang.String newValue) Reserved for IBM internal use. |
void |
setStore(StoreAccessBean newValue) Sets the store associated with this command. |
void |
setStoreCommand(boolean value) Returns true if this is a store level 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. |
CustomProperties |
setTransactionCache(CustomProperties aCustomProperties) Sets the cache of custom properties. |
void |
setUncacheable(boolean newValue) Sets the value to indicate whether a page should be cached or not. |
void |
setUniqueSessionTag(java.lang.String value) Sets a tag that is unique for the session. |
void |
setUserId(java.lang.Long newUserReferenceNumber) Sets the user Id for this request. |
void |
setViewCommand(java.lang.String view) Sets the view name for this command. |
void |
setWebpath(java.lang.String newValue) Sets the webpath associated with this command. |
boolean |
userCanExecuteCommand(
AccCommand command) Reserved for IBM internal use. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString,
wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command. CommandContext |
setSessionContext |
Field Detail |
protected java.lang.Object request
protected java.lang.Object response
protected long activityId
protected java.lang.String webpath
protected DeviceFormatAdapter adapter
protected CommandContextImpl.UserDependantInfo curUserInfo
public java.lang.String preferredCurrency
public java.lang.Integer preferredLanguage
Constructor Detail |
public CommandContextImpl()
Method Detail |
public java.lang.Long becomeUser(java.lang.Long userId)
becomeUser
in interface
CommandContext
userId
- Longpublic java.lang.String buildRedirectUrl(TypedProperty prop) throws ECApplicationException
buildRedirectUrl
in interface
CommandContext
prop
- TypedProperty - parameters for the redirect urlECApplicationException
public final boolean canUserExecuteCommand(AccCommand command) throws ECException
-
- ECExceptionECException
public java.lang.Integer getInvokerStoreId()
public void changeStore(java.lang.Integer newValue)
changeStore
in interface
CommandContext
public void restoreStore()
restoreStore
in interface
CommandContext
public java.lang.Object clone()
clone
in interface
CommandContext
clone
in class
java.lang.Object
public final void generateLogId()
generateLogId
in interface
CommandContext
public final long getActivityId()
getActivityId
in interface
CommandContext
public boolean getAsyncCommand()
getAsyncCommand
in interface
CommandContext
public final boolean getUncacheable()
getUncacheable
in interface
CommandContext
public final boolean getClearForUser()
getClearForUser
in interface
CommandContext
public final ECCommand getCommand()
getCommand
in interface
CommandContext
public final java.lang.String getCommandName()
getCommandName
in interface
CommandContext
public final java.lang.String getCountry()
getCountry
in interface
CommandContext
public final java.lang.String getCurrency() throws ECSystemException
getCurrency
in interface
CommandContext
ECSystemException
public java.lang.String getCurrentCommandName()
getCurrentCommandName
in interface
CommandContext
public java.lang.String getCurrentTradingAgreementIdsAsString()
getCurrentTradingAgreementIdsAsString
in interface
CommandContext
public TradingAgreementAccessBean[] getCurrentTradingAgreements() throws ECException
getCurrentTradingAgreements
in interface
CommandContext
ECException
public java.lang.Integer getDefaultDeviceFormat()
getDefaultDeviceFormat
in interface
CommandContext
public DeviceFormatAdapter getDeviceFormatAdapter()
getDeviceFormatAdapter
in interface
CommandContext
public final java.lang.Integer getDeviceFormatId()
getDeviceFormatId
in interface
CommandContext
public final java.lang.Integer getDeviceFormatTypeId()
getDeviceFormatTypeId
in interface
CommandContext
public final java.lang.Integer getDeviceType()
getDeviceType
in interface
CommandContext
public java.lang.String getDocumentPathName(java.lang.String baseName)
getDocumentPathName
in interface
CommandContext
baseName
- String - base name of the documentpublic java.lang.String[] getEligibleTradingAgreementIds() throws ECException
getEligibleTradingAgreementIds
in interface
CommandContext
ECException
public java.lang.String getEligibleTradingAgreementIdsAsString()
getEligibleTradingAgreementIdsAsString
in interface
CommandContext
public final java.lang.String getEncCurContr()
getEncCurContr
in interface
CommandContext
public final java.lang.String getEncElgContr()
getEncElgContr
in interface
CommandContext
public final java.lang.String getEncParOrg()
getEncParOrg
in interface
CommandContext
public final java.lang.String getEncParOrgAndCurContr()
getEncParOrgAndCurContr
in interface
CommandContext
public final java.lang.String getEncSesContr()
getEncSesContr
in interface
CommandContext
public java.lang.String getErrorViewName()
getErrorViewName
in interface
CommandContext
public final java.sql.Timestamp getExpiryDate()
getExpiryDate
in interface
CommandContext
public final java.lang.Long getForUserId() throws ECException
getForUserId
in interface
CommandContext
ECException
public final java.lang.Integer getInitialPreferredLanguage()
getInitialPreferredLanguage
in interface
CommandContext
ECSystemException
public final java.lang.String getLanguage()
getLanguage
in interface
CommandContext
public final java.lang.Integer getLanguageId()
getLanguageId
in interface
CommandContext
public final java.util.Locale getLocale()
getLocale
in interface
CommandContext
public final java.util.Locale getLocale(java.lang.Integer languageId)
getLocale
in interface
CommandContext
public final java.lang.String getLocaleVariant()
getLocaleVariant
in interface
CommandContext
public final long getLogId()
getLogId
in interface
CommandContext
public final StoreAccessBean getNonNullStore() throws ECSystemException
getNonNullStore
in interface
CommandContext
ECSystemException
public final java.lang.Long getOriginalUserId()
getOriginalUserId
in interface
CommandContext
public final java.lang.String getParentOrg()
getParentOrg
in interface
CommandContext
public final java.lang.String getPreferredCurrency() throws ECSystemException
getPreferredCurrency
in interface
CommandContext
ECSystemException
public final java.lang.Integer getPreferredLanguage() throws ECSystemException
getPreferredLanguage
in interface
CommandContext
ECSystemException
public final java.lang.String getRedirectionURL()
getRedirectionURL
in interface
CommandContext
public final java.lang.String getRemoteAddr()
getRemoteAddr
in interface
CommandContext
public final java.lang.String getRemoteHost()
getRemoteHost
in interface
CommandContext
public final java.lang.Object getRequest()
getRequest
in interface
CommandContext
public final TypedProperty getRequestProperties()
getRequestProperties
in interface
CommandContext
public java.lang.String getResolvedQueryString()
getResolvedQueryString
in interface
CommandContext
public final java.lang.Object getResponse()
getResponse
in interface
CommandContext
public final boolean getResult()
getResult
in interface
CommandContext
public com.ibm.commerce.adapter.SessionContext getSessionContext() throws ECException
getSessionContext
in interface
CommandContext
ECException
public final SessionData getSessionData()
getSessionData
in interface
CommandContext
public java.lang.String getSessionTradingAgreementIdsAsString() throws ECException
getSessionTradingAgreementIdsAsString
in interface
CommandContext
ECException
public final StoreAccessBean getStore() throws ECSystemException
getStore
in interface
CommandContext
ECSystemException
public final StoreAccessBean getStore(java.lang.Integer aStoreId) throws ECSystemException
getStore
in interface
CommandContext
ECSystemException
public final java.lang.Integer getStoreId()
getStoreId
in interface
CommandContext
public final java.sql.Timestamp getTimestamp()
getTimestamp
in interface
CommandContext
public TradingAgreementAccessBean getTradingAgreement(java.lang.Long id) throws ECException
getTradingAgreement
in interface
CommandContext
id
- Long - trading agreement id
ECException
public TradingAgreementAccessBean getTradingAgreement(java.lang.String id) throws ECException
getTradingAgreement
in interface
CommandContext
id
- String - trading agreement id
ECException
public final java.lang.String getUniqueSessionTag()
getUniqueSessionTag
in interface
CommandContext
public final com.ibm.commerce.user.objects.UserAccessBean getUser() throws ECSystemException
getUser
in interface
CommandContext
ECSystemException
public final java.lang.Long getUserId()
getUserId
in interface
CommandContext
protected TradingAgreementAccessBean[] getValidTradingAgreements(TradingAgreementAccessBean[] inTAs) throws java.lang.Exception
java.lang.Exception
public final java.lang.String getViewCommand()
getViewCommand
in interface
CommandContext
public java.lang.String getWebpath()
getWebpath
in interface
CommandContext
public void invalidateTradingAgreement(java.lang.Long id) throws ECException
invalidateTradingAgreement
in interface
CommandContext
id
- Long - trading agreement id.ECException
public void invalidateTradingAgreement(java.lang.String id) throws ECException
invalidateTradingAgreement
in interface
CommandContext
id
- String - trading agreement id.ECException
public final boolean isCacheTarget()
isCacheTarget
in interface
CommandContext
public boolean isResponseNecessary()
isResponseNecessary
in interface
CommandContext
public final boolean isSecure()
isSecure
in interface
CommandContext
public boolean isStoreCommand()
isStoreCommand
in interface
CommandContext
protected static java.lang.String removeTradingAgreementFromTradingAgreementIds(java.lang.String taIds, java.lang.String id)
public final void resetStoreRef()
resetStoreRef
in interface
CommandContext
public void restoreUser(java.lang.Long uId)
restoreUser
in interface
CommandContext
uId
- - original user Idpublic void setActivityId(long newActivityId)
setActivityId
in interface
CommandContext
public void setAsyncCommand(boolean newValue)
setAsyncCommand
in interface
CommandContext
newValue
- boolean - true for asynchronize
commandpublic final void setUncacheable(boolean newValue)
setUncacheable
in interface
CommandContext
newValue
- booleanpublic final void setCacheTarget(boolean newValue)
setCacheTarget
in interface
CommandContext
newValue
- booleanpublic final void setCommand(ECCommand aCommand)
setCommand
in interface
CommandContext
aCommand
- ECCommandpublic final void setCommandName(java.lang.String value)
setCommandName
in interface
CommandContext
value
- language java.lang.Stringpublic final void setCountry(java.lang.String value)
setCountry
in interface
CommandContext
public final void setCurrency(java.lang.String value)
setCurrency
in interface
CommandContext
value
- java.lang.String - a characeter String that represents
the currencypublic void setCurrentCommandName(java.lang.String name)
setCurrentCommandName
in interface
CommandContext
public void setCurrentTradingAgreementIdsAsString(java.lang.String newValue)
public void setCurrentTradingAgreements(TradingAgreementAccessBean[] newValue)
setCurrentTradingAgreements
in interface
CommandContext
public final void setDefaultDeviceFormat(java.lang.Integer newValue)
setDefaultDeviceFormat
in interface
CommandContext
public final void setDeviceFormatAdapter(DeviceFormatAdapter newValue)
setDeviceFormatAdapter
in interface
CommandContext
public final void setDeviceFormatId(java.lang.Integer newValue)
setDeviceFormatId
in interface
CommandContext
newValue
- java.lang.Integer - device format
idpublic final void setDeviceFormatTypeId(java.lang.Integer newValue)
setDeviceFormatTypeId
in interface
CommandContext
newValue
- java.lang.Integer - device format type
idpublic final void setDeviceType(java.lang.Integer newValue)
setDeviceType
in interface
CommandContext
newValue
- java.lang.Integer - device format type
idpublic void setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
setEligibleTradingAgreementIdsAsString
in interface
CommandContext
public void setEncCurContr(java.lang.String newEncCurContr)
setEncCurContr
in interface
CommandContext
newEncCurContr
- encrypted current contracts.
public void setEncElgContr(java.lang.String newEncElgContr)
setEncElgContr
in interface
CommandContext
newEncElgContr
- The eligible contractspublic void setEncParOrg(java.lang.String newEncParOrg)
setEncParOrg
in interface
CommandContext
newEncParOrg
- encrypted parent organization
public void setEncSesContr(java.lang.String newEncSesContr)
setEncSesContr
in interface
CommandContext
newEncSesContr
- encrypted session contract
public final void setErrorViewName(java.lang.String value)
setErrorViewName
in interface
CommandContext
value
- language java.lang.String - name of error
viewpublic final void setExpiryDate(java.sql.Timestamp value)
setExpiryDate
in interface
CommandContext
value
- - TimeStamppublic final void setForUserId(java.lang.Long userId)
setForUserId
in interface
CommandContext
public final void setLanguage(java.lang.String value)
setLanguage
in interface
CommandContext
value
- language java.lang.String - a 2 characeter String that
represents the languagepublic final void setLanguageId(java.lang.Integer value)
setLanguageId
in interface
CommandContext
value
- Integer - an Id represents the
languagepublic final void setLocale(java.util.Locale newValue)
setLocale
in interface
CommandContext
public final void setLocaleVariant(java.lang.String value)
setLocaleVariant
in interface
CommandContext
value
- language java.lang.Stringpublic final void setParentOrg(java.lang.String newParentOrg)
public final void setPreferredCurrency(java.lang.String value)
setPreferredCurrency
in interface
CommandContext
value
- String - the preferred currencypublic final void setPreferredLanguage(java.lang.Integer value)
setPreferredLanguage
in interface
CommandContext
public final void setRedirectionURL(java.lang.String url)
setRedirectionURL
in interface
CommandContext
url
- String - redirect URL namepublic final void setRemoteAddr(java.lang.String newRemoteAddr)
setRemoteAddr
in interface
CommandContext
newRemoteAddr
- java.lang.Stringpublic final void setRemoteHost(java.lang.String newRemoteHost)
setRemoteHost
in interface
CommandContext
newRemoteHost
- java.lang.Stringpublic final void setRequest(java.lang.Object value)
setRequest
in interface
CommandContext
public final void setRequestProperties(TypedProperty value)
setRequestProperties
in interface
CommandContext
value
- - TypedPropertypublic final void setResponse(java.lang.Object value)
setResponse
in interface
CommandContext
value
- Object - response object.public void setResponseNecessary(boolean newValue)
setResponseNecessary
in interface
CommandContext
newValue
- booleanpublic final void setResult(boolean newValue)
setResult
in interface
CommandContext
newValue
- booleanpublic final void setSecure(boolean newValue)
setSecure
in interface
CommandContext
newValue
- booleanpublic final void setSessionContext(com.ibm.commerce.adapter.SessionContext aSessionContext)
public final void setSessionData(SessionData value)
setSessionData
in interface
CommandContext
value
- SessionDatapublic void setSessionTradingAgreementIdsAsString(java.lang.String newValue)
setSessionTradingAgreementIdsAsString
in interface
CommandContext
public final void setStore(StoreAccessBean newValue)
setStore
in interface
CommandContext
public void setStoreCommand(boolean value)
setStoreCommand
in interface
CommandContext
value
- booleanpublic final void setStoreId(java.lang.Integer newValue)
setStoreId
in interface
CommandContext
public void resetTradingAgreementInfo()
CommandContext
resetTradingAgreementInfo
in interface
CommandContext
public final void setTimestamp(java.sql.Timestamp value)
setTimestamp
in interface
CommandContext
value
- Timestamppublic final void setUniqueSessionTag(java.lang.String value) throws ECException
setUniqueSessionTag
in interface
CommandContext
value
- - java.lang.StringECException
public final void setUserId(java.lang.Long newUserReferenceNumber)
setUserId
in interface
CommandContext
public final void setViewCommand(java.lang.String view)
setViewCommand
in interface
CommandContext
view
- String - view namepublic final void setWebpath(java.lang.String newValue)
setWebpath
in interface
CommandContext
newValue
- Stringpublic final boolean userCanExecuteCommand(AccCommand command) throws ECException
userCanExecuteCommand
in interface
CommandContext
ECException
-
public void clearForUser()
public java.lang.Integer getForStoreId()
getForStoreId
in interface
CommandContext
public void setForStoreId(java.lang.Integer val)
setForStoreId
in interface
CommandContext
val
- The forStoreIdpublic CommandContextImpl.UserDependantInfo getOrgUserInfo()
public void setOrgUserInfo(CommandContextImpl.UserDependantInfo orgUserInfo)
orgUserInfo
- The orgUserInfo to setpublic CommandContextImpl.UserDependantInfo getCurUserInfo()
public void setCurUserInfo(CommandContextImpl.UserDependantInfo curUserInfo)
curUserInfo
- The curUserInfo to setpublic CommandContextImpl.UserDependantInfo getForUserInfo()
public void setForUserInfo(CommandContextImpl.UserDependantInfo forUserInfo)
forUserInfo
- The forUserInfo to setpublic com.ibm.commerce.command.CommandContextImpl.StoreDependantInfo getCurStoreInfo()
public void setCurStoreInfo(com.ibm.commerce.command.CommandContextImpl.StoreDependantInfo curStoreInfo)
curStoreInfo
- The current store Information to
setpublic java.util.ArrayList getNewStores()
public void setNewStores(java.util.ArrayList newStores)
newStores
- The newStores to setpublic java.util.ArrayList getParentStores()
public void setParentStores(java.util.ArrayList parentStores)
parentStores
- The parentStores to setpublic void changeUser(java.lang.Long newValue)
public final boolean getCachePage()
public final void setCachePage(boolean newValue)
newValue
- booleanpublic java.lang.String getEncoding()
getEncoding
in interface
CommandContext
public void setEncoding(java.lang.String encoding)
setEncoding
in interface
CommandContext
encoding
- The character encoding to setpublic CustomProperties getTransactionCache()
getTransactionCache
in interface
CommandContext
public CustomProperties setTransactionCache(CustomProperties aCustomProperties)
setTransactionCache
in interface
CommandContext