Interface SnSessionService

All Known Implementing Classes:
DefaultSnSessionService

public interface SnSessionService
Service for session related functionality.

Code creating/destroying session contexts should normally use the following pattern:

 try
 {
        snSessionService.initializeSession(...);

        // put your logic here
 }
 finally
 {
        snSessionService.destroySession();
 }
 
  • Method Details

    • initializeSession

      void initializeSession()
      Initializes a new local session.
    • updateSessionForContext

      void updateSessionForContext(SnContext context)
      Updates the current session for the given context, it uses session attributes from the context (e.g.: user, catalog versions).
      Parameters:
      context - - the context
    • destroySession

      void destroySession()
      Destroys the current local session.
    • enableSearchRestrictions

      void enableSearchRestrictions()
      Enables search restrictions in current session.
    • disableSearchRestrictions

      void disableSearchRestrictions()
      Disables search restrictions in current session.