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 org.exoplatform.services.organization.idm.AbstractDAOImpl
log, orgService, service_ -
Constructor Summary
ConstructorsConstructorDescriptionUserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUserEventListener(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) 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) 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) voidpopulateUser(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) Methods 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
-
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
public void createUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception - Specified by:
createUserin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
saveUser
public void saveUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception - Specified by:
saveUserin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
setEnabled
public org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception - Specified by:
setEnabledin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
removeUser
public org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception - Specified by:
removeUserin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUserByName
- Specified by:
findUserByNamein interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUserByName
public org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Specified by:
findUserByNamein interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
getUserPageList
public org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> getUserPageList(int pageSize) throws Exception - Specified by:
getUserPageListin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findAllUsers
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers() throws Exception- Specified by:
findAllUsersin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findAllUsers
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers(org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Specified by:
findAllUsersin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
authenticate
- Specified by:
authenticatein interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
authenticateExternal
- Throws:
Exception
-
authenticateDB
public boolean authenticateDB(org.exoplatform.services.organization.User user, String password) throws Exception - Throws:
Exception
-
findUsers
public org.exoplatform.commons.utils.LazyPageList findUsers(org.exoplatform.services.organization.Query q) throws Exception - Specified by:
findUsersin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUsersByQuery
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q) throws Exception - Specified by:
findUsersByQueryin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
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
- Specified by:
findUsersByGroupin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
findUserByEmail
- Throws:
Exception
-
findUserByUniqueAttribute
public org.exoplatform.services.organization.User findUserByUniqueAttribute(String attributeName, String attributeValue, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Throws:
Exception
-
findUsersByGroupId
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId) throws Exception - Specified by:
findUsersByGroupIdin interfaceorg.exoplatform.services.organization.UserHandler- Throws:
Exception
-
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
-
persistUserInfo
public void persistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session, boolean isNew) throws Exception - Throws:
Exception
-
persistUserInfo
public void persistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.User plIDMUser, org.picketlink.idm.api.IdentitySession session, boolean isNew) throws Exception - Throws:
Exception
-
getPopulatedUser
public org.exoplatform.services.organization.User getPopulatedUser(String userName, org.picketlink.idm.api.IdentitySession session, org.exoplatform.services.organization.UserStatus userStatus) throws Exception - Throws:
Exception
-
populateUser
public void populateUser(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session) throws Exception - Throws:
Exception
-
getOrgService
-
executeWithTransaction
-
restartTransaction
protected int restartTransaction()
-