Package com.apress.progwt.server.domain

Examples of com.apress.progwt.server.domain.ServerSideUser


        SecurityContextHolder.getContext().setAuthentication(null);
        return createdU;
    }

    private void createPassWord(User user, String userpass) {
        Object salt = saltSource.getSalt(new ServerSideUser(user));
        user.setPassword(passwordEncoder.encodePassword(userpass, salt));
    }
View Full Code Here


            return null;
        }

        log.debug("loadUserByUsername " + username);

        ServerSideUser serverUser = null;
        if (useCache) {
            serverUser = (ServerSideUser) userCache
                    .getUserFromCache(username);
        }

        User u;
        if (serverUser == null) {

            u = userDAO.getUserByUsername(username);
            userCache.putUserInCache(new ServerSideUser(u));

        } else {
            u = serverUser.getUser();
        }
        return u;
    }
View Full Code Here

                        "Username not found: " + username);
            }
        } else {
            log.debug("load user success " + users.get(0));
            User u = users.get(0);
            return new ServerSideUser(u);
        }
    }
View Full Code Here

    }

    public void testLoadUserByUsername() {
        String USER = "test";
        ServerSideUser u = userDAO.loadUserByUsername(USER);
        assertEquals(USER, u.getUsername());

    }
View Full Code Here

TOP

Related Classes of com.apress.progwt.server.domain.ServerSideUser

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.