|
|
@ -83,7 +83,7 @@ public interface UserManagementService {
|
|
|
|
message = "Internal Server Error. \n Server error occurred while adding a new user.",
|
|
|
|
message = "Internal Server Error. \n Server error occurred while adding a new user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:write", name = "Add users", description = "")
|
|
|
|
@Scope(key = "user:manage", name = "Add users", description = "")
|
|
|
|
Response addUser(
|
|
|
|
Response addUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "user",
|
|
|
|
name = "user",
|
|
|
@ -135,7 +135,7 @@ public interface UserManagementService {
|
|
|
|
" fetching the requested user.",
|
|
|
|
" fetching the requested user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:read", name = "View users", description = "")
|
|
|
|
@Scope(key = "user:view", name = "View users", description = "")
|
|
|
|
Response getUser(
|
|
|
|
Response getUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
@ -192,7 +192,7 @@ public interface UserManagementService {
|
|
|
|
"Server error occurred while updating the user.",
|
|
|
|
"Server error occurred while updating the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:write", name = "Add users", description = "")
|
|
|
|
@Scope(key = "user:manage", name = "Add users", description = "")
|
|
|
|
Response updateUser(
|
|
|
|
Response updateUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
@ -227,7 +227,7 @@ public interface UserManagementService {
|
|
|
|
response = ErrorResponse.class
|
|
|
|
response = ErrorResponse.class
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:write", name = "Add users", description = "")
|
|
|
|
@Scope(key = "user:manage", name = "Add users", description = "")
|
|
|
|
Response removeUser(
|
|
|
|
Response removeUser(
|
|
|
|
@ApiParam(name = "username", value = "Username of the user to be deleted.", required = true)
|
|
|
|
@ApiParam(name = "username", value = "Username of the user to be deleted.", required = true)
|
|
|
|
@PathParam("username") String username);
|
|
|
|
@PathParam("username") String username);
|
|
|
@ -276,7 +276,7 @@ public interface UserManagementService {
|
|
|
|
" assigned to the user.",
|
|
|
|
" assigned to the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:read", name = "View users", description = "")
|
|
|
|
@Scope(key = "user:view", name = "View users", description = "")
|
|
|
|
Response getRolesOfUser(
|
|
|
|
Response getRolesOfUser(
|
|
|
|
@ApiParam(name = "username", value = "Username of the user.", required = true)
|
|
|
|
@ApiParam(name = "username", value = "Username of the user.", required = true)
|
|
|
|
@PathParam("username") String username);
|
|
|
|
@PathParam("username") String username);
|
|
|
@ -319,7 +319,7 @@ public interface UserManagementService {
|
|
|
|
message = "Internal Server Error. \n Server error occurred while fetching the user list.",
|
|
|
|
message = "Internal Server Error. \n Server error occurred while fetching the user list.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:read", name = "View users", description = "")
|
|
|
|
@Scope(key = "user:view", name = "View users", description = "")
|
|
|
|
Response getUsers(
|
|
|
|
Response getUsers(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "filter",
|
|
|
|
name = "filter",
|
|
|
@ -386,7 +386,7 @@ public interface UserManagementService {
|
|
|
|
"list that matches the given filter.",
|
|
|
|
"list that matches the given filter.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:read", name = "View users", description = "")
|
|
|
|
@Scope(key = "user:view", name = "View users", description = "")
|
|
|
|
Response getUserNames(
|
|
|
|
Response getUserNames(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "filter",
|
|
|
|
name = "filter",
|
|
|
@ -440,7 +440,7 @@ public interface UserManagementService {
|
|
|
|
"Server error occurred while updating credentials of the user.",
|
|
|
|
"Server error occurred while updating credentials of the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:read", name = "View users", description = "")
|
|
|
|
@Scope(key = "user:view", name = "View users", description = "")
|
|
|
|
Response resetPassword(
|
|
|
|
Response resetPassword(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
@ -483,7 +483,7 @@ public interface UserManagementService {
|
|
|
|
"Server error occurred while updating credentials of the user.",
|
|
|
|
"Server error occurred while updating credentials of the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Scope(key = "user:write", name = "Add users", description = "")
|
|
|
|
@Scope(key = "user:manage", name = "Add users", description = "")
|
|
|
|
Response inviteExistingUsersToEnrollDevice(
|
|
|
|
Response inviteExistingUsersToEnrollDevice(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "users",
|
|
|
|
name = "users",
|
|
|
|