Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource.out()


                            + ",ROLE_ADMINISTRATOR");
                } else {
                    p.put("admin", "geoserver,ROLE_ADMINISTRATOR");
                }
   
                os = propFile.out();
                p.store(os, "Format: name=password,ROLE1,...,ROLEN");
                os.close();
   
                // setup a sample service.properties
                Resource serviceFile = loader.get("security/service.properties");
View Full Code Here


                os.close();
   
                // setup a sample service.properties
                Resource serviceFile = loader.get("security/service.properties");
                //File serviceFile = new File(securityDir, "service.properties");
                os = serviceFile.out();
                is = GeoServerUserDao.class
                        .getResourceAsStream("serviceTemplate.properties");
                byte[] buffer = new byte[1024];
                int count = 0;
                while ((count = is.read(buffer)) > 0) {
View Full Code Here

            Properties p = storeUsersToProperties(userMap);

            // write out to the data dir
            Resource propFile = userDefinitionsFile.getResource();
            //File propFile = new File(securityDir, "users.properties");
            os = propFile.out();
            p.store(os, null);
        } catch (Exception e) {
            if (e instanceof IOException)
                throw (IOException) e;
            else
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.