Class CachedPersistedSessionRepository

java.lang.Object
de.hybris.platform.servicelayer.web.session.CachedPersistedSessionRepository
All Implemented Interfaces:
org.springframework.session.SessionRepository

public class CachedPersistedSessionRepository extends Object implements org.springframework.session.SessionRepository
  • Field Details

  • Constructor Details

    • CachedPersistedSessionRepository

      public CachedPersistedSessionRepository(org.springframework.core.serializer.Deserializer deserializer, SessionPersister sessionPersister, String extension, String contextRoot)
  • Method Details

    • createSession

      public org.springframework.session.Session createSession()
      Specified by:
      createSession in interface org.springframework.session.SessionRepository
    • save

      public void save(org.springframework.session.Session session)
      Specified by:
      save in interface org.springframework.session.SessionRepository
    • getSession

      public org.springframework.session.Session getSession(String id)
      Specified by:
      getSession in interface org.springframework.session.SessionRepository
    • delete

      public void delete(String id)
      Specified by:
      delete in interface org.springframework.session.SessionRepository
    • executeWithoutClosingJaloSessionOnDelete

      public static void executeWithoutClosingJaloSessionOnDelete(Runnable runnable)
      Spring Session invalidates session by deleting current one, creating new and copying all attributes. This method prevents call to CachedPersistedSessionRepository.delete from closing jalosession because it will be copied to new http session and cannot be closed!
      Parameters:
      runnable - runnable
    • createCachedPersistedSession

      protected PersistedSession createCachedPersistedSession()
    • saveCachedPersistedSession

      protected void saveCachedPersistedSession(org.springframework.session.Session session)
    • getCachedPersistedSession

      protected PersistedSession getCachedPersistedSession(String id)
    • removeCachedPersistedSession

      protected void removeCachedPersistedSession(String id)
    • closeJaloSession

      protected void closeJaloSession(String id)
    • loadFromPersistenceAndDeserialize

      protected PersistedSession loadFromPersistenceAndDeserialize(String id)
    • createNewSession

      protected PersistedSession createNewSession(String id)