Package org.openengsb.core.api.security.service

Examples of org.openengsb.core.api.security.service.UserNotFoundException


        Dn parent = SchemaConstants.ouUserCredentials(username);
        Entry entry = EntryFactory.namedDescriptiveObject(credentialsType, credentialsValue, parent);
        try {
            dao.storeOverwriteExisting(entry);
        } catch (MissingParentException e) {
            throw new UserNotFoundException();
        }
    }
View Full Code Here


            NoSuchCredentialsException {
        try {
            Entry entry = dao.lookup(SchemaConstants.userCredentials(username, credentials));
            return LdapUtils.extractAttributeEmptyCheck(entry, SchemaConstants.STRING_ATTRIBUTE);
        } catch (MissingParentException e) {
            throw new UserNotFoundException();
        } catch (NoSuchNodeException e) {
            throw new NoSuchCredentialsException();
        }
    }
View Full Code Here

            query.select(from);
            try {
                UserData found = entityManager.createQuery(query).getSingleResult();
                return found;
            } catch (Exception ex) {
                throw new UserNotFoundException("User with name " + username + " not found");
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.security.service.UserNotFoundException

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.