Examples of disAssociateRoleFromUser()


Examples of org.geoserver.security.GeoServerRoleStore.disAssociateRoleFromUser()

        fail=true;
        try {
            store2.associateRoleToUser(role_test2, "auser");
        } catch (IOException ex) {
            try {
                store2.disAssociateRoleFromUser(role_test2, "auser");
            } catch (IOException e) {
                fail=false;
            }
        }
        if (fail)
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleStore.disAssociateRoleFromUser()

                for (GeoServerRole role : add) {
                    roleStore.associateRoleToUser(role, user.getUsername());
                }
                for (GeoServerRole role : remove) {
                    roleStore.disAssociateRoleFromUser(role, user.getUsername());
                }
                roleStore.store();
            }
        } catch (IOException ex) {
            try { roleStore.load(); } catch (IOException ex2) {};
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleStore.disAssociateRoleFromUser()

   
                        for (GeoServerUser user : removePanel.getRoots()) {                                                                        
                                List<GeoServerRole> list= new ArrayList<GeoServerRole>();
                                list.addAll(gaStore.getRolesForUser(user.getUsername()));
                                for (GeoServerRole role: list)
                                    gaStore.disAssociateRoleFromUser(role, user.getUsername());
                           
                        }
                        gaStore.store();       
                    } catch (IOException ex) {
                        try {gaStore.load(); } catch (IOException ex2) {};
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.