Package com.evasion.plugin.security

Examples of com.evasion.plugin.security.UserAuthService


        accountDAO.setEntityManager(em);
        this.em = em;
    }

    public Account createAccount(Account account) throws PersistenceViolationException {
        (new UserAuthService(em)).createUser(account.getUser());
        (new PersonEJB(em)).createPerson(account.getPerson());
        try {
            em.persist(account);
            em.flush();
        } catch (Exception e) {
View Full Code Here


    /**
     * {@inheritDoc }
     */
    public Account createAccount(Account account) throws PersistenceViolationException {
        (new PersonEJB(em)).createPerson(account.getPerson());
        (new UserAuthService(em)).createUser(account.getUser());
        account.getUser().setEmail(account.getPerson().getEmail());
        LOGGER.debug("Create an account for user: {}", account.getUser().getUsername());
        try {
            em.persist(account);
            em.flush();
View Full Code Here

TOP

Related Classes of com.evasion.plugin.security.UserAuthService

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.