Class AnonUserService
java.lang.Object
dev.getelements.elements.service.user.AbstractUserService
dev.getelements.elements.service.user.AnonUserService
- All Implemented Interfaces:
UserService
- Direct Known Subclasses:
UserUserService
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.service.user.UserService
CURRENT_USER_ALIAS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUser
(UserCreateRequest userCreateRequest) Creates a new user.void
deleteUser
(String userId) Removes a user from the system, effectively deleting his/her account.Gets a user with unique user ID.getUsers
(int offset, int count) Gets a list of users the current user can see.Gets a list of users the current user can see.void
setMapper
(MapperRegistry mapperRegistry) void
setPasswordGenerator
(PasswordGenerator passwordGenerator) void
setUserDao
(UserDao userDao) updateUser
(String userId, UserUpdateRequest userUpdateRequest) Updates a user, preserving the user's password.updateUserPassword
(String userId, UserUpdatePasswordRequest userUpdatePasswordRequest) Updates the User's password given theUserUpdatePasswordRequest
and the user ID.Methods inherited from class dev.getelements.elements.service.user.AbstractUserService
createProfile, createProfiles, getApplicationDao, getCurrentUser, getNameService, getProfileDao, getSuperUserProfileService, setApplicationDao, setCurrentUser, setNameService, setProfileDao, setSuperUserProfileService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.service.user.UserService
checkForCurrentUser, getCurrentUser, isCurrentUser, isCurrentUserAlias
-
Constructor Details
-
AnonUserService
public AnonUserService()
-
-
Method Details
-
getUser
Description copied from interface:UserService
Gets a user with unique user ID.- Specified by:
getUser
in interfaceUserService
- Parameters:
userId
- the UserId- Returns:
- the user ID
-
getUsers
Description copied from interface:UserService
Gets a list of users the current user can see.- Specified by:
getUsers
in interfaceUserService
- Parameters:
offset
- the offsetcount
- the count- Returns:
- the PaginatedEntry of users
-
getUsers
Description copied from interface:UserService
Gets a list of users the current user can see.- Specified by:
getUsers
in interfaceUserService
- Parameters:
offset
- the offsetcount
- the countsearch
- the search query- Returns:
- the PaginatedEntry of users
-
createUser
Description copied from interface:UserService
Creates a new user. The service may override or reject the request based on the current user access level.- Specified by:
createUser
in interfaceUserService
- Parameters:
userCreateRequest
- the user to create- Returns:
- the User, as it was created by the database
-
getMapper
-
setMapper
-
updateUser
Description copied from interface:UserService
Updates a user, preserving the user's password.- Specified by:
updateUser
in interfaceUserService
- Parameters:
userId
- the user ID to updateuserUpdateRequest
- the user to update- Returns:
- the User, as it was updated
-
updateUserPassword
public SessionCreation updateUserPassword(String userId, UserUpdatePasswordRequest userUpdatePasswordRequest) Description copied from interface:UserService
Updates the User's password given theUserUpdatePasswordRequest
and the user ID.- Specified by:
updateUserPassword
in interfaceUserService
- Parameters:
userId
- the user ID to updateuserUpdatePasswordRequest
- theUserUpdatePasswordRequest
instance- Returns:
- a
SessionCreation
indicating new session key
-
deleteUser
Description copied from interface:UserService
Removes a user from the system, effectively deleting his/her account.- Specified by:
deleteUser
in interfaceUserService
- Parameters:
userId
- the userId
-
getUserDao
-
setUserDao
-
getPasswordGenerator
-
setPasswordGenerator
-