public class UserHandlerImpl extends JCROrgServiceHandler implements org.exoplatform.services.organization.UserHandler, org.exoplatform.services.organization.UserEventListenerHandler, org.exoplatform.services.organization.ExtendedUserHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
UserHandlerImpl.UserProperties
Class contains the names of user properties only.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<org.exoplatform.services.organization.UserEventListener> |
listeners
The list of listeners to broadcast the events.
|
cache, groupHandler, LOG, membershipHandler, service, typeHandler, userHandler, userProfileHandler, utils| Modifier and Type | Method and Description |
|---|---|
void |
addUserEventListener(org.exoplatform.services.organization.UserEventListener listener) |
boolean |
authenticate(String username,
String password) |
boolean |
authenticate(String userName,
String password,
org.exoplatform.services.security.PasswordEncrypter pe) |
void |
createUser(org.exoplatform.services.organization.User user,
boolean broadcast) |
org.exoplatform.services.organization.User |
createUserInstance() |
org.exoplatform.services.organization.User |
createUserInstance(String username) |
org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> |
findAllUsers() |
org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> |
findAllUsers(org.exoplatform.services.organization.UserStatus status) |
org.exoplatform.services.organization.User |
findUserByName(String userName) |
org.exoplatform.services.organization.User |
findUserByName(String userName,
org.exoplatform.services.organization.UserStatus status) |
org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> |
findUsers(org.exoplatform.services.organization.Query query) |
org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> |
findUsersByGroup(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 status) |
org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> |
findUsersByQuery(org.exoplatform.services.organization.Query query) |
org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> |
findUsersByQuery(org.exoplatform.services.organization.Query query,
org.exoplatform.services.organization.UserStatus status) |
List<org.exoplatform.services.organization.UserEventListener> |
getUserListeners() |
org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> |
getUserPageList(int pageSize) |
UserImpl |
readUser(javax.jcr.Node userNode)
Read user properties from the node in the storage.
|
org.exoplatform.services.organization.User |
removeUser(String userName,
boolean broadcast) |
void |
removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
Remove registered listener.
|
void |
saveUser(org.exoplatform.services.organization.User user,
boolean broadcast) |
org.exoplatform.services.organization.User |
setEnabled(String userName,
boolean enabled,
boolean broadcast) |
protected final List<org.exoplatform.services.organization.UserEventListener> listeners
public boolean authenticate(String username, String password) throws Exception
authenticate in interface org.exoplatform.services.organization.UserHandlerExceptionpublic boolean authenticate(String userName, String password, org.exoplatform.services.security.PasswordEncrypter pe) throws Exception
authenticate in interface org.exoplatform.services.organization.ExtendedUserHandlerExceptionpublic void createUser(org.exoplatform.services.organization.User user,
boolean broadcast)
throws Exception
createUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User createUserInstance()
createUserInstance in interface org.exoplatform.services.organization.UserHandlerpublic org.exoplatform.services.organization.User createUserInstance(String username)
createUserInstance in interface org.exoplatform.services.organization.UserHandlerpublic org.exoplatform.services.organization.User findUserByName(String userName) throws Exception
findUserByName in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> findUsers(org.exoplatform.services.organization.Query query)
throws Exception
findUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> findUsersByGroup(String groupId) throws Exception
findUsersByGroup in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> getUserPageList(int pageSize)
throws Exception
getUserPageList in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers()
throws Exception
findAllUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId) throws Exception
findUsersByGroupId in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query query)
throws Exception
findUsersByQuery in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception
removeUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic void saveUser(org.exoplatform.services.organization.User user,
boolean broadcast)
throws Exception
saveUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception, UnsupportedOperationException
setEnabled in interface org.exoplatform.services.organization.UserHandlerExceptionUnsupportedOperationExceptionpublic org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus status) throws Exception
findUserByName in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId, org.exoplatform.services.organization.UserStatus status) throws Exception
findUsersByGroupId in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers(org.exoplatform.services.organization.UserStatus status)
throws Exception
findAllUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query query,
org.exoplatform.services.organization.UserStatus status)
throws Exception
findUsersByQuery in interface org.exoplatform.services.organization.UserHandlerExceptionpublic UserImpl readUser(javax.jcr.Node userNode) throws Exception
userNode - the node where user properties are storedUserExceptionpublic void addUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
addUserEventListener in interface org.exoplatform.services.organization.UserHandlerpublic void removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
removeUserEventListener in interface org.exoplatform.services.organization.UserHandlerlistener - The registered listener for removepublic List<org.exoplatform.services.organization.UserEventListener> getUserListeners()
getUserListeners in interface org.exoplatform.services.organization.UserEventListenerHandlerCopyright © 2003–2020 eXo Platform SAS. All rights reserved.