Interface UserService
-
- All Known Implementing Classes:
DefaultUserService
@Path("/userService/") @Deprecated public interface UserServiceDeprecated.This service is deprecated. Please useUserService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BooleancreateAdminUser(User user)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.BooleanvalidateUserFromKey(String key)Deprecated.validate the key and the user with forcing a password change for next login.
-
-
-
Method Detail
-
getUser
@Path("getUser/{userName}") @GET @Produces({"application/json","application/xml"}) User getUser(@PathParam("userName") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
getUsers
@Path("getUsers") @GET @Produces({"application/json","application/xml"}) List<User> getUsers() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
createUser
@Path("createUser") @POST @Produces({"application/json","application/xml","text/plain"}) @Consumes({"application/json","application/xml"}) Boolean createUser(User user) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
createAdminUser
@Path("createAdminUser") @POST @Produces({"application/json","application/xml","text/plain"}) @Consumes({"application/json","application/xml"}) Boolean createAdminUser(User user) throws RedbackServiceExceptionDeprecated.will create admin user only if not exists !! if exists will return false- Throws:
RedbackServiceException
-
isAdminUserExists
@Path("isAdminUserExists") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean isAdminUserExists() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
deleteUser
@Path("deleteUser/{userName}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean deleteUser(@PathParam("userName") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
updateUser
@Path("updateUser") @POST @Produces({"application/json","application/xml","text/plain"}) Boolean updateUser(User user) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
lockUser
@Path("lockUser/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean lockUser(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
unlockUser
@Path("unlockUser/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean unlockUser(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
passwordChangeRequired
@Path("passwordChangeRequired/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean passwordChangeRequired(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
passwordChangeNotRequired
@Path("passwordChangeNotRequired/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean passwordChangeNotRequired(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
updateMe
@Path("updateMe") @POST @Produces({"application/json","application/xml","text/plain"}) Boolean updateMe(User user) throws RedbackServiceExceptionDeprecated.update only the current user and this fields: fullname, email, password. the service verify the curent logged user with the one passed in the method- Throws:
RedbackServiceException- Since:
- 1.4
-
ping
@Path("ping") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean ping() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
removeFromCache
@Path("removeFromCache/{userName}") @GET @Produces({"application/json","application/xml","text/plain"}) int removeFromCache(@PathParam("userName") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
getGuestUser
@Path("getGuestUser") @GET @Produces({"application/json","application/xml","text/plain"}) User getGuestUser() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
createGuestUser
@Path("createGuestUser") @GET @Produces({"application/json","application/xml","text/plain"}) User createGuestUser() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
registerUser
@Path("registerUser") @POST @Produces({"application/json","application/xml"}) RegistrationKey registerUser(UserRegistrationRequest userRegistrationRequest) throws RedbackServiceExceptionDeprecated.if redback is not configured for email validation is required, -1 is returned as key- Throws:
RedbackServiceException- Since:
- 1.4
-
validateUserFromKey
@Path("validateKey/{key}") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean validateUserFromKey(@PathParam("key") String key) throws RedbackServiceExceptionDeprecated.validate the key and the user with forcing a password change for next login. http session is created.- Parameters:
key- authentication key- Throws:
RedbackServiceException- Since:
- 1.4
-
resetPassword
@Path("resetPassword") @POST @Produces({"application/json","application/xml","text/plain"}) @Consumes({"application/json","application/xml"}) Boolean resetPassword(ResetPasswordRequest resetPasswordRequest) throws RedbackServiceExceptionDeprecated.- Parameters:
resetPasswordRequest- contains username for send a password reset email- Throws:
RedbackServiceException- Since:
- 1.4
-
getUserPermissions
@Path("getUserPermissions/{userName}") @GET @Produces({"application/json","application/xml","text/plain"}) Collection<Permission> getUserPermissions(@PathParam("userName") String userName) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 1.4
-
getUserOperations
@Path("getUserOperations/{userName}") @GET @Produces({"application/json","application/xml","text/plain"}) Collection<Operation> getUserOperations(@PathParam("userName") String userName) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 1.4
-
getCurrentUserPermissions
@Path("getCurrentUserPermissions") @GET @Produces({"application/json","application/xml","text/plain"}) Collection<Permission> getCurrentUserPermissions() throws RedbackServiceExceptionDeprecated.- Returns:
- the current logged user permissions, if no logged user guest permissions are returned
- Throws:
RedbackServiceException- Since:
- 1.4
-
getCurrentUserOperations
@Path("getCurrentUserOperations") @GET @Produces({"application/json","application/xml","text/plain"}) Collection<Operation> getCurrentUserOperations() throws RedbackServiceExceptionDeprecated.- Returns:
- the current logged user operations, if no logged user guest operations are returned
- Throws:
RedbackServiceException- Since:
- 1.4
-
-