|
|
@ -82,7 +82,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)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:add", roles = {"admin"})
|
|
|
|
Response addUser(
|
|
|
|
Response addUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "user",
|
|
|
|
name = "user",
|
|
|
@ -134,7 +134,7 @@ public interface UserManagementService {
|
|
|
|
" fetching the requested user.",
|
|
|
|
" fetching the requested user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:view", roles = {"admin"})
|
|
|
|
Response getUser(
|
|
|
|
Response getUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
@ -191,7 +191,7 @@ public interface UserManagementService {
|
|
|
|
"Server error occurred while updating the user.",
|
|
|
|
"Server error occurred while updating the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:modify", roles = {"admin"})
|
|
|
|
Response updateUser(
|
|
|
|
Response updateUser(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
@ -226,7 +226,7 @@ public interface UserManagementService {
|
|
|
|
response = ErrorResponse.class
|
|
|
|
response = ErrorResponse.class
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:modify", roles = {"admin"})
|
|
|
|
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);
|
|
|
@ -275,7 +275,7 @@ public interface UserManagementService {
|
|
|
|
" assigned to the user.",
|
|
|
|
" assigned to the user.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:view", roles = {"admin"})
|
|
|
|
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);
|
|
|
@ -318,7 +318,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)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:list", roles = {"admin"})
|
|
|
|
Response getUsers(
|
|
|
|
Response getUsers(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "filter",
|
|
|
|
name = "filter",
|
|
|
@ -385,7 +385,7 @@ public interface UserManagementService {
|
|
|
|
"list that matches the given filter.",
|
|
|
|
"list that matches the given filter.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:view", roles = {"admin"})
|
|
|
|
Response getUserNames(
|
|
|
|
Response getUserNames(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "filter",
|
|
|
|
name = "filter",
|
|
|
@ -439,7 +439,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)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "user-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "user:modify", roles = {"admin"})
|
|
|
|
Response resetPassword(
|
|
|
|
Response resetPassword(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "username",
|
|
|
|
name = "username",
|
|
|
|