Package org.zanata.dao

Examples of org.zanata.dao.CredentialsDAO


                this.newCredentials.setUser(result.getAuthenticatedId());
                this.newCredentials.setEmail(result.getEmail());
                // NB: Seam component injection won't work on callbacks
                EntityManager em =
                        ServiceLocator.instance().getEntityManager();
                CredentialsDAO credentialsDAO =
                        ServiceLocator.instance().getInstance(
                                CredentialsDAO.class);

                Conversation.instance().begin(true, false); // (To retain
                // messages)
                FacesMessages.instance().clear();

                if (credentialsDAO.findByUser(result.getAuthenticatedId()) != null) {
                    FacesMessages.instance().add(ERROR,
                            "jsf.identities.invalid.Duplicate", null,
                            "Duplicate identity",
                            "This Identity is already in use.");
                } else {
View Full Code Here

TOP

Related Classes of org.zanata.dao.CredentialsDAO

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.