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

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


    private Map<String, Map<Class<?>, Collection<Permission>>> permissionData = Maps.newHashMap();

    @Override
    public void createUser(String username) throws UserExistsException {
        if (credentialsData.containsKey(username)) {
            throw new UserExistsException("user exists");
        }
        credentialsData.put(username, new HashMap<String, String>());
        permissionData.put(username, new HashMap<Class<?>, Collection<Permission>>());
    }
View Full Code Here


    public void createUser(String username) throws UserExistsException {
        List<Entry> userStructure = userStructure(username);
        try {
            dao.store(userStructure);
        } catch (EntryAlreadyExistsException e) {
            throw new UserExistsException();
        } catch (MissingParentException e) {
            throw new LdapRuntimeException(e);
        }
    }
View Full Code Here

TOP

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

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.