Skip to content

Commit

Permalink
implement user self service api for user detail information #3723 | r…
Browse files Browse the repository at this point in the history
…emove unused sechub-web-server module
  • Loading branch information
hamidonos committed Jan 17, 2025
1 parent b2a6ec0 commit 4f051e4
Show file tree
Hide file tree
Showing 124 changed files with 438 additions and 5,456 deletions.
265 changes: 0 additions & 265 deletions .github/workflows/release-web-server.yml

This file was deleted.

6 changes: 2 additions & 4 deletions gradle/projects.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ projectType = [
project(':sechub-pds'),
project(':sechub-wrapper-checkmarx'),
project(':sechub-wrapper-prepare'),
project(':sechub-web-server'),
project(':sechub-wrapper-secretvalidation'),
],

springBootWebApplicationProjects:[
project('sechub-web-server')

],

/* documentation projects */
Expand All @@ -128,8 +127,7 @@ projectType = [
project(':sechub-pds-solutions'),
project(':sechub-solution'),
project(':sechub-solutions-shared'),
project(':sechub-wrapper-xray'),
project(':sechub-web-server-solution'),
project(':sechub-wrapper-xray')
],

asciiDoctorProjects: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,16 @@ private AdministrationAPIConstants() {
public static final String API_LIST_USER_SIGNUPS = API_ADMINISTRATION + "signups";

/* +-----------------------------------------------------------------------+ */
/* +............................ Users ....................................+ */
/* +......................... Users (Self Service).........................+ */
/* +-----------------------------------------------------------------------+ */

/**
* Fetch user detail information for authenticated user
*/
public static final String API_USER_DETAIL_INFO = API_MANAGEMENT + "user";

/* +-----------------------------------------------------------------------+ */
/* +............................ Users (Admin) ............................+ */
/* +-----------------------------------------------------------------------+ */
/**
* shows all users names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public List<String> listAdministrators() {
@RequestMapping(path = AdministrationAPIConstants.API_SHOW_USER_DETAILS, method = RequestMethod.GET, produces= {MediaType.APPLICATION_JSON_VALUE})
public UserDetailInformation showUserDetails(@PathVariable(name="userId") String userId) {
/* @formatter:on */
return detailsService.fetchDetails(userId);
return detailsService.fetchDetailsById(userId);
}

/* @formatter:off */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public class UserDetailInformation {
public static final String PROPERTY_OWNED_PROJECTS = "ownedProjects";
public static final String PROPERTY_SUPERADMIN = "superAdmin";

private String userId;
private final String userId;

private String email;
private final String email;

private boolean superAdmin;
private final boolean superAdmin;

private List<String> projects = new ArrayList<>();
private final List<String> projects = new ArrayList<>();

private List<String> ownedProjects = new ArrayList<>();
private final List<String> ownedProjects = new ArrayList<>();

public UserDetailInformation(User user) {
this.userId = user.getName();
Expand Down
Loading

0 comments on commit 4f051e4

Please sign in to comment.