Package org.geoserver.security.config

Examples of org.geoserver.security.config.FileBasedSecurityServiceConfig


            }
            service.setName(name);
            service.initializeFromConfig(config);
           
            if (config instanceof FileBasedSecurityServiceConfig) {
                FileBasedSecurityServiceConfig fileConfig =
                    (FileBasedSecurityServiceConfig) config;
                if (fileConfig.getCheckInterval()>0) {
                    Resource resource = getConfigFile( fileConfig.getFileName());
                    if( resource == null ){
                        String path = Paths.path("security/usergroup", name, fileConfig.getFileName());
                        resource = get(path);                       
                    }
                   
                    UserGroupFileWatcher watcher = new UserGroupFileWatcher(resource,service);
                    service.registerUserGroupLoadedListener(watcher);
View Full Code Here


            //TODO: do we need this anymore?
            service.initializeFromConfig(config);

            if (config instanceof FileBasedSecurityServiceConfig) {
                FileBasedSecurityServiceConfig fileConfig =
                    (FileBasedSecurityServiceConfig) config;
                if (fileConfig.getCheckInterval()>0) {
                    Resource resource = getConfigFile( fileConfig.getFileName());
                    if( resource == null ){
                        String path = Paths.path("security/role", name, fileConfig.getFileName());
                        resource = get(path);
                    }

                    RoleFileWatcher watcher = new RoleFileWatcher(resource, service, resource.lastmodified());
                    service.registerRoleLoadedListener(watcher);
View Full Code Here

TOP

Related Classes of org.geoserver.security.config.FileBasedSecurityServiceConfig

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.