Package org.geoserver.security

Examples of org.geoserver.security.AuthenticationKeyFilterConfig


        add(new AjaxSubmitLink("synchronize") {
            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                try {                   
                    //AuthenticationKeyFilterPanel.this.updateModel();
                    AuthenticationKeyFilterConfig config = AuthenticationKeyFilterPanel.this.model.getObject();
                   
                    getSecurityManager().saveFilter(config);
                    AuthenticationKeyMapper mapper = (AuthenticationKeyMapper) GeoServerExtensions.bean(config.getAuthKeyMapperName());
                    mapper.setSecurityManager(getSecurityManager());
                    mapper.setUserGroupServiceName(config.getUserGroupServiceName());
                    int numberOfNewKeys=mapper.synchronize();
                    info(new StringResourceModel("synchronizeSuccessful",AuthenticationKeyFilterPanel.this, null,new Object[] {numberOfNewKeys}).getObject());
                }
                catch(Exception e) {
                    error(e);                   
View Full Code Here

TOP

Related Classes of org.geoserver.security.AuthenticationKeyFilterConfig

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.