Examples of findUserByName()


Examples of org.exoplatform.services.organization.UserHandler.findUserByName()

        }

        private boolean usernameIsUsed(String username, OrganizationService orgService) {
            UserHandler userHandler = orgService.getUserHandler();
            try {
                if (userHandler.findUserByName(username) != null) {
                    return true;
                }
            } catch (Exception ex) {
                log.error(ex.getMessage(), ex);
            }
View Full Code Here

Examples of org.exoplatform.services.organization.UserHandler.findUserByName()

        }

        private boolean usernameIsUsed(String username, OrganizationService orgService) {
            UserHandler userHandler = orgService.getUserHandler();
            try {
                if (userHandler.findUserByName(username, UserStatus.ANY) != null) {
                    return true;
                }
            } catch (Exception ex) {
                log.error(ex.getMessage(), ex);
            }
View Full Code Here

Examples of org.exoplatform.services.organization.UserHandler.findUserByName()

            if (username != null) {
                OrganizationService service = (OrganizationService) getContainer().getComponentInstanceOfType(
                        OrganizationService.class);

                UserHandler uHandler = service.getUserHandler();
                User user = uHandler.findUserByName(username, UserStatus.ANY);

                if (user == null) {
                    log.debug("user {0} doesn't exists. FilterDisabledLoginModule will be ignored.", username);
                } else if (user instanceof UserImpl && !((UserImpl) user).isEnabled()) {
                    HttpServletRequest request = getCurrentHttpServletRequest();
View Full Code Here

Examples of org.exoplatform.services.organization.UserHandler.findUserByName()

            if (username != null) {
                OrganizationService service = (OrganizationService) getContainer().getComponentInstanceOfType(
                        OrganizationService.class);

                UserHandler uHandler = service.getUserHandler();
                User user = uHandler.findUserByName(username, false);

                if (user == null) {
                    log.debug("user {0} doesn't exists. FilterDisabledLoginModule will be ignored.", username);
                } else if (user instanceof UserImpl && !((UserImpl) user).isEnabled()) {
                    HttpServletRequest request = getCurrentHttpServletRequest();
View Full Code Here

Examples of org.exoplatform.services.organization.UserHandler.findUserByName()

        // We need to check if userProfile exists, because organization API is limited and it doesn't have separate methods for
        // "creation" and for "update" of user profile :/

        String username = profile.getUserName();
        UserHandler userHandler = this.orgService.getUserHandler();
        User user = userHandler.findUserByName(username, UserStatus.ANY);
        if(user == null) {
            throw new InvalidNameException("User " + username + " not exists");
        }

        boolean isNew = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.