Class CacheableUserHandlerImpl

All Implemented Interfaces:
org.exoplatform.services.organization.UserHandler

public class CacheableUserHandlerImpl extends UserDAOImpl
  • Constructor Details

  • Method Details

    • removeUser

      public org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception
      Specified by:
      removeUser in interface org.exoplatform.services.organization.UserHandler
      Overrides:
      removeUser in class UserDAOImpl
      Throws:
      Exception
    • authenticate

      public boolean authenticate(String username, String password) throws Exception
      Specified by:
      authenticate in interface org.exoplatform.services.organization.UserHandler
      Overrides:
      authenticate in class UserDAOImpl
      Throws:
      Exception
    • saveUser

      public void saveUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception
      Specified by:
      saveUser in interface org.exoplatform.services.organization.UserHandler
      Overrides:
      saveUser in class UserDAOImpl
      Throws:
      Exception
    • createUser

      public void createUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception
      Specified by:
      createUser in interface org.exoplatform.services.organization.UserHandler
      Overrides:
      createUser in class UserDAOImpl
      Throws:
      Exception
    • setEnabled

      public org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean automaticDeactivation, boolean broadcast) throws Exception
      Overrides:
      setEnabled in class UserDAOImpl
      Throws:
      Exception
    • findUserByName

      public org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus status) throws Exception
      Specified by:
      findUserByName in interface org.exoplatform.services.organization.UserHandler
      Overrides:
      findUserByName in class UserDAOImpl
      Throws:
      Exception
    • onUserRemoved

      protected void onUserRemoved(String userName)
      Description copied from class: UserDAOImpl
      Called once the removal of the user is flushed to the IDM session and before its post listeners run. A handler that caches users, their profiles or their memberships evicts them here.
      Overrides:
      onUserRemoved in class UserDAOImpl
      Parameters:
      userName - the removed user's name as stored, or the name as given when the store holds no such user
    • onUserWritten

      protected void onUserWritten(String userName)
      Description copied from class: UserDAOImpl
      Called once a write of the user is flushed to the IDM session and before its post listeners run, each in a transaction restart that commits the write first. A handler that caches users evicts the user here.
      Overrides:
      onUserWritten in class UserDAOImpl
      Parameters:
      userName - the user's name as stored
    • clearCache

      public void clearCache()
    • clearCache

      public void clearCache(String userName)
      Evicts one account, by its stored login, so that the next read reaches the store: a writer that bypassed this handler left the cached copy behind
      Parameters:
      userName - the stored login
    • disableCache

      public void disableCache()
    • enableCache

      public void enableCache()