public interface CommandContext
extends java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
becomeUser(java.lang.Long userId)
Reserved for IBM internal use.
|
java.lang.String |
buildRedirectUrl(TypedProperty prop)
Deprecated.
This method has no replacement. A view should be used for redirection.
|
void |
changeStore(java.lang.Integer newValue)
This method changes the store and store associated information.
|
boolean |
clearStickyUser()
Reserved for IBM internal use.
|
java.lang.Object |
clone()
This method returns a clone of this command context.
|
void |
establishStickyUser(java.lang.Long nUserId)
Reserved for IBM internal use.
|
void |
generateLogId()
Deprecated.
This method has been replaced by
AuditContext.getRequestIdentifier() |
java.lang.Long |
getActiveOrganizationId()
Deprecated.
This method has been replaced by
EntitlementContext.getActiveOrganizationId() |
long |
getActivityId()
Deprecated.
This method is replaced by
AuditContext.getRequestIdentifier() |
ActivityToken |
getActivityToken()
This method gets the activity token associated with this request.
|
boolean |
getAsyncCommand()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.Long |
getCallerId()
This method gets the original caller id of this request.
|
boolean |
getClearForUser()
Deprecated.
This method has no replacement because it should not be called.
|
ECCommand |
getCommand()
This method gets the command associated with this command context.
|
java.lang.String |
getCommandName()
This method gets the name of the command.
|
Context |
getContext(java.lang.String strContextName)
This method gets the context of the given name.
|
java.lang.String |
getCountry()
Deprecated.
This method has been replaced by
CommandContextHelper.getCountry(CommandContext) |
java.lang.String |
getCurrency()
This method gets the negotiated currency associated with this request.
|
java.lang.String |
getCurrentCommandName()
This method gets the interface name of the current command.
|
java.lang.String |
getCurrentTradingAgreementIdsAsString()
Deprecated.
This method has been replaced by
EntitlementContext.getCurrentTradingAgreementIds() |
TradingAgreementAccessBean[] |
getCurrentTradingAgreements()
Deprecated.
This method has been replaced by
ContractCmdUtil.getCurrentTradingAgreements(CommandContext) |
java.lang.Integer |
getDefaultDeviceFormat()
Deprecated.
This method has no replacement. It should not be called.
|
com.ibm.commerce.adapter.DeviceFormatAdapter |
getDeviceFormatAdapter()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.Integer |
getDeviceFormatId()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.Integer |
getDeviceFormatTypeId()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.Integer |
getDeviceType()
Deprecated.
This method has no replacement.
|
java.lang.String |
getDocumentPathName(java.lang.String baseName)
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String[] |
getEligibleTradingAgreementIds()
Deprecated.
This method is replaced by
ContractCmdUtil.getEligibleTradingAgreementIds(CommandContext) |
java.lang.String |
getEligibleTradingAgreementIdsAsString()
Deprecated.
This method is replaced by
EntitlementContext.getEligibleTradingAgreementIds() |
java.lang.String |
getEncCurContr()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getEncElgContr()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getEncoding()
Deprecated.
If the
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getEncoding() method should be used.
If it is not, use the default encoding for the languageId associated with the request.
It can be retrieved by calling LanguageRegistry.getEncoding(Integer) |
java.lang.String |
getEncParOrg()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getEncParOrgAndCurContr()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getEncSesContr()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getErrorViewName()
Reserved for IBM internal use.
|
java.sql.Timestamp |
getExpiryDate()
Deprecated.
No replacement.
|
java.lang.Integer |
getForStoreId()
This method gets the for store ID.
|
java.lang.Long |
getForUserId()
Reserved for IBM internal use.
|
java.lang.Integer |
getInitialPreferredLanguage()
Deprecated.
This method is replaced by
GlobalizationContext.getPreferredLanguageId() |
java.lang.String |
getLanguage()
This method gets the 2 character language code associated with this command.
|
java.lang.Integer |
getLanguageId()
This method gets the negotiated language id associated with this request.
|
java.util.Locale |
getLocale()
This method returns the locale associated with this request.
|
java.util.Locale |
getLocale(java.lang.Integer languageId)
Deprecated.
This method has been replaced by
CommandContextHelper.getLocale(Integer) |
java.lang.String |
getLocaleVariant()
This method gets the locale variant associated with this request.
|
long |
getLogId()
Deprecated.
This method has been replaced by
AuditContext.getRequestIdentifier() |
StoreAccessBean |
getNonNullStore()
This method returns a non-null store access bean object.
|
java.lang.Long |
getOrginalUserId()
Deprecated.
This method has been replaced by
getOriginalUserId() |
java.lang.Long |
getOriginalUserId()
Reserved for IBM internal use.
|
java.lang.String |
getParentOrg()
Deprecated.
This method has been replaced by
CommandContextHelper.getParentOrg(CommandContext) |
java.lang.String |
getPreferredCurrency()
This method gets the preferred currency associated with this request.
|
java.lang.Integer |
getPreferredLanguage()
This method gets the preferred language id for this request.
|
java.lang.String |
getRedirectionURL()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getRemoteAddr()
Deprecated.
The
TransportData object should be retrieved from the AuditContext
of the request. The remote address is retrieved by calling TransportData.getRemoteAddress() |
java.lang.String |
getRemoteHost()
Deprecated.
The
TransportData object should be retrieved from the AuditContext
of the request. The remote host is retrieved by calling TransportData.getRemoteHost() |
java.lang.Object |
getRequest()
Deprecated.
If the
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getRequest() method should be used. |
TypedProperty |
getRequestProperties()
This method gets the request properties associated with this request.
|
java.lang.String |
getResolvedQueryString()
Deprecated.
This method has been replaced by
com.ibm.commerce.command.helper.CommandContextHelper#getResolvedQueryString() |
java.lang.Object |
getResponse()
Deprecated.
If the
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getResponse() method should be used. |
boolean |
getResult()
Reserved for IBM internal use.
|
com.ibm.commerce.adapter.SessionContext |
getSessionContext()
Deprecated.
This method has no replacement. It should not be called.
|
com.ibm.commerce.adapter.SessionData |
getSessionData()
Deprecated.
This method has no replacement. It should not be called. Instead of retrieving the attributes from the
SessionData object,
the equivalent methods should be called from the command context. |
java.lang.String |
getSessionTradingAgreementIdsAsString()
Deprecated.
This method has been replaced by
EntitlementContext.getSessionTradingAgreementIds() |
java.lang.Long |
getStickyActiveOrganizationId()
Reserved for IBM internal use.
|
java.lang.Long |
getStickyUserId()
Reserved for IBM internal use.
|
StoreAccessBean |
getStore()
This method gets the store access bean associated with this request.
|
StoreAccessBean |
getStore(java.lang.Integer storeId)
This method gets the store access bean associated with this request.
|
java.lang.Integer |
getStoreId()
This method gets the store id for this request.
|
java.sql.Timestamp |
getTimestamp()
Reserved for IBM internal use.
|
TradingAgreementAccessBean |
getTradingAgreement(java.lang.Long id)
Deprecated.
This method has been replaced by
ContractCmdUtil.getTradingAgreement(Long) |
TradingAgreementAccessBean |
getTradingAgreement(java.lang.String id)
Deprecated.
This method has been replaced by
ContractCmdUtil.getTradingAgreement(String) |
com.ibm.commerce.datatype.CustomProperties |
getTransactionCache()
This method gets the cache of custom properties.
|
boolean |
getUncacheable()
Deprecated.
This method has no replacement.
|
java.lang.String |
getUniqueSessionTag()
Deprecated.
This method has been replaced by
CommandContextHelper.getUniqueSessionTag(CommandContext) |
UserAccessBean |
getUser()
This method gets the user access bean for the user of this request.
|
java.lang.Long |
getUserId()
This method gets the user id.
|
java.lang.String |
getViewCommand()
Deprecated.
This method has no replacement. It should not be called.
|
java.lang.String |
getWebpath()
Deprecated.
If the
CommandContext is an instance of ViewCommandContext
(that is, the request is initiated from the web channel), it should be cast to
ViewCommandContext and the getWebpath() method should be used. |
void |
initializeStickyUser()
Reserved for IBM internal use.
|
void |
invalidateTradingAgreement(java.lang.Long id)
Deprecated.
This method has been replaced by
ContractCmdUtil.invalidateTradingAgreement(Long, CommandContext) |
void |
invalidateTradingAgreement(java.lang.String id)
Deprecated.
This method has been replaced by
ContractCmdUtil.invalidateTradingAgreement(String, CommandContext) |
boolean |
isCacheTarget()
Deprecated.
This method has no replacement.
|
boolean |
isResponseNecessary()
Reserved for IBM internal use.
|
boolean |
isSecure()
This method determines whether this is an
HTTPS command. |
boolean |
isStoreCommand()
Deprecated.
This method has no replacement.
|
int |
nextSequenceNumber()
Deprecated.
This method has been replaced by
AuditContext.getNextRequestSequenceNumber() |
void |
resetStoreRef()
Deprecated.
This method has no replacement. It should not be called.
|
void |
resetTradingAgreementInfo()
Deprecated.
This method has been replaced by
EntitlementContext.clearTradingAgreements() |
void |
restoreStore()
This method restores store and store associated information.
|
void |
restoreUser(java.lang.Long user)
Reserved for IBM internal use.
|
void |
setActiveOrganizationId(java.lang.Long nOrganizationId)
Deprecated.
This method has been replaced by
com.ibm.commerce.context.entitlement.EntitlementContext#setActiveOrganizationId() |
void |
setActivityId(long newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setActivityToken(ActivityToken token)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setAsyncCommand(boolean newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setCacheTarget(boolean newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setCommand(ECCommand command)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setCommandName(java.lang.String value)
Reserved for IBM internal use.
|
void |
setCountry(java.lang.String value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setCurrency(java.lang.String value)
Deprecated.
This method has been replaced by
GlobalizationContext.setCurrency(String) |
void |
setCurrentCommandName(java.lang.String name)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setCurrentTradingAgreements(TradingAgreementAccessBean[] contracts)
Deprecated.
This method has been replaced by
ContractCmdUtil.setCurrentTradingAgreements(TradingAgreementAccessBean[], CommandContext) |
void |
setDefaultDeviceFormat(java.lang.Integer newValue)
Deprecated.
This method has no replacement.
|
void |
setDeviceFormatAdapter(com.ibm.commerce.adapter.DeviceFormatAdapter newValue)
Deprecated.
This method has no replacement.
|
void |
setDeviceFormatId(java.lang.Integer newValue)
Deprecated.
This method has no replacement.
|
void |
setDeviceFormatTypeId(java.lang.Integer newValue)
Deprecated.
This method has no replacement.
|
void |
setDeviceType(java.lang.Integer newValue)
Deprecated.
This method has no replacement.
|
void |
setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setEncCurContr(java.lang.String newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setEncElgContr(java.lang.String newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setEncoding(java.lang.String encoding)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setEncParOrg(java.lang.String newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setEncSesContr(java.lang.String newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setErrorViewName(java.lang.String value)
Deprecated.
The error view name is now set in the response properties instead.
|
void |
setExpiryDate(java.sql.Timestamp newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setForStoreId(java.lang.Integer val)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setForUserId(java.lang.Long value)
Deprecated.
The "for user id" should be set in the request properties instead.
|
void |
setLanguage(java.lang.String value)
Reserved for IBM internal use.
|
void |
setLanguageId(java.lang.Integer newValue)
Reserved for IBM internal use.
|
void |
setLocale(java.util.Locale newValue)
Reserved for IBM internal use.
|
void |
setLocaleVariant(java.lang.String value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setPreferredCurrency(java.lang.String value)
Reserved for IBM internal use.
|
void |
setPreferredLanguage(java.lang.Integer value)
Reserved for IBM internal use.
|
void |
setRedirectionURL(java.lang.String value)
Deprecated.
The URL should be set in the response property instead.
|
void |
setRemoteAddr(java.lang.String newRemoteAddr)
Deprecated.
The
TransportData object should be retrieved from the AuditContext of the request.
The remote address should be set by calling com.ibm.commerce.context.audit.TransportData#setRemoteAddress() |
void |
setRemoteHost(java.lang.String newRemoteHost)
Deprecated.
The
TransportData object should be retrieved from the AuditContext of the request.
The remote host should be set by calling com.ibm.commerce.context.audit.TransportData#setRemoteHost() |
void |
setRequest(java.lang.Object value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setRequestProperties(TypedProperty prop)
This method sets the request property object associated with this request.
|
void |
setResponse(java.lang.Object value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setResponseNecessary(boolean newValue)
Reserved for IBM internal use.
|
void |
setResult(boolean newValue)
Reserved for IBM internal use.
|
void |
setSecure(boolean newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setSessionContext(com.ibm.commerce.adapter.SessionContext sessionContext)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setSessionData(com.ibm.commerce.adapter.SessionData sessionData)
Deprecated.
This method has no replacement. It should not be called. Instead of setting the attributes
to the
SessionData object, the equivalent methods from the command context
should be called. |
void |
setSessionTradingAgreementIdsAsString(java.lang.String newValue)
Deprecated.
This method has been replaced by
com.ibm.commerce.context.entitlement.EntitlementContext#setSessionTradingAgreementIdsAsString(String) |
void |
setStickyActiveOrganizationId(java.lang.Long nActiveOrganizationId)
Reserved for IBM internal use.
|
void |
setStickyUserId(java.lang.Long nUserId)
Reserved for IBM internal use.
|
void |
setStore(StoreAccessBean newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setStoreCommand(boolean value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setStoreId(java.lang.Integer newValue)
Reserved for IBM internal use.
|
void |
setTimestamp(java.sql.Timestamp value)
Reserved for IBM internal use.
|
com.ibm.commerce.datatype.CustomProperties |
setTransactionCache(com.ibm.commerce.datatype.CustomProperties aCustomProperties)
This method sets the cache of custom properties.
|
void |
setUncacheable(boolean newValue)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setUniqueSessionTag(java.lang.String value)
Deprecated.
This method has no replacement. It should not be called.
|
void |
setUserId(java.lang.Long value)
Reserved for IBM internal use.
|
void |
setViewCommand(java.lang.String value)
Deprecated.
The view name is now set in the response properties instead.
|
void |
setWebpath(java.lang.String webpath)
Deprecated.
This method has no replacement. It should not be called.
|
boolean |
userCanExecuteCommand(AccCommand command)
Deprecated.
This method has been replaced by
CommandContextHelper.canUserExecuteCommand(AccCommand) |
static final java.lang.String COPYRIGHT
java.lang.Long becomeUser(java.lang.Long userId)
userId - This is the user id.Long object representing the original user id.long getActivityId()
AuditContext.getRequestIdentifier()boolean getUncacheable()
true if the page cannot
be cached and false otherwise.boolean value; true if the page cannot
be cached and false otherwise.boolean getClearForUser()
true if the parameter is set and false otherwise.boolean value; true if the parameter
is set and false otherwise.ECCommand getCommand()
ECCommand object that represents the command.java.lang.String getCommandName()
java.lang.String object represents the command name.java.lang.String getCurrentCommandName()
String object that represents the current command interface name.java.lang.String[] getEligibleTradingAgreementIds()
throws ECException
ContractCmdUtil.getEligibleTradingAgreementIds(CommandContext)String array of trading agreement ids.ECExceptionjava.lang.String getEligibleTradingAgreementIdsAsString()
EntitlementContext.getEligibleTradingAgreementIds()String of trading agreement ids.java.sql.Timestamp getExpiryDate()
TimeStamp object.java.lang.Long getForUserId()
throws ECException
Long object that represents the "for user id".ECExceptionjava.lang.Integer getInitialPreferredLanguage()
throws ECException
GlobalizationContext.getPreferredLanguageId()Integer object that represents the language id.ECSystemExceptionECExceptionjava.lang.String getLanguage()
java.lang.String object that represents the language code.java.util.Locale getLocale(java.lang.Integer languageId)
CommandContextHelper.getLocale(Integer)languageId - This is an Integer object that represents the language id.Locale object.java.lang.String getLocaleVariant()
java.lang.String object that represents the locale variant.long getLogId()
AuditContext.getRequestIdentifier()long value.StoreAccessBean getNonNullStore() throws ECSystemException
StoreAccessBean object.ECSystemException - This is thrown if the store access bean object associated with this command is null.java.lang.Long getOriginalUserId()
TypedProperty getRequestProperties()
java.lang.String getResolvedQueryString()
com.ibm.commerce.command.helper.CommandContextHelper#getResolvedQueryString()boolean getResult()
boolean value.StoreAccessBean getStore() throws ECSystemException
StoreAccessBean object.ECSystemExceptionStoreAccessBean getStore(java.lang.Integer storeId) throws ECSystemException
StoreAccessBean object.ECSystemExceptionjava.sql.Timestamp getTimestamp()
Timestamp object.TradingAgreementAccessBean getTradingAgreement(java.lang.Long id) throws ECException
ContractCmdUtil.getTradingAgreement(Long)id - This is a Long object that represents the trading agreement id.TradingAgreementAccessBean object.ECExceptionTradingAgreementAccessBean getTradingAgreement(java.lang.String id) throws ECException
ContractCmdUtil.getTradingAgreement(String)id - This is a String object that represents a trading agreement id.TradingAgreementAccessBean object.ECExceptionUserAccessBean getUser() throws ECSystemException
UserAccessBean object.ECSystemExceptionvoid invalidateTradingAgreement(java.lang.Long id)
throws ECException
ContractCmdUtil.invalidateTradingAgreement(Long, CommandContext)id - This is a Long object that represents the trading agreement id.ECExceptionvoid invalidateTradingAgreement(java.lang.String id)
throws ECException
ContractCmdUtil.invalidateTradingAgreement(String, CommandContext)id - This is a String object that represents a trading agreement id.ECExceptionboolean isCacheTarget()
boolean value that represents the cache target.boolean isResponseNecessary()
boolean value; true if response is necessary for
this command and false otherwise.boolean isSecure()
HTTPS command.HTTPS command and false otherwise.boolean isStoreCommand()
void resetTradingAgreementInfo()
EntitlementContext.clearTradingAgreements()void restoreUser(java.lang.Long user)
user - This is a Long object that represents the original user id.boolean userCanExecuteCommand(AccCommand command) throws ECException
CommandContextHelper.canUserExecuteCommand(AccCommand)boolean value; true if the user can execute the
command and false otherwise.ECExceptionjava.lang.String getErrorViewName()
String object.void changeStore(java.lang.Integer newValue)
newValue - This is an Integer object.void restoreStore()
java.lang.String getEncParOrgAndCurContr()
java.lang.String object.java.lang.String getEncParOrg()
java.lang.String object.java.lang.String getParentOrg()
CommandContextHelper.getParentOrg(CommandContext)java.lang.String object.java.lang.Integer getForStoreId()
java.lang.String getEncoding()
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getEncoding() method should be used.
If it is not, use the default encoding for the languageId associated with the request.
It can be retrieved by calling LanguageRegistry.getEncoding(Integer)com.ibm.commerce.datatype.CustomProperties getTransactionCache()
aNameSpace - use the fully qualified class name. For example, "com.ibm.commerce.order.commands.OrderDisplayCmdImpl".aName - use a name that is unique within aNameSpace.int nextSequenceNumber()
AuditContext.getNextRequestSequenceNumber()ActivityToken getActivityToken()
Context getContext(java.lang.String strContextName)
strContextName - This is the name of the context to retrieve.void setEncElgContr(java.lang.String newValue)
newValue - This is the eligible contractsvoid setErrorViewName(java.lang.String value)
value - This is a java.lang.String object that represents the language.void setActivityId(long newValue)
newValue - This is a long value that represents the activity id.void setAsyncCommand(boolean newValue)
AsyncCommand.newValue - This is a boolean value; true if this is an AsyncCommand and false otherwise.void setUncacheable(boolean newValue)
newValue - This is a boolean value.void setCacheTarget(boolean newValue)
newValue - This is a boolean value.void setCommand(ECCommand command)
command - This is an ECCommand object.void setCommandName(java.lang.String value)
value - This is the name of the command.void setCountry(java.lang.String value)
value - This is a String object that represents the language.void setCurrentCommandName(java.lang.String name)
name - This is the command interface name.void setExpiryDate(java.sql.Timestamp newValue)
newValue - This is a TimeStamp object.void setForUserId(java.lang.Long value)
forUserId for this request.value - This is a Long value that represents the user id.void setLanguage(java.lang.String value)
value - This is a 2 character String object that represents the language.void setPreferredCurrency(java.lang.String value)
value - This is a String object that represents the currency.void setRequestProperties(TypedProperty prop)
prop - This is a TypedProperty object.void setResponseNecessary(boolean newValue)
newValue - This is a boolean value.void setResult(boolean newValue)
newValue - This is a boolean value.void setSecure(boolean newValue)
newValue - This is a boolean value.void setSessionContext(com.ibm.commerce.adapter.SessionContext sessionContext)
sessionContext - This is a SessionContext object.void setSessionData(com.ibm.commerce.adapter.SessionData sessionData)
SessionData object, the equivalent methods from the command context
should be called.sessionData - This is a SessionData object.void setStore(StoreAccessBean newValue)
newValue - This is a StoreAccessBean object.void setStoreCommand(boolean value)
value - This is a boolean value.void setStoreId(java.lang.Integer newValue)
newValue - This is an Integer object.void setTimestamp(java.sql.Timestamp value)
value - This is a Timestamp object.void setUniqueSessionTag(java.lang.String value)
throws ECException
value - This is a String object.ECExceptionvoid setUserId(java.lang.Long value)
value - This is a Long object that represents the user id.void setViewCommand(java.lang.String value)
value - This is a String object that represents the view name.java.lang.Object clone()
Object that represents this command context.void generateLogId()
AuditContext.getRequestIdentifier()boolean getAsyncCommand()
AsyncCommand.boolean value that represents an AsyncCommand.java.lang.String getCountry()
CommandContextHelper.getCountry(CommandContext)java.lang.String getCurrency()
throws ECSystemException
ECSystemExceptionTradingAgreementAccessBean[] getCurrentTradingAgreements() throws ECException
ContractCmdUtil.getCurrentTradingAgreements(CommandContext)TradingAgreementAccessBean objects.ECExceptionjava.lang.Integer getLanguageId()
throws ECSystemException
Integer object.ECSystemExceptionjava.util.Locale getLocale()
Locale object that represents the locale.java.lang.String getPreferredCurrency()
throws ECSystemException
java.lang.String object that represents the preferred currency.ECSystemExceptionjava.lang.Integer getPreferredLanguage()
throws ECSystemException
Integer object that represents the preferred language id.ECSystemExceptionjava.lang.String getSessionTradingAgreementIdsAsString()
throws ECException
EntitlementContext.getSessionTradingAgreementIds()String object.ECExceptionjava.lang.Integer getStoreId()
Integer object that represents the store id.java.lang.Long getUserId()
Long object that represents the user id.void resetStoreRef()
void setCurrency(java.lang.String value)
GlobalizationContext.setCurrency(String)void setCurrentTradingAgreements(TradingAgreementAccessBean[] contracts)
ContractCmdUtil.setCurrentTradingAgreements(TradingAgreementAccessBean[], CommandContext)contracts - This is an array of TradingAgreementAccessBean objects that represent the
trading agreements.void setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
newValue - This is a String object that represents the eligible trading agreement ids.void setLanguageId(java.lang.Integer newValue)
newValue - This is an Integer object.void setLocale(java.util.Locale newValue)
newValue - This is a Locale object that represents the locale / preference locale for the user.void setLocaleVariant(java.lang.String value)
value - This is a String object that represents the language.void setPreferredLanguage(java.lang.Integer value)
value - This is an Integer object that represents the language id.void setSessionTradingAgreementIdsAsString(java.lang.String newValue)
com.ibm.commerce.context.entitlement.EntitlementContext#setSessionTradingAgreementIdsAsString(String)newValue - This is a String object that represents the trading agreement ids.java.lang.String getEncElgContr()
java.lang.String object.java.lang.String getEncCurContr()
java.lang.String object.java.lang.String getEncSesContr()
void setEncCurContr(java.lang.String newValue)
newValue - This is an object that represents the encrypted current contracts.void setEncParOrg(java.lang.String newValue)
newValue - This is the encrypted parent organization.void setEncSesContr(java.lang.String newValue)
newValue - This is the encrypted session contract.java.lang.String getCurrentTradingAgreementIdsAsString()
throws ECException
EntitlementContext.getCurrentTradingAgreementIds()String object.ECExceptionvoid setForStoreId(java.lang.Integer val)
forStoreId.val - This is an Integer object.void setEncoding(java.lang.String encoding)
encoding - This is the character encoding to set.com.ibm.commerce.datatype.CustomProperties setTransactionCache(com.ibm.commerce.datatype.CustomProperties aCustomProperties)
CommandContext at any time.void setActivityToken(ActivityToken token)
token - This is the activity token.java.lang.String buildRedirectUrl(TypedProperty prop) throws ECApplicationException
prop - This is a TypedProperty object that represents the parameters for the redirect URL.ECApplicationExceptionjava.lang.Integer getDefaultDeviceFormat()
URL configuration when no view command is defined for the input device type.com.ibm.commerce.adapter.DeviceFormatAdapter getDeviceFormatAdapter()
DeviceFormatAdapter object.java.lang.Integer getDeviceFormatId()
java.lang.Integer getDeviceFormatTypeId()
Integer object.java.lang.Integer getDeviceType()
Integer object.java.lang.String getDocumentPathName(java.lang.String baseName)
baseName - This is a String object that represents the base name of the document.String object that represents the actual output document name.java.lang.String getRedirectionURL()
String object.java.lang.String getRemoteAddr()
TransportData object should be retrieved from the AuditContext
of the request. The remote address is retrieved by calling TransportData.getRemoteAddress()String object.java.lang.String getRemoteHost()
TransportData object should be retrieved from the AuditContext
of the request. The remote host is retrieved by calling TransportData.getRemoteHost()String object.java.lang.String getViewCommand()
com.ibm.commerce.adapter.SessionContext getSessionContext()
throws ECException
SessionContext object.ECExceptioncom.ibm.commerce.adapter.SessionData getSessionData()
SessionData object,
the equivalent methods should be called from the command context.SessionData object.void setDefaultDeviceFormat(java.lang.Integer newValue)
newValue - This is an Integer object that represents the device format type.void setDeviceFormatAdapter(com.ibm.commerce.adapter.DeviceFormatAdapter newValue)
newValue - This is a DeviceFormatAdapter object.void setDeviceFormatId(java.lang.Integer newValue)
newValue - This is an Integer object that represents the device format id.void setDeviceFormatTypeId(java.lang.Integer newValue)
newValue - This is an Integer object that represents the device format type id.void setDeviceType(java.lang.Integer newValue)
newValue - This is an Integer object that represents the device type.void setRedirectionURL(java.lang.String value)
value - This is a String object that represents the redirect URL name.void setRemoteAddr(java.lang.String newRemoteAddr)
TransportData object should be retrieved from the AuditContext of the request.
The remote address should be set by calling com.ibm.commerce.context.audit.TransportData#setRemoteAddress()newRemoteAddr - This is a String object.void setRemoteHost(java.lang.String newRemoteHost)
TransportData object should be retrieved from the AuditContext of the request.
The remote host should be set by calling com.ibm.commerce.context.audit.TransportData#setRemoteHost()newRemoteHost - This is a String objectjava.lang.Object getRequest()
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getRequest() method should be used.java.lang.Object getResponse()
CommandContext object is an instance of ViewCommandContext (that is, the request is initiated from the web channel),
it should be cast to ViewCommandContext and the getResponse() method should be used.java.lang.String getUniqueSessionTag()
CommandContextHelper.getUniqueSessionTag(CommandContext)String object.void setRequest(java.lang.Object value)
value - This is an Object that represents the request.void setResponse(java.lang.Object value)
value - This is an Object that represents the response.java.lang.String getWebpath()
CommandContext is an instance of ViewCommandContext
(that is, the request is initiated from the web channel), it should be cast to
ViewCommandContext and the getWebpath() method should be used.java.lang.String object.void setWebpath(java.lang.String webpath)
webpath - This is a String object.java.lang.Long getCallerId()
java.lang.Long getActiveOrganizationId()
throws ECException
EntitlementContext.getActiveOrganizationId()ECExceptionvoid setActiveOrganizationId(java.lang.Long nOrganizationId)
throws ECException
com.ibm.commerce.context.entitlement.EntitlementContext#setActiveOrganizationId()nOrganizationId - This is the member id of the organization.ECExceptionvoid initializeStickyUser()
throws ECException
ECExceptionvoid establishStickyUser(java.lang.Long nUserId)
throws ECException
forUserId to be used for this request and subsequent requests.nUserId - This is the userId to be sticky.ECExceptionboolean clearStickyUser()
throws ECException
forUserId from the session.boolean value; true if there was a
stickyUserId to clear and false otherwise.ECExceptionvoid setStickyUserId(java.lang.Long nUserId)
forUserId.java.lang.Long getStickyUserId()
throws ECException
forUserId.ECExceptionjava.lang.Long getStickyActiveOrganizationId()
throws ECException
ECExceptionvoid setStickyActiveOrganizationId(java.lang.Long nActiveOrganizationId)
nActiveOrganizationId - This is the active organization Id.java.lang.Long getOrginalUserId()
throws ECException
getOriginalUserId()ECException