Remove comment functions from controllers
This commit is contained in:
parent
08c6f9c9b9
commit
d1088e9f83
|
@ -128,46 +128,4 @@ public class AdminController {
|
|||
throw new ResourceNotFoundException("User has not been found");
|
||||
}
|
||||
|
||||
|
||||
/* *//**
|
||||
* Get the names of the managers of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/name", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getNames(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserNamesByCouId(couId, true);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}
|
||||
|
||||
|
||||
*//**
|
||||
* Get the Identifiers of the managers of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/id", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getIds(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserIdByCouId(couId, true);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}
|
||||
|
||||
*//**
|
||||
* Get the emails of the managers of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/email", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getEmails(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserEmailByCouId(couId, true);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -133,44 +133,4 @@ public class MemberController {
|
|||
}
|
||||
throw new ResourceNotFoundException("User has not been found");
|
||||
}
|
||||
|
||||
|
||||
/* *//**
|
||||
* Get the names of the members of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/name", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getNames(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserNamesByCouId(couId, false);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}
|
||||
|
||||
*//**
|
||||
* Get the Identifiers of the members of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/id", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getIds(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserIdByCouId(couId, false);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}
|
||||
|
||||
*//**
|
||||
* Get the emails of the members of a type(Community, etc.) with id(ee, egi, etc.)
|
||||
*//*
|
||||
@RequestMapping(value = "/{type}/{id}/email", method = RequestMethod.GET)
|
||||
public ResponseEntity<User[]> getEmails(@PathVariable("type") String type, @PathVariable("id") String id) {
|
||||
Integer couId = registryService.getCouId(AuthoritiesUtils.memberRole(type, id));
|
||||
if (couId != null) {
|
||||
JsonArray users = registryService.getUserEmailByCouId(couId, false);
|
||||
return ResponseEntity.ok(gson.fromJson(users, User[].class));
|
||||
}
|
||||
throw new ResourceNotFoundException("Role has not been found");
|
||||
}*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue