Class UserDAOImpl
java.lang.Object
org.exoplatform.services.organization.idm.AbstractDAOImpl
org.exoplatform.services.organization.idm.UserDAOImpl
- All Implemented Interfaces:
org.exoplatform.services.organization.UserHandler
- Direct Known Subclasses:
CacheableUserHandlerImpl
public class UserDAOImpl
extends AbstractDAOImpl
implements org.exoplatform.services.organization.UserHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateFormatstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractDAOImpl
log, orgService, service_ -
Constructor Summary
ConstructorsConstructorDescriptionUserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDecoratorPlugin(UserDecoratorPlugin decoratorPlugin) voidaddUserEventListener(org.exoplatform.services.organization.UserEventListener listener) booleanauthenticate(String username, String password) booleanauthenticateDB(org.exoplatform.services.organization.User user, String password) booleanauthenticateExternal(String username, String password) voidcreateUser(org.exoplatform.services.organization.User user, boolean broadcast) org.exoplatform.services.organization.Userorg.exoplatform.services.organization.UsercreateUserInstance(String username) intdisableInactiveUsers(String groupId, int inactiveDays) voidexecuteWithTransaction(Runnable runnable) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers(org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.services.organization.UserfindUserByEmail(String email) org.exoplatform.services.organization.UserfindUserByName(String userName) org.exoplatform.services.organization.UserfindUserByName(String userName, org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.services.organization.UserfindUserByUniqueAttribute(String attributeName, String attributeValue, org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.commons.utils.LazyPageListfindUsers(org.exoplatform.services.organization.Query q) org.exoplatform.commons.utils.LazyPageListfindUsersByGroup(String groupId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId, org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query query, List<String> groupIds, org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q, org.exoplatform.services.organization.UserStatus userStatus) org.exoplatform.services.organization.UsergetPopulatedUser(String userName, org.picketlink.idm.api.IdentitySession session, org.exoplatform.services.organization.UserStatus userStatus) final List<org.exoplatform.services.organization.UserEventListener> org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> getUserPageList(int pageSize) 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.voidpersistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session, boolean isNew) voidpersistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.User plIDMUser, org.picketlink.idm.api.IdentitySession session, boolean isNew) org.exoplatform.services.organization.UserpopulateUser(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session) org.exoplatform.services.organization.UserremoveUser(String userName, boolean broadcast) voidremoveUserEventListener(org.exoplatform.services.organization.UserEventListener listener) protected intvoidsaveUser(org.exoplatform.services.organization.User user, boolean broadcast) org.exoplatform.services.organization.UsersetEnabled(String userName, boolean enabled, boolean broadcast) org.exoplatform.services.organization.UsersetEnabled(String userName, boolean enabled, boolean automaticDeactivation, boolean broadcast) Methods inherited from class AbstractDAOImpl
getIdentitySession, handleExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.organization.UserHandler
isUpdateLastLoginTime
-
Field Details
-
USER_PASSWORD
- See Also:
-
USER_PASSWORD_SALT
- See Also:
-
USER_FIRST_NAME
- See Also:
-
USER_LAST_NAME
- See Also:
-
USER_DISPLAY_NAME
- See Also:
-
USER_EMAIL
- See Also:
-
USER_CREATED_DATE
- See Also:
-
USER_LAST_LOGIN_TIME
- See Also:
-
USER_ORGANIZATION_ID
- See Also:
-
USER_ENABLED
- See Also:
-
USER_PASSWORD_SALT128
- See Also:
-
USER_NON_PROFILE_KEYS
-
dateFormat
-
-
Constructor Details
-
UserDAOImpl
public UserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService)
-
-
Method Details
-
getUserEventListeners
-
addUserEventListener
public void addUserEventListener(org.exoplatform.services.organization.UserEventListener listener) - Specified by:
addUserEventListenerin interfaceorg.exoplatform.services.organization.UserHandler
-
removeUserEventListener
public void removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener) - Specified by:
removeUserEventListenerin interfaceorg.exoplatform.services.organization.UserHandler
-
createUserInstance
public org.exoplatform.services.organization.User createUserInstance()- Specified by:
createUserInstancein interfaceorg.exoplatform.services.organization.UserHandler
-
createUserInstance
- Specified by:
createUserInstancein interfaceorg.exoplatform.services.organization.UserHandler
-
createUser
-
saveUser
-
setEnabled
-
setEnabled
-
removeUser
-
findUserByName
-
findUserByName
-
getUserPageList
-
findAllUsers
-
findAllUsers
-
authenticate
-
authenticateExternal
-
authenticateDB
-
findUsers
-
findUsersByQuery
-
disableInactiveUsers
- Specified by:
disableInactiveUsersin interfaceorg.exoplatform.services.organization.UserHandler
-
findUsersByQuery
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Specified by:
findUsersByQueryin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUsersByGroup
-
findUserByEmail
-
findUserByUniqueAttribute
-
findUsersByGroupId
-
findUsersByQuery
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query query, List<String> groupIds, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Specified by:
findUsersByQueryin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUsersByGroupId
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Specified by:
findUsersByGroupIdin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
onUserWritten
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.- Parameters:
userName- the user's name as stored
-
onUserRemoved
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.- Parameters:
userName- the removed user's name as stored, or the name as given when the store holds no such user
-
persistUserInfo
-
persistUserInfo
-
getPopulatedUser
-
addDecoratorPlugin
-
populateUser
-
getOrgService
-
executeWithTransaction
-
restartTransaction
protected int restartTransaction()
-