Package com.jappstart.model.auth

Examples of com.jappstart.model.auth.PersistentUser


        query.setParameter("username", token.getUsername());
        final UserAccount user = (UserAccount) query.getSingleResult();

        if (user.getPersistentUser() == null) {
            user.setPersistentUser(
                new PersistentUser(user.getKey(), token.getUsername()));
        }

        if (user.getPersistentUser().getPersistentLogins() == null) {
            user.getPersistentUser().setPersistentLogins(
                new ArrayList<PersistentLogin>());
View Full Code Here


        final Query query = entityManager.createQuery(
            "SELECT p FROM PersistentUser p WHERE username = :username");
        query.setParameter("username", username);

        if (query.getResultList().size() > 0) {
            final PersistentUser persistentUser =
                (PersistentUser) query.getSingleResult();
            entityManager.remove(persistentUser);
        }
    }
View Full Code Here

TOP

Related Classes of com.jappstart.model.auth.PersistentUser

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.