Class DefaultUserService
- java.lang.Object
-
- org.apache.archiva.redback.rest.services.DefaultUserService
-
- All Implemented Interfaces:
UserService
@Service("userService#rest") @Deprecated public class DefaultUserService extends Object implements UserServiceDeprecated.This version is deprected. Use the V2 version:DefaultUserService
-
-
Constructor Summary
Constructors Constructor Description DefaultUserService(UserManager userManager, SecuritySystem securitySystem, HttpAuthenticator httpAuthenticator)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BooleancreateAdminUser(User adminUser)Deprecated.will create admin user only if not exists !! if exists will return falseUsercreateGuestUser()Deprecated.BooleancreateUser(User user)Deprecated.BooleandeleteUser(String username)Deprecated.Collection<Operation>getCurrentUserOperations()Deprecated.Collection<Permission>getCurrentUserPermissions()Deprecated.UsergetGuestUser()Deprecated.UsergetUser(String username)Deprecated.Collection<Operation>getUserOperations(String userName)Deprecated.Collection<Permission>getUserPermissions(String userName)Deprecated.List<User>getUsers()Deprecated.BooleanisAdminUserExists()Deprecated.BooleanlockUser(String username)Deprecated.BooleanpasswordChangeNotRequired(String username)Deprecated.BooleanpasswordChangeRequired(String username)Deprecated.Booleanping()Deprecated.RegistrationKeyregisterUser(UserRegistrationRequest userRegistrationRequest)Deprecated.if redback is not configured for email validation is required, -1 is returned as keyintremoveFromCache(String userName)Deprecated.BooleanresetPassword(ResetPasswordRequest resetPasswordRequest)Deprecated.BooleanunlockUser(String username)Deprecated.BooleanupdateMe(User user)Deprecated.update only the current user and this fields: fullname, email, password.BooleanupdateUser(User user)Deprecated.voidvalidateCredentialsLoose(User user)Deprecated.voidvalidateCredentialsStrict(User user)Deprecated.BooleanvalidateUserFromKey(String key)Deprecated.validate the key and the user with forcing a password change for next login.
-
-
-
Constructor Detail
-
DefaultUserService
@Inject public DefaultUserService(@Named("userManager#default") UserManager userManager, SecuritySystem securitySystem, @Named("httpAuthenticator#basic") HttpAuthenticator httpAuthenticator)
Deprecated.
-
-
Method Detail
-
createUser
public Boolean createUser(User user) throws RedbackServiceException
Deprecated.- Specified by:
createUserin interfaceUserService- Throws:
RedbackServiceException
-
deleteUser
public Boolean deleteUser(String username) throws RedbackServiceException
Deprecated.- Specified by:
deleteUserin interfaceUserService- Throws:
RedbackServiceException
-
getUser
public User getUser(String username) throws RedbackServiceException
Deprecated.- Specified by:
getUserin interfaceUserService- Throws:
RedbackServiceException
-
getUsers
public List<User> getUsers() throws RedbackServiceException
Deprecated.- Specified by:
getUsersin interfaceUserService- Throws:
RedbackServiceException
-
updateMe
public Boolean updateMe(User user) throws RedbackServiceException
Deprecated.Description copied from interface:UserServiceupdate only the current user and this fields: fullname, email, password. the service verify the curent logged user with the one passed in the method- Specified by:
updateMein interfaceUserService- Throws:
RedbackServiceException
-
updateUser
public Boolean updateUser(User user) throws RedbackServiceException
Deprecated.- Specified by:
updateUserin interfaceUserService- Throws:
RedbackServiceException
-
removeFromCache
public int removeFromCache(String userName) throws RedbackServiceException
Deprecated.- Specified by:
removeFromCachein interfaceUserService- Throws:
RedbackServiceException
-
getGuestUser
public User getGuestUser() throws RedbackServiceException
Deprecated.- Specified by:
getGuestUserin interfaceUserService- Throws:
RedbackServiceException
-
createGuestUser
public User createGuestUser() throws RedbackServiceException
Deprecated.- Specified by:
createGuestUserin interfaceUserService- Throws:
RedbackServiceException
-
ping
public Boolean ping() throws RedbackServiceException
Deprecated.- Specified by:
pingin interfaceUserService- Throws:
RedbackServiceException
-
createAdminUser
public Boolean createAdminUser(User adminUser) throws RedbackServiceException
Deprecated.Description copied from interface:UserServicewill create admin user only if not exists !! if exists will return false- Specified by:
createAdminUserin interfaceUserService- Throws:
RedbackServiceException
-
isAdminUserExists
public Boolean isAdminUserExists() throws RedbackServiceException
Deprecated.- Specified by:
isAdminUserExistsin interfaceUserService- Throws:
RedbackServiceException
-
resetPassword
public Boolean resetPassword(ResetPasswordRequest resetPasswordRequest) throws RedbackServiceException
Deprecated.- Specified by:
resetPasswordin interfaceUserService- Parameters:
resetPasswordRequest- contains username for send a password reset email- Throws:
RedbackServiceException
-
registerUser
public RegistrationKey registerUser(UserRegistrationRequest userRegistrationRequest) throws RedbackServiceException
Deprecated.Description copied from interface:UserServiceif redback is not configured for email validation is required, -1 is returned as key- Specified by:
registerUserin interfaceUserService- Throws:
RedbackServiceException
-
validateUserFromKey
public Boolean validateUserFromKey(String key) throws RedbackServiceException
Deprecated.Description copied from interface:UserServicevalidate the key and the user with forcing a password change for next login. http session is created.- Specified by:
validateUserFromKeyin interfaceUserService- Parameters:
key- authentication key- Throws:
RedbackServiceException
-
getCurrentUserPermissions
public Collection<Permission> getCurrentUserPermissions() throws RedbackServiceException
Deprecated.- Specified by:
getCurrentUserPermissionsin interfaceUserService- Returns:
- the current logged user permissions, if no logged user guest permissions are returned
- Throws:
RedbackServiceException
-
getCurrentUserOperations
public Collection<Operation> getCurrentUserOperations() throws RedbackServiceException
Deprecated.- Specified by:
getCurrentUserOperationsin interfaceUserService- Returns:
- the current logged user operations, if no logged user guest operations are returned
- Throws:
RedbackServiceException
-
getUserOperations
public Collection<Operation> getUserOperations(String userName) throws RedbackServiceException
Deprecated.- Specified by:
getUserOperationsin interfaceUserService- Throws:
RedbackServiceException
-
getUserPermissions
public Collection<Permission> getUserPermissions(String userName) throws RedbackServiceException
Deprecated.- Specified by:
getUserPermissionsin interfaceUserService- Throws:
RedbackServiceException
-
validateCredentialsLoose
public void validateCredentialsLoose(User user) throws RedbackServiceException
Deprecated.- Throws:
RedbackServiceException
-
validateCredentialsStrict
public void validateCredentialsStrict(User user) throws RedbackServiceException
Deprecated.- Throws:
RedbackServiceException
-
unlockUser
public Boolean unlockUser(String username) throws RedbackServiceException
Deprecated.- Specified by:
unlockUserin interfaceUserService- Throws:
RedbackServiceException
-
lockUser
public Boolean lockUser(String username) throws RedbackServiceException
Deprecated.- Specified by:
lockUserin interfaceUserService- Throws:
RedbackServiceException
-
passwordChangeRequired
public Boolean passwordChangeRequired(String username) throws RedbackServiceException
Deprecated.- Specified by:
passwordChangeRequiredin interfaceUserService- Throws:
RedbackServiceException
-
passwordChangeNotRequired
public Boolean passwordChangeNotRequired(String username) throws RedbackServiceException
Deprecated.- Specified by:
passwordChangeNotRequiredin interfaceUserService- Throws:
RedbackServiceException
-
-