Package org.geoserver.security.validation

Examples of org.geoserver.security.validation.RoleServiceValidationWrapper


        GeoServerRoleService gaService=null;
        try {
            gaService = GeoServerApplication.get().getSecurityManager().loadRoleService(roleServiceName);
            boolean isActive = GeoServerApplication.get().getSecurityManager().
                    getActiveRoleService().getName().equals(roleServiceName);                   
            RoleServiceValidationWrapper valService = new RoleServiceValidationWrapper(gaService,isActive);
            valService.checkRoleIsMapped(role);
            valService.checkRoleIsUsed(role);           
        } catch (IOException e) {
            if (e.getCause() instanceof AbstractSecurityException) {
                return new Model(e.getCause().getMessage());
            } else {
                throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.geoserver.security.validation.RoleServiceValidationWrapper

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.