Package com.streamreduce.rest.dto.response

Examples of com.streamreduce.rest.dto.response.RolesResponseDTO


            roles = applicationManager.getUserService().getAccountRoles(currentUser.getAccount().getId());
        } catch (AccountNotFoundException e) {
            return error(e.getMessage(), Response.status(Response.Status.NOT_FOUND));
        }

        RolesResponseDTO dto = new RolesResponseDTO();
        List<RoleResponseDTO> roleDTOs = new ArrayList<>();

        for (Role role : roles) {
            roleDTOs.add(toDTO(role));
        }

        dto.setRoles(roleDTOs);

        return Response.ok(dto).build();
    }
View Full Code Here

TOP

Related Classes of com.streamreduce.rest.dto.response.RolesResponseDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.