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.voiddeleteUser(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.voidsetMapper(MapperRegistry mapperRegistry) voidsetPasswordGenerator(PasswordGenerator passwordGenerator) voidsetUserDao(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 theUserUpdatePasswordRequestand the user ID.Methods inherited from class dev.getelements.elements.service.user.AbstractUserService
createProfile, createProfiles, getApplicationDao, getCurrentUser, getNameService, getProfileDao, getSuperUserProfileService, setApplicationDao, setCurrentUser, setNameService, setProfileDao, setSuperUserProfileServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:UserServiceGets a user with unique user ID.- Specified by:
getUserin interfaceUserService- Parameters:
userId- the UserId- Returns:
- the user ID
-
getUsers
Description copied from interface:UserServiceGets a list of users the current user can see.- Specified by:
getUsersin interfaceUserService- Parameters:
offset- the offsetcount- the count- Returns:
- the PaginatedEntry of users
-
getUsers
Description copied from interface:UserServiceGets a list of users the current user can see.- Specified by:
getUsersin interfaceUserService- Parameters:
offset- the offsetcount- the countsearch- the search query- Returns:
- the PaginatedEntry of users
-
createUser
Description copied from interface:UserServiceCreates a new user. The service may override or reject the request based on the current user access level.- Specified by:
createUserin interfaceUserService- Parameters:
userCreateRequest- the user to create- Returns:
- the User, as it was created by the database
-
getMapper
-
setMapper
-
updateUser
Description copied from interface:UserServiceUpdates a user, preserving the user's password.- Specified by:
updateUserin 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:UserServiceUpdates the User's password given theUserUpdatePasswordRequestand the user ID.- Specified by:
updateUserPasswordin interfaceUserService- Parameters:
userId- the user ID to updateuserUpdatePasswordRequest- theUserUpdatePasswordRequestinstance- Returns:
- a
SessionCreationindicating new session key
-
deleteUser
Description copied from interface:UserServiceRemoves a user from the system, effectively deleting his/her account.- Specified by:
deleteUserin interfaceUserService- Parameters:
userId- the userId
-
getUserDao
-
setUserDao
-
getPasswordGenerator
-
setPasswordGenerator
-