com.ibm.commerce.command

Interface CommandContext

  • All Superinterfaces:
    java.lang.Cloneable
    All Known Subinterfaces:
    ViewCommandContext
    All Known Implementing Classes:
    CommandContextImpl, WCTicklerAsyncCommandContextImpl


    public interface CommandContext
    extends java.lang.Cloneable
    This class defines the command context, which contains session and user information. It is set in the controller command before the execute method is called.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT 
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      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. 
      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. 
      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. 
      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. 
      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)
    • Method Detail

      • becomeUser

        java.lang.Long becomeUser(java.lang.Long userId)
        Reserved for IBM internal use. This method changes the current user to another user.
        Parameters:
        userId - This is the user id.
        Returns:
        This method returns a Long object representing the original user id.
      • getActivityId

        long getActivityId()
        Deprecated. This method is replaced by AuditContext.getRequestIdentifier()
        Reserved for IBM internal use. This method gets the activity ID associated with this command which is used by the logging component.
        Returns:
        This method returns the activity id.
      • getUncacheable

        boolean getUncacheable()
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method determines whether the page can be cached. It returns true if the page cannot be cached and false otherwise.
        Returns:
        This method returns a boolean value; true if the page cannot be cached and false otherwise.
      • getClearForUser

        boolean getClearForUser()
        Deprecated. This method has no replacement because it should not be called.
        Reserved for IBM internal use. This method determines whether the parameter for clearing the "for user id" is set. It returns true if the parameter is set and false otherwise.
        Returns:
        This method returns a boolean value; true if the parameter is set and false otherwise.
      • getCommand

        ECCommand getCommand()
        This method gets the command associated with this command context.
        Returns:
        This method returns an ECCommand object that represents the command.
      • getCommandName

        java.lang.String getCommandName()
        This method gets the name of the command.
        Returns:
        This method returns a java.lang.String object represents the command name.
      • getCurrentCommandName

        java.lang.String getCurrentCommandName()
        This method gets the interface name of the current command. It is possible that the current command name is different from the command name when the current command is invoked by another controller command.
        Returns:
        This method returns a String object that represents the current command interface name.
      • getEligibleTradingAgreementIds

        java.lang.String[] getEligibleTradingAgreementIds()
                                                   throws ECException
        Deprecated. This method is replaced by ContractCmdUtil.getEligibleTradingAgreementIds(CommandContext)
        This method gets the eligible trading agreement IDs as an array.
        Returns:
        This method returns a String array of trading agreement ids.
        Throws:
        ECException
      • getEligibleTradingAgreementIdsAsString

        java.lang.String getEligibleTradingAgreementIdsAsString()
        Deprecated. This method is replaced by EntitlementContext.getEligibleTradingAgreementIds()
        Reserved for IBM internal use. This method gets the eligible trading agreement ids as a string separated by ";".
        Returns:
        This method returns a String of trading agreement ids.
      • getExpiryDate

        java.sql.Timestamp getExpiryDate()
        Deprecated. No replacement.
        Reserved for IBM internal use. This method gets the expiry date of a cached page.
        Returns:
        This method returns a TimeStamp object.
      • getForUserId

        java.lang.Long getForUserId()
                             throws ECException
        Reserved for IBM internal use. This method gets the "for user ID" for this request.
        Returns:
        This method returns a Long object that represents the "for user id".
        Throws:
        ECException
      • getLanguage

        java.lang.String getLanguage()
        This method gets the 2 character language code associated with this command.
        Returns:
        This method returns a java.lang.String object that represents the language code.
      • getLocale

        java.util.Locale getLocale(java.lang.Integer languageId)
        Deprecated. This method has been replaced by CommandContextHelper.getLocale(Integer)
        This method returns the locale associated with a given language.
        Parameters:
        languageId - This is an Integer object that represents the language id.
        Returns:
        This method returns a Locale object.
      • getLocaleVariant

        java.lang.String getLocaleVariant()
        This method gets the locale variant associated with this request.
        Returns:
        This method returns a java.lang.String object that represents the locale variant.
      • getLogId

        long getLogId()
        Deprecated. This method has been replaced by AuditContext.getRequestIdentifier()
        Reserved for IBM internal use. This method gets the log ID.
        Returns:
        This method returns a long value.
      • getNonNullStore

        StoreAccessBean getNonNullStore()
                                 throws ECSystemException
        This method returns a non-null store access bean object. An exception is thrown if the store access bean object associated with this command is null.
        Returns:
        This method returns a non-null StoreAccessBean object.
        Throws:
        ECSystemException - This is thrown if the store access bean object associated with this command is null.
      • getOriginalUserId

        java.lang.Long getOriginalUserId()
        Reserved for IBM internal use. This method gets the user ID for the caller of this request.
        Returns:
        This method returns the original user id.
      • getRequestProperties

        TypedProperty getRequestProperties()
        This method gets the request properties associated with this request.
        Returns:
        This method returns the request properties.
      • getResolvedQueryString

        java.lang.String getResolvedQueryString()
        Deprecated. This method has been replaced by com.ibm.commerce.command.helper.CommandContextHelper#getResolvedQueryString()
        Reserved for IBM internal use. This method gets the resolved request properties as a query string.
        Returns:
        This method returns the resolved query string
      • getResult

        boolean getResult()
        Reserved for IBM internal use. This method returns true when the command is successful.
        Returns:
        This method returns a boolean value.
      • getStore

        StoreAccessBean getStore()
                          throws ECSystemException
        This method gets the store access bean associated with this request. It returns null if no store is associated with this request.
        Returns:
        This method returns a StoreAccessBean object.
        Throws:
        ECSystemException
      • getStore

        StoreAccessBean getStore(java.lang.Integer storeId)
                          throws ECSystemException
        This method gets the store access bean associated with this request. It returns null if no store is associated with this request.
        Returns:
        This method returns a StoreAccessBean object.
        Throws:
        ECSystemException
      • getTimestamp

        java.sql.Timestamp getTimestamp()
        Reserved for IBM internal use. This method gets the time stamp when the request starts.
        Returns:
        This method returns a Timestamp object.
      • getTradingAgreement

        TradingAgreementAccessBean getTradingAgreement(java.lang.Long id)
                                                throws ECException
        Deprecated. This method has been replaced by ContractCmdUtil.getTradingAgreement(Long)
        This method gets a trading agreement given an ID.
        Parameters:
        id - This is a Long object that represents the trading agreement id.
        Returns:
        This method returns a TradingAgreementAccessBean object.
        Throws:
        ECException
      • getTradingAgreement

        TradingAgreementAccessBean getTradingAgreement(java.lang.String id)
                                                throws ECException
        Deprecated. This method has been replaced by ContractCmdUtil.getTradingAgreement(String)
        This method gets a trading agreement given a string ID.
        Parameters:
        id - This is a String object that represents a trading agreement id.
        Returns:
        This method returns a TradingAgreementAccessBean object.
        Throws:
        ECException
      • getUser

        UserAccessBean getUser()
                        throws ECSystemException
        This method gets the user access bean for the user of this request. Returns null if no user is defined.
        Returns:
        This method returns a UserAccessBean object.
        Throws:
        ECSystemException
      • invalidateTradingAgreement

        void invalidateTradingAgreement(java.lang.Long id)
                                 throws ECException
        Deprecated. This method has been replaced by ContractCmdUtil.invalidateTradingAgreement(Long, CommandContext)
        This method removes a trading agreement from the cache.
        Parameters:
        id - This is a Long object that represents the trading agreement id.
        Throws:
        ECException
      • invalidateTradingAgreement

        void invalidateTradingAgreement(java.lang.String id)
                                 throws ECException
        Deprecated. This method has been replaced by ContractCmdUtil.invalidateTradingAgreement(String, CommandContext)
        This method removes a trading agreement from cache given a string ID.
        Parameters:
        id - This is a String object that represents a trading agreement id.
        Throws:
        ECException
      • isCacheTarget

        boolean isCacheTarget()
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method returns true if this command is a cache target.
        Returns:
        This method returns a boolean value that represents the cache target.
      • isResponseNecessary

        boolean isResponseNecessary()
        Reserved for IBM internal use. This method determines whether a response is necessary for this command.
        Returns:
        This method returns a boolean value; true if response is necessary for this command and false otherwise.
      • isSecure

        boolean isSecure()
        This method determines whether this is an HTTPS command.
        Returns:
        This method returns true if this is an HTTPS command and false otherwise.
      • isStoreCommand

        boolean isStoreCommand()
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method returns true if this is a store command. Implies that the store directory will be automatically added to the document path for any forward view command.
        Returns:
        This method returns true if this is a store command and false otherwise.
      • restoreUser

        void restoreUser(java.lang.Long user)
        Reserved for IBM internal use. This method restores the current user to the original user.
        Parameters:
        user - This is a Long object that represents the original user id.
      • userCanExecuteCommand

        boolean userCanExecuteCommand(AccCommand command)
                               throws ECException
        Deprecated. This method has been replaced by CommandContextHelper.canUserExecuteCommand(AccCommand)
        Reserved for IBM internal use. This method determines whether the user can execute a command.
        Returns:
        This method returns a boolean value; true if the user can execute the command and false otherwise.
        Throws:
        ECException
      • getErrorViewName

        java.lang.String getErrorViewName()
        Reserved for IBM internal use. This method gets the error view name.
        Returns:
        This method returns a String object.
      • changeStore

        void changeStore(java.lang.Integer newValue)
        This method changes the store and store associated information.
        Parameters:
        newValue - This is an Integer object.
      • restoreStore

        void restoreStore()
        This method restores store and store associated information.
      • getEncParOrgAndCurContr

        java.lang.String getEncParOrgAndCurContr()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the encrypted parent organization and current contract.
        Returns:
        This method returns a java.lang.String object.
      • getEncParOrg

        java.lang.String getEncParOrg()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the encrypted parent organization.
        Returns:
        This method returns a java.lang.String object.
      • getParentOrg

        java.lang.String getParentOrg()
        Deprecated. This method has been replaced by CommandContextHelper.getParentOrg(CommandContext)
        Reserved for IBM internal use. This method gets the parent organization.
        Returns:
        This method returns a java.lang.String object.
      • getForStoreId

        java.lang.Integer getForStoreId()
        This method gets the for store ID.
        Returns:
        This method returns the "for store id".
      • getEncoding

        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)
        This method gets the character encoding.
        Returns:
        This method returns the character encoding.
      • getTransactionCache

        com.ibm.commerce.datatype.CustomProperties getTransactionCache()
        This method gets the cache of custom properties. If the cache does not yet exist, this method creates it. This method requires the use of the following naming conventions when adding an object to this cache to avoid naming collisions:
        • aNameSpace - use the fully qualified class name. For example, "com.ibm.commerce.order.commands.OrderDisplayCmdImpl".
        • aName - use a name that is unique within aNameSpace.
        Returns:
        This method returns the custom properties. This method will never return null.
      • nextSequenceNumber

        int nextSequenceNumber()
        Deprecated. This method has been replaced by AuditContext.getNextRequestSequenceNumber()
        Reserved for IBM internal use. This method gets the next available sequence number used for business auditing.
        Returns:
        This method returns the next sequence number for business auditing.
      • getActivityToken

        ActivityToken getActivityToken()
        This method gets the activity token associated with this request.
        Returns:
        This method returns the activity token. If none is specified, null is returned.
      • getContext

        Context getContext(java.lang.String strContextName)
        This method gets the context of the given name.
        Parameters:
        strContextName - This is the name of the context to retrieve.
        Returns:
        This method returns the context.
      • setEncElgContr

        void setEncElgContr(java.lang.String newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the encrypted eligible contracts.
        Parameters:
        newValue - This is the eligible contracts
      • setErrorViewName

        void setErrorViewName(java.lang.String value)
        Deprecated. The error view name is now set in the response properties instead.
        Reserved for IBM internal use. This method sets the error view name.
        Parameters:
        value - This is a java.lang.String object that represents the language.
      • setActivityId

        void setActivityId(long newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the activity ID associated with this command which is used by the Logging component.
        Parameters:
        newValue - This is a long value that represents the activity id.
      • setAsyncCommand

        void setAsyncCommand(boolean newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the value to indicate whether this is an AsyncCommand.
        Parameters:
        newValue - This is a boolean value; true if this is an AsyncCommand and false otherwise.
      • setUncacheable

        void setUncacheable(boolean newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the value to indicate whether a page should be cached or not.
        Parameters:
        newValue - This is a boolean value.
      • setCacheTarget

        void setCacheTarget(boolean newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the is cache target value for this command.
        Parameters:
        newValue - This is a boolean value.
      • setCommand

        void setCommand(ECCommand command)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the command that this command context is associated with.
        Parameters:
        command - This is an ECCommand object.
      • setCommandName

        void setCommandName(java.lang.String value)
        Reserved for IBM internal use. This method sets the command name.
        Parameters:
        value - This is the name of the command.
      • setCountry

        void setCountry(java.lang.String value)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the 2 character country code associated with this command.
        Parameters:
        value - This is a String object that represents the language.
      • setCurrentCommandName

        void setCurrentCommandName(java.lang.String name)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the class name of the current command to be executed.
        Parameters:
        name - This is the command interface name.
      • setExpiryDate

        void setExpiryDate(java.sql.Timestamp newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the expiry date for a cached page.
        Parameters:
        newValue - This is a TimeStamp object.
      • setForUserId

        void setForUserId(java.lang.Long value)
        Deprecated. The "for user id" should be set in the request properties instead.
        Reserved for IBM internal use. This method sets the forUserId for this request.
        Parameters:
        value - This is a Long value that represents the user id.
      • setLanguage

        void setLanguage(java.lang.String value)
        Reserved for IBM internal use. This method sets the negotiated language for this command.
        Parameters:
        value - This is a 2 character String object that represents the language.
      • setPreferredCurrency

        void setPreferredCurrency(java.lang.String value)
        Reserved for IBM internal use. This method sets the preferred currency for the user for this command.
        Parameters:
        value - This is a String object that represents the currency.
      • setRequestProperties

        void setRequestProperties(TypedProperty prop)
        This method sets the request property object associated with this request.
        Parameters:
        prop - This is a TypedProperty object.
      • setResponseNecessary

        void setResponseNecessary(boolean newValue)
        Reserved for IBM internal use. This method sets to false if response is not required to be composed for the command. True otherwise.
        Parameters:
        newValue - This is a boolean value.
      • setResult

        void setResult(boolean newValue)
        Reserved for IBM internal use. This method sets the result for this command.
        Parameters:
        newValue - This is a boolean value.
      • setSecure

        void setSecure(boolean newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the isSecure value for this command.
        Parameters:
        newValue - This is a boolean value.
      • setSessionContext

        void setSessionContext(com.ibm.commerce.adapter.SessionContext sessionContext)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the session context object associated with this request.
        Parameters:
        sessionContext - This is a SessionContext object.
      • setSessionData

        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.
        Reserved for IBM internal use. This method sets the session data object associated with this request.
        Parameters:
        sessionData - This is a SessionData object.
      • setStore

        void setStore(StoreAccessBean newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the store associated with this command.
        Parameters:
        newValue - This is a StoreAccessBean object.
      • setStoreCommand

        void setStoreCommand(boolean value)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the value for the store command. True if this is a store level command. False otherwise.
        Parameters:
        value - This is a boolean value.
      • setStoreId

        void setStoreId(java.lang.Integer newValue)
        Reserved for IBM internal use. This method sets the store ID associated with this command.
        Parameters:
        newValue - This is an Integer object.
      • setTimestamp

        void setTimestamp(java.sql.Timestamp value)
        Reserved for IBM internal use. This method sets the time stamp for the command.
        Parameters:
        value - This is a Timestamp object.
      • setUniqueSessionTag

        void setUniqueSessionTag(java.lang.String value)
                          throws ECException
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets a tag that is unique for the session.
        Parameters:
        value - This is a String object.
        Throws:
        ECException
      • setUserId

        void setUserId(java.lang.Long value)
        Reserved for IBM internal use. This method sets the user ID for this request.
        Parameters:
        value - This is a Long object that represents the user id.
      • setViewCommand

        void setViewCommand(java.lang.String value)
        Deprecated. The view name is now set in the response properties instead.
        Reserved for IBM internal use. This method sets the view name for this command.
        Parameters:
        value - This is a String object that represents the view name.
      • clone

        java.lang.Object clone()
        This method returns a clone of this command context.
        Returns:
        This method returns an Object that represents this command context.
      • generateLogId

        void generateLogId()
        Deprecated. This method has been replaced by AuditContext.getRequestIdentifier()
        Reserved for IBM internal use. This method generates a log ID.
      • getAsyncCommand

        boolean getAsyncCommand()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method returns true if this command is an AsyncCommand.
        Returns:
        This method returns a boolean value that represents an AsyncCommand.
      • getCountry

        java.lang.String getCountry()
        Deprecated. This method has been replaced by CommandContextHelper.getCountry(CommandContext)
        This method gets the 2 character country code associated with this command.
        Returns:
        This method returns the 2 character country code.
      • getCurrency

        java.lang.String getCurrency()
                              throws ECSystemException
        This method gets the negotiated currency associated with this request.
        Returns:
        This method returns the currency.
        Throws:
        ECSystemException
      • getCurrentTradingAgreements

        TradingAgreementAccessBean[] getCurrentTradingAgreements()
                                                          throws ECException
        Deprecated. This method has been replaced by ContractCmdUtil.getCurrentTradingAgreements(CommandContext)
        This method gets the current set of trading agreements.
        Returns:
        This method returns the trading agreements represented by an array of TradingAgreementAccessBean objects.
        Throws:
        ECException
      • getLanguageId

        java.lang.Integer getLanguageId()
                                 throws ECSystemException
        This method gets the negotiated language id associated with this request.
        Returns:
        This method returns the negotiated language id represented by an Integer object.
        Throws:
        ECSystemException
      • getLocale

        java.util.Locale getLocale()
        This method returns the locale associated with this request.
        Returns:
        This method returns a Locale object that represents the locale.
      • getPreferredCurrency

        java.lang.String getPreferredCurrency()
                                       throws ECSystemException
        This method gets the preferred currency associated with this request.
        Returns:
        This method returns a java.lang.String object that represents the preferred currency.
        Throws:
        ECSystemException
      • getPreferredLanguage

        java.lang.Integer getPreferredLanguage()
                                        throws ECSystemException
        This method gets the preferred language id for this request.
        Returns:
        This method returns an Integer object that represents the preferred language id.
        Throws:
        ECSystemException
      • getSessionTradingAgreementIdsAsString

        java.lang.String getSessionTradingAgreementIdsAsString()
                                                        throws ECException
        Deprecated. This method has been replaced by EntitlementContext.getSessionTradingAgreementIds()
        Reserved for IBM internal use. This method gets the session trading agreement IDs as a string separated by ";". For Internal use only.
        Returns:
        This method returns a String object.
        Throws:
        ECException
      • getStoreId

        java.lang.Integer getStoreId()
        This method gets the store id for this request.
        Returns:
        This method returns an Integer object that represents the store id.
      • getUserId

        java.lang.Long getUserId()
        This method gets the user id.
        Returns:
        This method returns a Long object that represents the user id.
      • resetStoreRef

        void resetStoreRef()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method resets the EJB reference to the store access bean.
      • setCurrency

        void setCurrency(java.lang.String value)
        Deprecated. This method has been replaced by GlobalizationContext.setCurrency(String)
        Reserved for IBM internal use. This method sets the currency to be used for this command.
      • setCurrentTradingAgreements

        void setCurrentTradingAgreements(TradingAgreementAccessBean[] contracts)
        Deprecated. This method has been replaced by ContractCmdUtil.setCurrentTradingAgreements(TradingAgreementAccessBean[], CommandContext)
        Reserved for IBM internal use. This method sets the current trading agreements.
        Parameters:
        contracts - This is an array of TradingAgreementAccessBean objects that represent the trading agreements.
      • setEligibleTradingAgreementIdsAsString

        void setEligibleTradingAgreementIdsAsString(java.lang.String newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the eligible trading agreement IDs as a string.
        Parameters:
        newValue - This is a String object that represents the eligible trading agreement ids.
      • setLanguageId

        void setLanguageId(java.lang.Integer newValue)
        Reserved for IBM internal use. This method sets the negotiated language ID associated with this command.
        Parameters:
        newValue - This is an Integer object.
      • setLocale

        void setLocale(java.util.Locale newValue)
        Reserved for IBM internal use. This method sets the locale for the command.
        Parameters:
        newValue - This is a Locale object that represents the locale / preference locale for the user.
      • setLocaleVariant

        void setLocaleVariant(java.lang.String value)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the locale variant to be used for this request.
        Parameters:
        value - This is a String object that represents the language.
      • setPreferredLanguage

        void setPreferredLanguage(java.lang.Integer value)
        Reserved for IBM internal use. This method sets the preferred language for this request.
        Parameters:
        value - This is an Integer object that represents the language id.
      • setSessionTradingAgreementIdsAsString

        void setSessionTradingAgreementIdsAsString(java.lang.String newValue)
        Deprecated. This method has been replaced by com.ibm.commerce.context.entitlement.EntitlementContext#setSessionTradingAgreementIdsAsString(String)
        Reserved for IBM internal use. This method sets the session trading agreement ids.
        Parameters:
        newValue - This is a String object that represents the trading agreement ids.
      • getEncElgContr

        java.lang.String getEncElgContr()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the encrypted eligible contracts.
        Returns:
        This method returns a java.lang.String object.
      • getEncCurContr

        java.lang.String getEncCurContr()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the encrypted current contracts.
        Returns:
        This method returns a java.lang.String object.
      • getEncSesContr

        java.lang.String getEncSesContr()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the encrypted session contracts.
        Returns:
        This method returns encrypted session contracts.
      • setEncCurContr

        void setEncCurContr(java.lang.String newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the encrypted current contracts.
        Parameters:
        newValue - This is an object that represents the encrypted current contracts.
      • setEncParOrg

        void setEncParOrg(java.lang.String newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the encrypted parent organization.
        Parameters:
        newValue - This is the encrypted parent organization.
      • setEncSesContr

        void setEncSesContr(java.lang.String newValue)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the encrypted session contract.
        Parameters:
        newValue - This is the encrypted session contract.
      • getCurrentTradingAgreementIdsAsString

        java.lang.String getCurrentTradingAgreementIdsAsString()
                                                        throws ECException
        Deprecated. This method has been replaced by EntitlementContext.getCurrentTradingAgreementIds()
        Reserved for IBM internal use. This method gets the current trading agreement IDs as a string separated by ";".
        Returns:
        This method returns a String object.
        Throws:
        ECException
      • setForStoreId

        void setForStoreId(java.lang.Integer val)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the for forStoreId.
        Parameters:
        val - This is an Integer object.
      • setEncoding

        void setEncoding(java.lang.String encoding)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the character encoding.
        Parameters:
        encoding - This is the character encoding to set.
      • setTransactionCache

        com.ibm.commerce.datatype.CustomProperties setTransactionCache(com.ibm.commerce.datatype.CustomProperties aCustomProperties)
        This method sets the cache of custom properties. The cache contents can be cleared by the CommandContext at any time.
        Returns:
        This method returns the previous cache of custom properties.
      • setActivityToken

        void setActivityToken(ActivityToken token)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the activity token associated with this request.
        Parameters:
        token - This is the activity token.
      • buildRedirectUrl

        java.lang.String buildRedirectUrl(TypedProperty prop)
                                   throws ECApplicationException
        Deprecated. This method has no replacement. A view should be used for redirection.
        Reserved for IBM internal use. This method returns a redirect URL based on the properties.
        Parameters:
        prop - This is a TypedProperty object that represents the parameters for the redirect URL.
        Throws:
        ECApplicationException
      • getDefaultDeviceFormat

        java.lang.Integer getDefaultDeviceFormat()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the default device type which is used to locate a view command implementation from the URL configuration when no view command is defined for the input device type.
        Returns:
        This method returns the default device type
      • getDeviceFormatAdapter

        com.ibm.commerce.adapter.DeviceFormatAdapter getDeviceFormatAdapter()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the device format adapter associated with this command.
        Returns:
        This method returns a DeviceFormatAdapter object.
      • getDeviceFormatId

        java.lang.Integer getDeviceFormatId()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the device format ID for the adapter associated with this request.
        Returns:
        This method returns the device format id.
      • getDeviceFormatTypeId

        java.lang.Integer getDeviceFormatTypeId()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the device type associated with this request which is used for locating view commands from the VIEWREG table.
        Returns:
        This method returns an Integer object.
      • getDeviceType

        java.lang.Integer getDeviceType()
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method gets the device format type associated with this request.
        Returns:
        This method returns an Integer object.
      • getDocumentPathName

        java.lang.String getDocumentPathName(java.lang.String baseName)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method returns the actual output document path name given a base name.
        Parameters:
        baseName - This is a String object that represents the base name of the document.
        Returns:
        This method returns a String object that represents the actual output document name.
      • getRedirectionURL

        java.lang.String getRedirectionURL()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the redirect URL for this request.
        Returns:
        This method returns a String object.
      • getRemoteAddr

        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()
        Reserved for IBM internal use. This method gets the address of the remote host.
        Returns:
        This method returns a String object.
      • getRemoteHost

        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()
        Reserved for IBM internal use. This method gets the name of the remote host.
        Returns:
        This method returns a String object.
      • getViewCommand

        java.lang.String getViewCommand()
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method gets the view task associated with this command.
        Returns:
        This method returns the view command name.
      • getSessionContext

        com.ibm.commerce.adapter.SessionContext getSessionContext()
                                                           throws ECException
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method returns a session context associated with this request.
        Returns:
        This method returns a SessionContext object.
        Throws:
        ECException
      • getSessionData

        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.
        Reserved for IBM internal use. This method gets the session data associated with this request.
        Returns:
        This method returns a SessionData object.
      • setDefaultDeviceFormat

        void setDefaultDeviceFormat(java.lang.Integer newValue)
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method sets the default device format type for this request.
        Parameters:
        newValue - This is an Integer object that represents the device format type.
      • setDeviceFormatAdapter

        void setDeviceFormatAdapter(com.ibm.commerce.adapter.DeviceFormatAdapter newValue)
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method sets the device format adapter used for this request.
        Parameters:
        newValue - This is a DeviceFormatAdapter object.
      • setDeviceFormatId

        void setDeviceFormatId(java.lang.Integer newValue)
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method sets the device format ID for this request.
        Parameters:
        newValue - This is an Integer object that represents the device format id.
      • setDeviceFormatTypeId

        void setDeviceFormatTypeId(java.lang.Integer newValue)
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method sets the device format type ID for this request.
        Parameters:
        newValue - This is an Integer object that represents the device format type id.
      • setDeviceType

        void setDeviceType(java.lang.Integer newValue)
        Deprecated. This method has no replacement.
        Reserved for IBM internal use. This method sets the device type for this request.
        Parameters:
        newValue - This is an Integer object that represents the device type.
      • setRedirectionURL

        void setRedirectionURL(java.lang.String value)
        Deprecated. The URL should be set in the response property instead.
        Reserved for IBM internal use. This method sets the redirect URL name.
        Parameters:
        value - This is a String object that represents the redirect URL name.
      • setRemoteAddr

        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()
        Reserved for IBM internal use. This method sets the remote host address.
        Parameters:
        newRemoteAddr - This is a String object.
      • setRemoteHost

        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()
        Reserved for IBM internal use. This method sets the remote host name.
        Parameters:
        newRemoteHost - This is a String object
      • getRequest

        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.
        This method gets the controller request object associated with this request.
        Returns:
        This method returns the request object.
      • getResponse

        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.
        This method gets the response object associated with this request.
        Returns:
        This method returns the response object.
      • getUniqueSessionTag

        java.lang.String getUniqueSessionTag()
        Deprecated. This method has been replaced by CommandContextHelper.getUniqueSessionTag(CommandContext)
        Reserved for IBM internal use. This method returns a tag that is unique for the session.
        Returns:
        This method returns a String object.
      • setRequest

        void setRequest(java.lang.Object value)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the controller request object associated with this command.
        Parameters:
        value - This is an Object that represents the request.
      • setResponse

        void setResponse(java.lang.Object value)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the response object associated with this command.
        Parameters:
        value - This is an Object that represents the response.
      • getWebpath

        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.
        Reserved for IBM internal use. This method returns the Web path for an HTTP request.
        Returns:
        This method returns a java.lang.String object.
      • setWebpath

        void setWebpath(java.lang.String webpath)
        Deprecated. This method has no replacement. It should not be called.
        Reserved for IBM internal use. This method sets the Web path associated with this command.
        Parameters:
        webpath - This is a String object.
      • getCallerId

        java.lang.Long getCallerId()
        This method gets the original caller id of this request.
        Returns:
        This method returns the caller id.
      • getActiveOrganizationId

        java.lang.Long getActiveOrganizationId()
                                        throws ECException
        Deprecated. This method has been replaced by EntitlementContext.getActiveOrganizationId()
        This method gets the active organization for the current store. The default is the user's parent organization.
        Returns:
        This method returns the member ID of the organization.
        Throws:
        ECException
      • setActiveOrganizationId

        void setActiveOrganizationId(java.lang.Long nOrganizationId)
                              throws ECException
        Deprecated. This method has been replaced by com.ibm.commerce.context.entitlement.EntitlementContext#setActiveOrganizationId()
        This method sets the active organization for the current store.
        Parameters:
        nOrganizationId - This is the member id of the organization.
        Throws:
        ECException
      • initializeStickyUser

        void initializeStickyUser()
                           throws ECException
        Reserved for IBM internal use. This method sets up the sticky user properly in the command context.
        Throws:
        ECException
      • establishStickyUser

        void establishStickyUser(java.lang.Long nUserId)
                          throws ECException
        Reserved for IBM internal use. This method sets the forUserId to be used for this request and subsequent requests.
        Parameters:
        nUserId - This is the userId to be sticky.
        Throws:
        ECException
      • clearStickyUser

        boolean clearStickyUser()
                         throws ECException
        Reserved for IBM internal use. This method clears the current sticky forUserId from the session.
        Returns:
        This method returns a boolean value; true if there was a stickyUserId to clear and false otherwise.
        Throws:
        ECException
      • setStickyUserId

        void setStickyUserId(java.lang.Long nUserId)
        Reserved for IBM internal use. This method sets the sticky forUserId.
      • getStickyUserId

        java.lang.Long getStickyUserId()
                                throws ECException
        Reserved for IBM internal use. This method gets the sticky forUserId.
        Throws:
        ECException
      • getStickyActiveOrganizationId

        java.lang.Long getStickyActiveOrganizationId()
                                              throws ECException
        Reserved for IBM internal use. This method gets the sticky active organization Id for the sticky user.
        Returns:
        This method returns the active organization Id.
        Throws:
        ECException
      • setStickyActiveOrganizationId

        void setStickyActiveOrganizationId(java.lang.Long nActiveOrganizationId)
        Reserved for IBM internal use. This method sets the sticky active organization Id for the sticky user.
        Parameters:
        nActiveOrganizationId - This is the active organization Id.
      • getOrginalUserId

        java.lang.Long getOrginalUserId()
                                 throws ECException
        Deprecated. This method has been replaced by getOriginalUserId()
        Reserved for IBM internal use. This method gets the original userId.
        Throws:
        ECException