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 Summary
Modifier and TypeMethodDescriptionvoidDestroys the current local session.voidDisables search restrictions in current session.voidEnables search restrictions in current session.voidInitializes a new local session.voidupdateSessionForContext(SnContext context) Updates the current session for the given context, it uses session attributes from the context (e.g.: user, catalog versions).
-
Method Details
-
initializeSession
void initializeSession()Initializes a new local session. -
updateSessionForContext
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.
-