Class CacheableUserHandlerImpl
java.lang.Object
org.exoplatform.services.organization.idm.AbstractDAOImpl
org.exoplatform.services.organization.idm.UserDAOImpl
org.exoplatform.services.organization.idm.cache.CacheableUserHandlerImpl
- All Implemented Interfaces:
org.exoplatform.services.organization.UserHandler
-
Field Summary
Fields inherited from class org.exoplatform.services.organization.idm.UserDAOImpl
dateFormat, USER_CREATED_DATE, USER_DISPLAY_NAME, USER_EMAIL, USER_ENABLED, USER_FIRST_NAME, USER_LAST_LOGIN_TIME, USER_LAST_NAME, USER_NON_PROFILE_KEYS, USER_ORGANIZATION_ID, USER_PASSWORD, USER_PASSWORD_SALT, USER_PASSWORD_SALT128Fields inherited from class org.exoplatform.services.organization.idm.AbstractDAOImpl
log, orgService, service_ -
Constructor Summary
ConstructorsConstructorDescriptionCacheableUserHandlerImpl(org.exoplatform.services.organization.cache.OrganizationCacheHandler organizationCacheHandler, PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String username, String password) voidvoidclearCache(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 behindvoidcreateUser(org.exoplatform.services.organization.User user, boolean broadcast) voidvoidorg.exoplatform.services.organization.UserfindUserByName(String userName, org.exoplatform.services.organization.UserStatus status) protected voidonUserRemoved(String userName) Called once the removal of the user is flushed to the IDM session and before its post listeners run.protected voidonUserWritten(String userName) 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.org.exoplatform.services.organization.UserremoveUser(String userName, boolean broadcast) voidsaveUser(org.exoplatform.services.organization.User user, boolean broadcast) org.exoplatform.services.organization.UsersetEnabled(String userName, boolean enabled, boolean automaticDeactivation, boolean broadcast) Methods inherited from class org.exoplatform.services.organization.idm.UserDAOImpl
addDecoratorPlugin, addUserEventListener, authenticateDB, authenticateExternal, createUserInstance, createUserInstance, disableInactiveUsers, executeWithTransaction, findAllUsers, findAllUsers, findUserByEmail, findUserByName, findUserByUniqueAttribute, findUsers, findUsersByGroup, findUsersByGroupId, findUsersByGroupId, findUsersByQuery, findUsersByQuery, findUsersByQuery, getOrgService, getPopulatedUser, getUserEventListeners, getUserPageList, persistUserInfo, persistUserInfo, populateUser, removeUserEventListener, restartTransaction, setEnabledMethods inherited from class org.exoplatform.services.organization.idm.AbstractDAOImpl
getIdentitySession, handleExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.organization.UserHandler
isUpdateLastLoginTime
-
Constructor Details
-
CacheableUserHandlerImpl
public CacheableUserHandlerImpl(org.exoplatform.services.organization.cache.OrganizationCacheHandler organizationCacheHandler, PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService)
-
-
Method Details
-
removeUser
public org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception - Specified by:
removeUserin interfaceorg.exoplatform.services.organization.UserHandler- Overrides:
removeUserin classUserDAOImpl- Throws:
Exception
-
authenticate
- Specified by:
authenticatein interfaceorg.exoplatform.services.organization.UserHandler- Overrides:
authenticatein classUserDAOImpl- Throws:
Exception
-
saveUser
public void saveUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception - Specified by:
saveUserin interfaceorg.exoplatform.services.organization.UserHandler- Overrides:
saveUserin classUserDAOImpl- Throws:
Exception
-
createUser
public void createUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception - Specified by:
createUserin interfaceorg.exoplatform.services.organization.UserHandler- Overrides:
createUserin classUserDAOImpl- Throws:
Exception
-
setEnabled
public org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean automaticDeactivation, boolean broadcast) throws Exception - Overrides:
setEnabledin classUserDAOImpl- Throws:
Exception
-
findUserByName
public org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus status) throws Exception - Specified by:
findUserByNamein interfaceorg.exoplatform.services.organization.UserHandler- Overrides:
findUserByNamein classUserDAOImpl- Throws:
Exception
-
onUserRemoved
Description copied from class:UserDAOImplCalled 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:
onUserRemovedin classUserDAOImpl- Parameters:
userName- the removed user's name as stored, or the name as given when the store holds no such user
-
onUserWritten
Description copied from class:UserDAOImplCalled 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:
onUserWrittenin classUserDAOImpl- Parameters:
userName- the user's name as stored
-
clearCache
public void clearCache() -
clearCache
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()
-