@ -78,8 +78,8 @@ public class UsersController {
@ApiResponse ( code = 500 , message = "Expired or invalid JWT token" ) } )
@ApiResponse ( code = 500 , message = "Expired or invalid JWT token" ) } )
public UsersResponseDTO search ( @ApiParam ( "Username" ) @PathVariable String username ) {
public UsersResponseDTO search ( @ApiParam ( "Username" ) @PathVariable String username ) {
UsersResponseDTO urDTO = modelMapper . map ( userService . search ( username ) , UsersResponseDTO . class ) ;
UsersResponseDTO urDTO = modelMapper . map ( userService . search ( username ) , UsersResponseDTO . class ) ;
/ / urDTO . setEduCemadenOrganization ( userService . findEduCemadenOrganizationById ( urDTO . getId ( ) ) ) ;
/ / urDTO . setRolesProviderActivationKeys ( userService . findRolesproviderActivationKeysById ( urDTO . getId ( ) ) ) ;
urDTO . setEduCemadenOrganization ( userService . findEduCemadenOrganizationById ( urDTO . getId ( ) ) ) ;
urDTO . setRolesProviderActivationKeys ( userService . findRolesproviderActivationKeysById ( urDTO . getId ( ) ) ) ;
return urDTO ;
return urDTO ;
}
}
@ -92,8 +92,8 @@ public class UsersController {
@ApiResponse ( code = 500 , message = "Expired or invalid JWT token" ) } )
@ApiResponse ( code = 500 , message = "Expired or invalid JWT token" ) } )
public UsersResponseDTO whoami ( HttpServletRequest req ) {
public UsersResponseDTO whoami ( HttpServletRequest req ) {
UsersResponseDTO urDTO = modelMapper . map ( userService . whoami ( req ) , UsersResponseDTO . class ) ;
UsersResponseDTO urDTO = modelMapper . map ( userService . whoami ( req ) , UsersResponseDTO . class ) ;
/ / urDTO . setEduCemadenOrganization ( userService . findEduCemadenOrganizationById ( urDTO . getId ( ) ) ) ;
/ / urDTO . setRolesProviderActivationKeys ( userService . findRolesproviderActivationKeysById ( urDTO . getId ( ) ) ) ;
urDTO . setEduCemadenOrganization ( userService . findEduCemadenOrganizationById ( urDTO . getId ( ) ) ) ;
urDTO . setRolesProviderActivationKeys ( userService . findRolesproviderActivationKeysById ( urDTO . getId ( ) ) ) ;
return urDTO ;
return urDTO ;
}
}