Package com.mossle.api.user

Examples of com.mossle.api.user.UserDTO


        return process(userDto, scopeDto, true);
    }

    public UserAuthDTO findByRef(String ref, String scopeId) {
        ScopeDTO scopeDto = scopeConnector.findById(scopeId);
        UserDTO userDto = userConnector.findByRef(ref,
                scopeDto.getUserRepoRef());

        return process(userDto, scopeDto, false);
    }
View Full Code Here


        return process(userDto, scopeDto, false);
    }

    public UserAuthDTO findById(String id, String scopeId) {
        ScopeDTO scopeDto = scopeConnector.findById(scopeId);
        UserDTO userDto = userConnector.findById(id);

        return process(userDto, scopeDto, false);
    }
View Full Code Here

    private String destinationName = "queue.user.sync.created";
    private JdbcTemplate jdbcTemplate;

    public void handleMessage(String message) {
        try {
            UserDTO userDto = jsonMapper.fromJson(message, UserDTO.class);
            Long typeId = 1L;

            jdbcTemplate.update(insertPartyEntitySql, userDto.getUsername(),
                    userDto.getId(), typeId);

            logger.info("create user : {}", message);
        } catch (IOException ex) {
            logger.error(ex.getMessage(), ex);
        }
View Full Code Here

                if (str.length() == 0) {
                    continue;
                }

                UserDTO userDto = userConnector.findByUsername(str,
                        ScopeHolder.getUserRepoRef());

                if (userDto.getStatus() != 1) {
                    continue;
                }

                userDtos.add(userDto);
            }
View Full Code Here

    private String destinationName = "queue.user.sync.removed";
    private JdbcTemplate jdbcTemplate;

    public void handleMessage(String message) {
        try {
            UserDTO userDto = jsonMapper.fromJson(message, UserDTO.class);

            Long typeId = 1L;
            Long entityId = this.getPartyEntityId(userDto.getId(), typeId);

            if (entityId == null) {
                return;
            }
View Full Code Here

    private String destinationName = "queue.user.sync.updated";
    private JdbcTemplate jdbcTemplate;

    public void handleMessage(String message) {
        try {
            UserDTO userDto = jsonMapper.fromJson(message, UserDTO.class);

            Long typeId = 1L;
            jdbcTemplate.update(updatePartyEntitySql, userDto.getUsername(),
                    userDto.getId(), typeId);

            logger.info("update user : {}", message);
        } catch (IOException ex) {
            logger.error(ex.getMessage(), ex);
        }
View Full Code Here

TOP

Related Classes of com.mossle.api.user.UserDTO

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.