Class SuperuserUserService
java.lang.Object
dev.getelements.elements.service.user.AbstractUserService
dev.getelements.elements.service.user.SuperuserUserService
- All Implemented Interfaces:
UserService
Created by patricktwohig on 3/26/15.
-
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.longGets 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) voidsetNameService(NameService nameService) voidsetPasswordGenerator(PasswordGenerator passwordGenerator) voidsetSessionDao(SessionDao sessionDao) voidsetSessionTimeoutSeconds(long sessionTimeoutSeconds) 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, getProfileDao, getSuperUserProfileService, setApplicationDao, setCurrentUser, 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
-
SuperuserUserService
public SuperuserUserService()
-
-
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
-
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
-
getMapper
-
setMapper
-
getUserDao
-
setUserDao
-
getSessionDao
-
setSessionDao
-
getNameService
- Overrides:
getNameServicein classAbstractUserService
-
setNameService
@Inject public void setNameService(@Named("dev.getelements.elements.service.unscoped") NameService nameService) - Overrides:
setNameServicein classAbstractUserService
-
getPasswordGenerator
-
setPasswordGenerator
-
getSessionTimeoutSeconds
public long getSessionTimeoutSeconds() -
setSessionTimeoutSeconds
@Inject public void setSessionTimeoutSeconds(@Named("dev.getelements.elements.session.timeout.seconds") long sessionTimeoutSeconds)
-