com.ibm.commerce.foundation.internal.server.services.context

Class RemoteContextServiceFactory

  • java.lang.Object
    • com.ibm.commerce.foundation.internal.server.services.context.RemoteContextServiceFactory


  • public class RemoteContextServiceFactory
    extends java.lang.Object
    The factory class that returns the proper instance of the ContextService that should be used by the application. This class is used when you want to override the default implementation of Remote Business Context Service. To override the default implementation, define the implementation class in the property file: com.ibm.commerce.foundation.server.services.context. RemoteContextServiceFactory.properties
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • BASE_CONTEXT_STORE

        public static final java.lang.String BASE_CONTEXT_STORE
        This is the name of the store context.
        See Also:
        Constant Field Values
      • BASE_CONTEXT_USER

        public static final java.lang.String BASE_CONTEXT_USER
        This is the name of the user context.
        See Also:
        Constant Field Values
      • BASE_CONTEXT_IS_SECURE

        public static final java.lang.String BASE_CONTEXT_IS_SECURE
        This is the name of the user context.
        See Also:
        Constant Field Values
      • BASE_CONTEXT_IS_IN_PREVIEW

        public static final java.lang.String BASE_CONTEXT_IS_IN_PREVIEW
        This is the name of the base context.
        See Also:
        Constant Field Values
      • TIMESTAMP_IN_PREVIEW_CONTEXT

        public static final java.lang.String TIMESTAMP_IN_PREVIEW_CONTEXT
        This is the name of the timestamp in the preview context.
        See Also:
        Constant Field Values
      • BASE_CONTEXT_MESSAGE_CONTEXT

        public static final java.lang.String BASE_CONTEXT_MESSAGE_CONTEXT
        This is the name of the http request context.
        See Also:
        Constant Field Values
      • BASE_CTX_RUNASID

        public static final java.lang.String BASE_CTX_RUNASID
        This is the name of the run-as user context.
        See Also:
        Constant Field Values
      • GLOBALIZATION_CONTEXT_LANGUAGE

        public static final java.lang.String GLOBALIZATION_CONTEXT_LANGUAGE
        This is the name of the globalization context for language.
        See Also:
        Constant Field Values
      • GLOBALIZATION_CONTEXT_CURRENCY

        public static final java.lang.String GLOBALIZATION_CONTEXT_CURRENCY
        This is the name of the globalization context for currency.
        See Also:
        Constant Field Values
      • CATALOG_CONTEXT_CATALOG

        public static final java.lang.String CATALOG_CONTEXT_CATALOG
        This is the name of the catalog context.
        See Also:
        Constant Field Values
      • CONTENT_CONTEXT_SCHEMA

        public static final java.lang.String CONTENT_CONTEXT_SCHEMA
        This is the name of the read schema from content context.
        See Also:
        Constant Field Values
      • ENTITLEMENT_CONTEXT_CURRENT_CONTRACT

        public static final java.lang.String ENTITLEMENT_CONTEXT_CURRENT_CONTRACT
        This is the name of current trading agreement from entitlement context.
        See Also:
        Constant Field Values
      • ENTITLEMENT_CONTEXT_ELIGIBLE_CONTRACT

        public static final java.lang.String ENTITLEMENT_CONTEXT_ELIGIBLE_CONTRACT
        This is the name of eligible trading agreement from entitlement context.
        See Also:
        Constant Field Values
      • ENTITLEMENT_CONTEXT_HOSTING_CONTRACT

        public static final java.lang.String ENTITLEMENT_CONTEXT_HOSTING_CONTRACT
        This is the name of hosting contract from entitlement context.
        See Also:
        Constant Field Values
      • SESSION_IS_PARTIALLY_AUTHENTICATED

        public static final java.lang.String SESSION_IS_PARTIALLY_AUTHENTICATED
        This flag indicates if the session is partially authenticated.
        See Also:
        Constant Field Values
    • Method Detail

      • getContextAsString

        public static java.lang.String getContextAsString(java.lang.String contextName)
        Returns the implementation of the context service to use.
        Parameters:
        contextName - Name of the given context object
        Returns:
        String value of the given context object
      • getContextService

        public static ContextService getContextService()
        Returns the implementation of the context service to use.
        Returns:
        Implementation of the context service
      • getContextObject

        public static java.lang.Object getContextObject(java.lang.String contextName)
        Returns the given context object from the thread.
        Parameters:
        contextName - Name of the given context object
        Returns:
        Object of the given context
      • setContextObject

        public static void setContextObject(java.lang.String contextName,
                                            java.lang.Object contextObject)
        Saves the given context object into the thread so that it can be retrieved later on within the same transaction.
        Parameters:
        contextName - Name of the given context object
        contextObject - Object of the given context