Revision 19432 branches/v10/extensions/extPublishGeoserver/src/org/gvsig/publish/geoserver/conf/GSConfiguration.java

View differences:

GSConfiguration.java
81 81
    	return this.services;
82 82
    }
83 83
    /**
84
     * 
85
     * @return geoserver admin username
86
     */
87
    public String getUser(){
88
    	return this.user;
89
    }
90
    /**
84 91
     * Sets the user in order to reload the server. In the services.xml, this user will be the superuser.  
85 92
     * @param user 
86 93
     */
......
88 95
        this.user = user;
89 96
        this.services.setAdminUser(user);
90 97
    }
91
	
98
	/**
99
	 * 
100
	 * @return geoserver admin password 
101
	 */
102
    public String getPassword(){
103
    	return this.password;
104
    }
92 105
    /**
93 106
     * Sets the password in order to reload the server. In the services.xml, this this will be the superuser password. 
94 107
     * @param pass 
......
116 129
    	featureTypes.put(feature.getName(), feature);
117 130
        catalog.addDatastore(feature.getDatastore());
118 131
        catalog.addNamespace(feature.getNamespace());
132
        catalog.addStyle(feature.getStyle());
119 133
    }
120 134
	
121 135
    /**
......
128 142
        this.catalog.toXML(catalog_xml);
129 143
        //generates services.xml
130 144
        File services_xml = new File(dir.getAbsolutePath() + File.separator +"services.xml");
131
        this.services.toXML(services_xml);
132
        //generates info.xml
145
        this.services.toXML(services_xml);        
146
        //generates info.xml (and write sld into directory styles)
133 147
        Iterator i = featureTypes.values().iterator();
134 148
        File feature_dir = new File(dir.getAbsoluteFile()+ File.separator + "featureTypes");
135 149
        feature_dir.mkdirs();
136 150
        while (i.hasNext()){
137 151
        	GSFeature feature = (GSFeature)i.next();        	
138
        	feature.toXML(feature_dir);        	        	
139
        }
152
        	feature.toXML(feature_dir);           	        	
153
        }  
140 154
        
141 155
    }
142 156
	    	

Also available in: Unified diff