Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / persistence / PublishPersistence.java @ 10626

History | View | Annotate | Download (2.35 KB)

1
package com.iver.cit.gvsig.publish.persistence;
2

    
3
import com.iver.cit.gvsig.publish.gui.PublishPreferencesPage;
4
import com.iver.utiles.NotExistInXMLEntity;
5
import com.iver.utiles.swing.jcomboServer.ServerData;
6

    
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
/* CVS MESSAGES:
48
 *
49
 * $Id: PublishPersistence.java 10626 2007-03-06 16:55:54Z caballero $
50
 * $Log$
51
 * Revision 1.2  2007-03-06 16:50:30  caballero
52
 * Exceptions
53
 *
54
 * Revision 1.1  2006/09/11 12:09:13  jorpiell
55
 * Ya se puede almacenar la ruta donde se encuentra el ejecutable de GDAL
56
 *
57
 *
58
 */
59
/**
60
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
61
 */
62
public class PublishPersistence extends
63
                com.iver.andami.persistence.serverData.ServerDataPersistence {
64
        private static final String SERVERS_TAG = "SERVERS";
65
        
66
        public PublishPersistence(Object pluginClassInstance, String serviceType) {
67
                super(pluginClassInstance, serviceType);
68
        }
69
        
70
        public PublishPersistence(Object pluginClassInstance) {
71
                super(pluginClassInstance, ServerData.SERVER_TYPE_MULTIPLE);
72
        }
73
        
74
        public void setGdalPath(String value){
75
                getXml().putProperty(PublishPreferencesPage.GDAL_PATH,value);
76
        }
77
        
78
        public String getGdalPath(){
79
                try{
80
                        return getXml().getStringProperty(PublishPreferencesPage.GDAL_PATH);
81
                }catch(NotExistInXMLEntity e){
82
                        return "";
83
                }
84
        }
85
}