Package com.apress.progwt.client.domain.dto

Examples of com.apress.progwt.client.domain.dto.UserAndToken


    }

    public UserAndToken getCurrentUserAndToken() {
        User currentUser = getCurrentUser();

        return new UserAndToken(currentUser, getToken(currentUser));
    }
View Full Code Here


    public UserAndToken getCurrentUser() throws BusinessException {

        try {

            UserAndToken rtn = userService.getCurrentUserAndToken();

          
            if (rtn.getUser() != null) {
                log.info("GWT get current user... "
                        + rtn.getUser().getUsername());
                // System.out.println("\n\n\n---------------");
                // System.out.println("user school rankings: "
                // + user.getSchoolRankings().size());
                // System.out.println("user process types: "
                // + user.getProcessTypes().size());
                User fetched = userService.getUserByNicknameFullFetch(rtn
                        .getUser().getNickname());
                System.out.println("\n\n---------------");
                System.out.println("fetched school rankings: "
                        + fetched.getSchoolRankings().size());
                System.out.println("fetched process types: "
                        + fetched.getProcessTypes().size());

                rtn.setUser(fetched);
            }
            log.debug("Returning "+rtn);
            return rtn;

        } catch (UsernameNotFoundException u) {
View Full Code Here

TOP

Related Classes of com.apress.progwt.client.domain.dto.UserAndToken

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.