Class UserInfoCache

java.lang.Object
com.google.common.cache.CacheLoader<String,UserInfo>
com.suncode.pwfl.administration.user.UserInfoCache
All Implemented Interfaces:
Serializable, org.hibernate.event.spi.PostUpdateEventListener

@Component @EntityEventListener("post-commit-update") public class UserInfoCache extends com.google.common.cache.CacheLoader<String,UserInfo> implements org.hibernate.event.spi.PostUpdateEventListener
Cache użytkowników na potrzeby kontekstu użytkownika.
Author:
Cezary Kozar 9 sie 2016
See Also:
  • Constructor Details

    • UserInfoCache

      public UserInfoCache()
  • Method Details

    • get

      public static UserInfoCache get()
    • get

      public UserInfo get(String user)
    • clear

      public void clear(String... users)
    • clearAll

      public void clearAll()
    • load

      public UserInfo load(String key) throws Exception
      Specified by:
      load in class com.google.common.cache.CacheLoader<String,UserInfo>
      Throws:
      Exception
    • onPostUpdate

      public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
      Specified by:
      onPostUpdate in interface org.hibernate.event.spi.PostUpdateEventListener
    • requiresPostCommitHanding

      public boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister entityPersister)
    • requiresPostCommitHandling

      default boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)