Examples of UserDto


Examples of com.gwtplatform.carstore.shared.dto.UserDto

            return null;
        }
       
        Long userId = userSession.getUserId();

        UserDto userDto = null;
        if (userId != null) {
            userDto = User.createDto(userDao.get(userId));
        }

        return userDto;
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.examples.blog.dto.UserDTO

        final List<UserDTO> dtos = new ArrayList<UserDTO>();

        final Assembler asm = DTOAssembler.newAssembler(bf.getClazz(filter), bf.getClazz("User"));

        for (final User user : users) {
            final UserDTO dto = (UserDTO) bf.get("UserDTO");
            asm.assembleDto(dto, user, converters, bf);
            dtos.add(dto);
        }
        return dtos;
    }
View Full Code Here

Examples of com.lin.user.dto.UserDto

      return (Long)objs.get(0)+1;
    }
    return 1l;
  }
  public UserDto getList1001(){
    UserDto dto=new UserDto();
    List<Lz001001>list=lz001001Dao.findByHql("from Lz001001");
    dto.setList1001(list);
    return dto;
  }
View Full Code Here

Examples of com.mossle.api.user.UserDTO

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

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

                if (userDto == null) {
                    messageHelper.addMessage(model, str + " is not exists.");
                    logger.info("{} is not exists", str);
                } else {
                    UserStatus userStatus = authService.createOrGetUserStatus(
                            username, userDto.getId(),
                            ScopeHolder.getUserRepoRef(),
                            ScopeHolder.getScopeId());

                    try {
                        userStatusChecker.check(userStatus);
View Full Code Here

Examples of com.mycompany.myapp.web.rest.dto.UserDTO

        List<String> roles = new ArrayList<>();
        for (Authority authority : user.getAuthorities()) {
            roles.add(authority.getName());
        }
        return new ResponseEntity<>(
            new UserDTO(
                user.getLogin(),
                null,
                user.getFirstName(),
                user.getLastName(),
                user.getEmail(),
View Full Code Here

Examples of cz.muni.fi.pa165.ddtroops.dto.UserDTO

    }
    public Set<SquadDTO> getSquads(){
        if (getContext().getRequest().isUserInRole("ROLE_SUPERVISOR")) return new HashSet<SquadDTO>(service.getAll());
        else
        {
            UserDTO user = userService.getByName(getContext().getRequest().getRemoteUser());
            List<SquadDTO> squads = service.getAll();
            Set<SquadDTO> result = new HashSet<SquadDTO>();
            for (SquadDTO s : squads) {
                List<String> owners = new ArrayList<String>();
                for (HeroDTO u : s.members) {
View Full Code Here

Examples of fr.ippon.tatami.service.dto.UserDTO



    public UserDTO buildUserDTO(User user) {
        User currentUser = authenticationService.getCurrentUser();
        UserDTO userDTO = getUserDTOFromUser(user);
        userDTO.setYou(user.equals(currentUser));
        if (!userDTO.isYou()) {
            Collection<String> currentFriendLogins = friendRepository.findFriendsForUser(currentUser.getLogin());
            Collection<String> currentFollowersLogins = followerRepository.findFollowersForUser(currentUser.getLogin());
            userDTO.setFriend(currentFriendLogins.contains(user.getLogin()));
            userDTO.setFollower(currentFollowersLogins.contains(user.getLogin()));
        }
        return userDTO;
    }
View Full Code Here

Examples of it.unipd.netmus.shared.UserDTO

        tmp.setMusicLibrary(this.music_library.toMusicLibrarySummaryDTO());
        return tmp;
    }

    public UserDTO toUserDTO() {
        UserDTO tmp = new UserDTO();
        tmp.setUser(this.user);
        tmp.setNickName(this.nick_name);
        tmp.setAboutMe(this.about_me);
        tmp.setFirstName(this.first_name);
        tmp.setGender(this.gender);
        tmp.setLastName(this.last_name);
        tmp.setNationality(this.nationality);
        tmp.setPublicProfile(this.is_public_profile);
        tmp.setAllowedUsers(this.allowed_users);
        return tmp;
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.user.UserDto

    @Override
    public PreferencesDeleteCharacterActionResponse execute(PreferencesDeleteCharacterAction action) throws Exception {
        clientFacade.deleteCharacter(action.getCharacterID());

        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();
        List<CharacterNameDto> characterNames = clientFacade.getCharacterNames();

        PreferencesDeleteCharacterActionResponse response = new PreferencesDeleteCharacterActionResponse();
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.user.UserDto

    @Override
    public PreferencesSetMainCharacterActionResponse execute(PreferencesSetMainCharacterAction action) throws Exception {
        clientFacade.setMainCharacter(action.getCharacterName());

        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();

        PreferencesSetMainCharacterActionResponse response = new PreferencesSetMainCharacterActionResponse();
        response.setMainCharacter(mainCharacter);
        return response;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.