Revision 4354

View differences:

org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/.directory
1
[Dolphin]
2
Timestamp=2020,9,1,10,21,14
3
Version=4
4
ViewMode=1
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.main/src/main/assembly/package-main.xml
1
<assembly>
2

  
3
    <id>package-main</id>
4
    <formats>
5
        <format>dir</format>
6
        <format>zip</format>
7
    </formats>
8

  
9
    <baseDirectory>${project.artifactId}</baseDirectory>
10
    <includeBaseDirectory>false</includeBaseDirectory>
11

  
12
    <files>
13
        <file>
14
            <source>target/${project.artifactId}-${project.version}.jar</source>
15
            <outputDirectory>.</outputDirectory>
16
        </file>
17
    </files>
18

  
19
    <fileSets>
20
        <fileSet>
21
            <directory>src/main/resources/data</directory>
22
            <outputDirectory>data</outputDirectory>
23
        </fileSet>
24
    </fileSets>
25

  
26
    <dependencySets>
27
        <dependencySet>
28
            <useProjectArtifact>false</useProjectArtifact>
29
            <useTransitiveDependencies>true</useTransitiveDependencies>
30
            <outputDirectory>lib</outputDirectory>
31
        </dependencySet>
32
    </dependencySets>
33

  
34
</assembly>
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.main/src/main/java/org/gvsig/vcsgis/main/Main.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2020 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.vcsgis.main;
25

  
26
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
27

  
28
/**
29
 * Main executable class of vcsgis tool.
30
 *
31
 * @author gvSIG Team
32
 */
33
public class Main {
34

  
35
    public static void main(String args[]) {
36
        new DefaultLibrariesInitializer().fullInitialize();
37
    }
38

  
39
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.main/src/main/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2012 gvSIG Association.
7

  
8
    This program is free software; you can redistribute it and/or
9
    modify it under the terms of the GNU General Public License
10
    as published by the Free Software Foundation; either version 2
11
    of the License, or (at your option) any later version.
12

  
13
    This program is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU General Public License for more details.
17

  
18
    You should have received a copy of the GNU General Public License
19
    along with this program; if not, write to the Free Software
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
28

  
29
<!-- 
30
Log4J configuration file for unit tests execution.
31
 -->
32
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
33

  
34
	<!-- Appender configuration to show logging messages through the console -->
35
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
36
		<layout class="org.apache.log4j.PatternLayout">
37
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]  %m%n" />
38
		</layout>
39
	</appender>
40

  
41
	<!-- 
42
	Activate logging messages of DEBUG level of higher only for the
43
	org.gvsig.tools packages.
44
	You can put full classes names or packages instead, to configure
45
	logging for all the classes and subpackages of the package.
46
	-->
47
	<category name="org.gvsig">
48
		<priority value="WARN" />
49
	</category>
50
	<category name="org.cresques">
51
		<priority value="WARN" />
52
	</category>
53

  
54
	<!-- 
55
	By default, show only logging messages of INFO level or higher, 
56
	through the previously configured CONSOLE appender. 
57
	-->
58
	<root>
59
		<priority value="INFO" />
60
		<appender-ref ref="CONSOLE" />
61
	</root>
62
</log4j:configuration>
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.main/src/main/resources/README.txt
1
====
2
    gvSIG. Desktop Geographic Information System.
3

  
4
    Copyright (C) 2007-2012 gvSIG Association.
5

  
6
    This program is free software; you can redistribute it and/or
7
    modify it under the terms of the GNU General Public License
8
    as published by the Free Software Foundation; either version 2
9
    of the License, or (at your option) any later version.
10

  
11
    This program is distributed in the hope that it will be useful,
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
    GNU General Public License for more details.
15

  
16
    You should have received a copy of the GNU General Public License
17
    along with this program; if not, write to the Free Software
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
    MA  02110-1301, USA.
20

  
21
    For any additional information, do not hesitate to contact us
22
    at info AT gvsig.com, or visit our website www.gvsig.com.
23
====
24

  
25
Put into this folder the resources needed by your classes.
26

  
27
This folder is added to the classpath, so you can load any resources 
28
through the ClassLoader.
29

  
30
By default, in this folder you can find an example of log4j configuration,
31
prepared to log messages through the console, so logging works when you
32
run your classes.
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.main/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
    <modelVersion>4.0.0</modelVersion>
4
    <artifactId>org.gvsig.vcsgis.main</artifactId>
5
    <packaging>jar</packaging>
6
    <name>${project.artifactId}</name>
7
    <parent>
8
        <groupId>org.gvsig</groupId>
9
        <artifactId>org.gvsig.vcsgis</artifactId>
10
        <version>1.0.0-SNAPSHOT</version>
11
    </parent>
12
  
13
  
14
    <build>
15
        <plugins>
16
            <plugin>
17
                <artifactId>maven-assembly-plugin</artifactId>
18
                <executions>
19
                    <execution>
20
                        <id>package-main</id>
21
                        <phase>package</phase>
22
                        <goals>
23
                            <goal>single</goal>
24
                        </goals>
25
                        <configuration>
26
                            <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
27
                            <appendAssemblyId>false</appendAssemblyId>
28
                            <finalName>${project.artifactId}-${project.version}</finalName>
29
                            <descriptors>
30
                                <descriptor>src/main/assembly/package-main.xml</descriptor>
31
                            </descriptors>
32
                        </configuration>
33
                    </execution>
34
                </executions>
35
            </plugin>
36

  
37
            <plugin>
38
                <groupId>org.apache.maven.plugins</groupId>
39
                <artifactId>maven-jar-plugin</artifactId>
40
                <configuration>
41
                    <archive>
42
                        <manifest>
43
                            <addClasspath>true</addClasspath>
44
                            <mainClass>org.gvsig.vcsgis.main.Main</mainClass>
45
                            <classpathPrefix>lib</classpathPrefix>
46
                        </manifest>
47
                    </archive>
48
                </configuration>
49
            </plugin>
50

  
51
        </plugins>
52

  
53
    </build>
54
  
55
  
56
    <dependencies>
57
        <dependency>
58
            <groupId>org.gvsig</groupId>
59
            <artifactId>org.gvsig.vcsgis.lib.api</artifactId>
60
            <scope>compile</scope>
61
        </dependency>
62
        <dependency>
63
            <groupId>org.gvsig</groupId>
64
            <artifactId>org.gvsig.vcsgis.swing.api</artifactId>
65
            <scope>compile</scope>
66
        </dependency>
67

  
68
        <!-- runtime dependencies -->
69
        <dependency>
70
            <groupId>org.gvsig</groupId>
71
            <artifactId>org.gvsig.vcsgis.lib.impl</artifactId>
72
            <scope>runtime</scope>
73
        </dependency>
74
        <dependency>
75
            <groupId>org.gvsig</groupId>
76
            <artifactId>org.gvsig.vcsgis.swing.impl</artifactId>
77
            <scope>compile</scope>
78
        </dependency>
79
        <dependency>
80
            <groupId>org.gvsig</groupId>
81
            <artifactId>${org.gvsig.metadata.lib.basic.impl}</artifactId>
82
            <scope>runtime</scope>
83
        </dependency>
84
        <dependency>
85
            <groupId>org.gvsig</groupId>
86
            <artifactId>org.gvsig.fmap.dal.impl</artifactId>
87
            <scope>runtime</scope>
88
        </dependency>
89
        <dependency>
90
            <groupId>org.gvsig</groupId>
91
            <artifactId>org.gvsig.fmap.dal.spi</artifactId>
92
            <scope>runtime</scope>
93
        </dependency>
94
        <dependency>
95
            <groupId>org.gvsig</groupId>
96
            <artifactId>org.gvsig.fmap.dal.file.lib</artifactId>
97
            <scope>runtime</scope>
98
        </dependency>
99
        <dependency>
100
            <groupId>org.gvsig</groupId>
101
            <artifactId>org.gvsig.fmap.dal.file.shp</artifactId>
102
            <scope>runtime</scope>
103
        </dependency>
104
        <dependency>
105
            <groupId>org.gvsig</groupId>
106
            <artifactId>org.gvsig.fmap.dal.file.dbf</artifactId>
107
            <scope>runtime</scope>
108
        </dependency>
109
        <dependency>
110
            <groupId>org.gvsig</groupId>
111
            <artifactId>org.gvsig.fmap.dal.db.lib</artifactId>
112
            <scope>runtime</scope>
113
        </dependency>
114
        <dependency>
115
            <groupId>org.gvsig</groupId>
116
            <artifactId>org.gvsig.fmap.dal.db.h2</artifactId>
117
            <scope>runtime</scope>
118
        </dependency>
119

  
120
        <dependency>
121
            <groupId>org.gvsig</groupId>
122
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
123
            <scope>runtime</scope>
124
        </dependency>
125
        <dependency>
126
            <groupId>org.gvsig</groupId>
127
            <artifactId>${org.gvsig.timesupport.lib.impl}</artifactId>
128
            <scope>runtime</scope>
129
        </dependency>
130

  
131
        <dependency>
132
            <groupId>org.gvsig</groupId>
133
            <artifactId>${org.gvsig.compat.impl}</artifactId>
134
            <scope>runtime</scope>
135
        </dependency>
136
        <dependency>
137
            <groupId>org.gvsig</groupId>
138
            <artifactId>${org.gvsig.fmap.geometry.impl}</artifactId>
139
            <scope>runtime</scope>
140
        </dependency>
141

  
142
        <dependency>
143
            <groupId>org.gvsig</groupId>            
144
            <artifactId>${org.gvsig.proj.lib.impl}</artifactId>
145
            <scope>runtime</scope>
146
        </dependency>
147

  
148
        <dependency>
149
            <groupId>org.gvsig</groupId>
150
            <artifactId>org.gvsig.tools.swing.api</artifactId>
151
            <scope>runtime</scope>
152
        </dependency>
153
        <dependency>
154
            <groupId>org.gvsig</groupId>
155
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
156
            <scope>runtime</scope>
157
        </dependency>
158

  
159

  
160
    </dependencies>
161
</project>
0 162

  
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.vcsgis</artifactId>
6
    <version>1.0.27</version>
7
  </parent>
8
  <artifactId>org.gvsig.vcsgis.lib</artifactId>
9
  <packaging>pom</packaging>
10
  <modules>
11
    <module>org.gvsig.vcsgis.lib.api</module>
12
    <module>org.gvsig.vcsgis.lib.impl</module>
13
  </modules>
14
</project>
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <artifactId>org.gvsig.vcsgis.lib.api</artifactId>
4
  <name>${project.artifactId}</name>
5
  <parent>
6
    <groupId>org.gvsig</groupId>
7
    <artifactId>org.gvsig.vcsgis.lib</artifactId>
8
    <version>1.0.27</version>
9
  </parent>
10

  
11
  <build>
12
    <plugins>
13
      <plugin>
14
        <groupId>org.apache.maven.plugins</groupId>
15
        <artifactId>maven-jar-plugin</artifactId>
16
        <configuration>
17
        </configuration>
18
        <executions>
19
          <!-- Generates a jar file only with the test classes -->
20
          <execution>
21
            <goals>
22
              <goal>test-jar</goal>
23
            </goals>
24
          </execution>
25
        </executions>
26
      </plugin>
27
    </plugins>
28
  </build>
29

  
30
  <dependencies>
31
    <dependency>
32
      <groupId>org.gvsig</groupId>
33
      <artifactId>org.gvsig.tools.lib</artifactId>
34
      <scope>compile</scope>
35
    </dependency>
36
    <dependency>
37
      <groupId>org.gvsig</groupId>
38
      <artifactId>org.gvsig.fmap.dal.db.jdbc</artifactId>
39
      <scope>compile</scope>
40
    </dependency>
41
    <dependency>
42
      <groupId>javax.servlet</groupId>
43
      <artifactId>javax.servlet-api</artifactId>
44
      <scope>compile</scope>
45
    </dependency>
46
  </dependencies>
47
</project>
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/VCSGisEntity.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib;
23

  
24
import java.util.List;
25
import org.gvsig.fmap.dal.feature.FeatureType;
26
import org.gvsig.json.SupportToJson;
27
import org.gvsig.tools.util.LabeledValue;
28

  
29
/**
30
 *
31
 * @author gvSIG Team
32
 */
33
public interface VCSGisEntity extends LabeledValue<VCSGisEntity>, SupportToJson {
34

  
35
    public String getEntityCode();
36

  
37
    public String getRepositoryRevisionCode();
38

  
39
    public String getEntityName();
40

  
41
    public String getDataTableName();
42

  
43
    public String getGeometryFieldName();
44

  
45
    public String getFeatureIdFieldName();
46

  
47
    public String getDescription();
48

  
49
    public String getFieldForLabel();
50

  
51
    public FeatureType getFeatureType();
52

  
53
    public String getFeatureTypeAsJson();
54

  
55
    public String getUserCode();
56

  
57
    public String getTopologyPlanCode();
58

  
59
    public String getCategory();
60

  
61
    public List<String> getCategoriesAsList();
62
    
63
    public String getAuthorizations();
64

  
65
    public int getTopologyPlanMode();
66

  
67
    public void copyto(VCSGisEntityEditable entity);
68
    
69
    @Override
70
    public String getLabel();
71
    
72
    public String getLabelOrName();
73
    
74
    public boolean isAuthorized(VCSGisUser user, String operation);
75
    
76
    public String getResources();
77
    
78
    public String getDataModels();
79
    
80
    public List<String> getDataModelsAsList();
81
    
82
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/VCSGisUser.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib;
23

  
24
import java.util.List;
25
import org.gvsig.json.SupportJson;
26

  
27
/**
28
 *
29
 * @author gvSIG Team
30
 */
31
public interface VCSGisUser extends SupportJson {
32

  
33
    public static final String ROLE_CHECKOUT = "checkout";
34
    public static final String ROLE_COMMIT = "commit";
35
    public static final String ROLE_ENTITIES = "entities";
36
    public static final String ROLE_HISTORY = "history";
37
    public static final String ROLE_UPDATE = "update";
38
    public static final String ROLE_USERS = "users";
39
    public static final String ROLE_ROWCREATE = "rowcreate";
40
    public static final String ROLE_ROWUPDATE = "rowupdate";
41
    public static final String ROLE_ROWDELETE = "rowdelete";
42
    
43
    public String getUserCode();
44

  
45
    public String getDescription();
46

  
47
    public String getIdentifier();
48

  
49
    public String getAllowedOperations();
50
    
51
    public List<String> getAllowedOperationsAsList();
52
    
53
    public boolean isAllowedOperation(String operation);
54

  
55
    public String getRoles();
56
    
57
    public List<String> getRolesAsList();
58
    
59
    public void copyFrom(VCSGisUser other);
60
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisRowCreateRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22

  
23
package org.gvsig.vcsgis.lib.repository.requests;
24

  
25
import java.sql.Timestamp;
26
import org.gvsig.vcsgis.lib.VCSGisEntityEditable;
27

  
28
/**
29
 *
30
 * @author gvSIG Team
31
 */
32
public interface VCSGisRowCreateRequest extends VCSGisRequest {
33

  
34
    // in
35
    public String getEntityName();
36
    public String getLocalRevisionCode();
37

  
38
    public Timestamp getEfectiveDate();
39
    public void setEfectiveDate(Timestamp efectiveDate);
40
    public void setEfectiveDate(String efectiveDate);
41

  
42
    public String getComment();
43
    public void setComment(String comment);
44
    
45
    public String getData();
46
    public void setData(String data);
47
    
48
    // out
49
    public String getEntityCode();
50
    public String getEntityRevisionCode();
51
    
52
    public String getRelatedFeatureCode();
53
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisAuthenticateRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
/**
25
 *
26
 * @author gvSIG Team
27
 */
28
public interface VCSGisAuthenticateRequest extends VCSGisRequest {
29

  
30
    public String getUserId();
31
    
32
    public String getPassword();
33
    
34
    public void setUserId(String id);
35
    
36
    public void setPassword(String password);
37
    
38
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisRowIsOutofdateRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22

  
23
package org.gvsig.vcsgis.lib.repository.requests;
24

  
25
/**
26
 *
27
 * @author gvSIG Team
28
 */
29
public interface VCSGisRowIsOutofdateRequest extends VCSGisRequest {
30

  
31
    // in
32
    public String getEntityName();
33
    public String getLocalRevisionCode();
34
    public String getRecordCode();
35
    
36
    // out
37
    public boolean isOutdated();
38
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.util.Map;
25
import org.gvsig.tools.dispose.Disposable;
26
import org.gvsig.vcsgis.lib.VCSGisUser;
27

  
28
/**
29
 *
30
 * @author gvSIG Team
31
 */
32
public interface VCSGisRequest extends Disposable {
33

  
34
    public String getRequestName();
35

  
36
    public String getCode();
37
    
38
    public int execute();
39

  
40
    public int getLastErrorCode();
41

  
42
    public String getLastErrorMessage();
43
    
44
    public void setEnabledStatus(boolean enable);
45
    
46
    public String getAuthenticationToken();
47
    
48
    public void setAuthenticationToken(String token);
49
    
50
    public void setUserCode(String userCode);
51
    
52
    public String getUserCode();
53

  
54
    public void setAuthenticationTokenAndUser(Map<String, String> params);
55
    
56
    public void cleanLastError();
57

  
58
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisHistoryRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.sql.Timestamp;
25
import java.time.LocalDateTime;
26
import org.apache.commons.lang3.Range;
27
import org.gvsig.tools.dispose.DisposableIterable;
28
import org.gvsig.vcsgis.lib.VCSGisRevision;
29

  
30
/**
31
 *
32
 * @author jjdelcerro
33
 */
34
public interface VCSGisHistoryRequest extends VCSGisRequest {
35
    
36
    // in
37
    public String getEntityName();
38

  
39
    public Timestamp getMinDate();
40

  
41
    public Timestamp getMaxDate();
42
    
43
    public long getMinRevisionNumber();
44

  
45
    public long getMaxRevisionNumber();
46
    
47
    public void setDateRange(Timestamp min, Timestamp max);
48

  
49
    public void setRevisionNumberRange(long min, long max);
50

  
51
    public void setMaxNumberOfRevisions(int maxNumberOfRevisions);
52

  
53
    // out
54
    public DisposableIterable<VCSGisRevision> getRevisions();
55

  
56
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisUsersRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.util.List;
25
import org.gvsig.vcsgis.lib.VCSGisUser;
26

  
27
/**
28
 *
29
 * @author gvSIG Team
30
 */
31
public interface VCSGisUsersRequest extends VCSGisRequest {
32

  
33
    public List<VCSGisUser> getUsers();
34
    
35
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisUpdateRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import org.gvsig.tools.dispose.DisposableIterable;
25
import org.gvsig.vcsgis.lib.VCSGisEntity;
26
import org.gvsig.vcsgis.lib.repository.VCSGisRepositoryData;
27

  
28
/**
29
 *
30
 * @author gvSIG Team
31
 */
32
public interface VCSGisUpdateRequest extends VCSGisRequest {
33

  
34
    // in
35
    public String getEntityName();
36
    
37
    public String getLocalRevisionCode();
38
    public void setLocalRevisionCode(String revisionCode);
39

  
40
    // out
41
    public VCSGisEntity getEntity();
42

  
43
    public DisposableIterable<VCSGisRepositoryData> getData();
44

  
45
    public String getUsersHashCode();
46

  
47
    public String getTopologyPlansHashCode();
48

  
49
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisEntitiesRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.util.List;
25
import org.gvsig.vcsgis.lib.VCSGisEntity;
26

  
27
/**
28
 *
29
 * @author gvSIG Team
30
 */
31
public interface VCSGisEntitiesRequest extends VCSGisRequest {
32

  
33
    public List<VCSGisEntity> getRepositoryEntities();
34
    
35
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisCheckoutRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.sql.Timestamp;
25
import org.gvsig.tools.dispose.DisposableIterable;
26
import org.gvsig.vcsgis.lib.VCSGisEntity;
27
import org.gvsig.vcsgis.lib.repository.VCSGisRepositoryData;
28

  
29
/**
30
 *
31
 * @author gvSIG Team
32
 */
33
public interface VCSGisCheckoutRequest extends VCSGisRequest {
34

  
35
    // in
36
    public String getEntityName();
37

  
38
    public Timestamp getEfectiveDate();
39

  
40
    public void setEfectiveDate(Timestamp efectiveDate);
41

  
42
    public void setEfectiveDate(String efectiveDate);
43

  
44
    public String getRevisionCode();
45

  
46
    public void setRevisionCode(String revisionCode);
47

  
48
    // out
49
    public VCSGisEntity getEntity();
50

  
51
    public DisposableIterable<VCSGisRepositoryData> getData();
52
    
53
    public String getUsersHashCode();
54
    
55
    public String getTopologyPlansHashCode();
56
    
57
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisCommitRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.sql.Timestamp;
25
import java.util.Collection;
26
import java.util.List;
27
import org.gvsig.tools.dispose.DisposableIterable;
28
import org.gvsig.vcsgis.lib.VCSGisChange;
29
import org.gvsig.vcsgis.lib.VCSGisEntity;
30
import org.gvsig.vcsgis.lib.VCSGisTopologyPlanStatus;
31
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspaceEntity;
32

  
33
/**
34
 *
35
 * @author gvSIG Team
36
 */
37
public interface VCSGisCommitRequest extends VCSGisRequest {
38

  
39
    // in
40
    public Timestamp getRevisionDate();
41

  
42
    public void setRevisionDate(Timestamp revisionDate);
43

  
44
    public Timestamp getEfectiveDate();
45

  
46
    public void setEfectiveDate(Timestamp efectiveDate);
47

  
48
    public String getComment();
49

  
50
    public void setComment(String comment);
51

  
52
    public VCSGisWorkspaceEntity createEntity(String code, String name);
53

  
54
    public VCSGisWorkspaceEntity createEntity(VCSGisWorkspaceEntity entity);
55

  
56
    public void add(VCSGisWorkspaceEntity entity);
57

  
58
    public void add(DisposableIterable<VCSGisChange> changes);
59

  
60
    public void markAsNew(VCSGisEntity entity);
61

  
62
    public void markAsNew(String entityCode);
63

  
64
    // out
65
    public List<VCSGisWorkspaceEntity> getChangedLocalEntities();
66

  
67
    public void add(VCSGisTopologyPlanStatus topologyPlanStatus);
68

  
69
    public Collection<VCSGisTopologyPlanStatus> getTopologyPlanStatus();
70
      
71
    
72
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisRowDeleteRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22

  
23
package org.gvsig.vcsgis.lib.repository.requests;
24

  
25
import java.sql.Timestamp;
26
import org.gvsig.vcsgis.lib.VCSGisEntityEditable;
27

  
28
/**
29
 *
30
 * @author gvSIG Team
31
 */
32
public interface VCSGisRowDeleteRequest extends VCSGisRequest {
33

  
34
    // in
35
    public String getEntityName();
36
    public String getLocalRevisionCode();
37

  
38
    public Timestamp getEfectiveDate();
39
    public void setEfectiveDate(Timestamp efectiveDate);
40
    public void setEfectiveDate(String efectiveDate);
41

  
42
    public String getComment();
43
    public void setComment(String comment);
44

  
45
    public String getRelatedFeatureCode();
46
    public void setRelatedFeatureCode(String relatedFeatureCode);
47
    
48
    // out
49
    public String getEntityCode();
50
    public String getEntityRevisionCode();
51
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisRowUpdateRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22

  
23
package org.gvsig.vcsgis.lib.repository.requests;
24

  
25
import java.sql.Timestamp;
26
import org.gvsig.vcsgis.lib.VCSGisEntityEditable;
27

  
28
/**
29
 *
30
 * @author gvSIG Team
31
 */
32
public interface VCSGisRowUpdateRequest extends VCSGisRequest {
33

  
34
    // in
35
    public String getEntityName();
36
    public String getLocalRevisionCode();
37

  
38
    public Timestamp getEfectiveDate();
39
    public void setEfectiveDate(Timestamp efectiveDate);
40
    public void setEfectiveDate(String efectiveDate);
41

  
42
    public String getComment();
43
    public void setComment(String comment);
44

  
45
    public String getData();
46
    public void setData(String code);
47
    
48
    // out
49
    public String getEntityCode();
50
    public String getEntityRevisionCode();
51
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/requests/VCSGisTopologyPlansRequest.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository.requests;
23

  
24
import java.util.List;
25
import org.gvsig.vcsgis.lib.VCSGisTopologyPlan;
26

  
27
/**
28
 *
29
 * @author gvSIG Team
30
 */
31
public interface VCSGisTopologyPlansRequest extends VCSGisRequest {
32

  
33
    public List<VCSGisTopologyPlan> getTopologyPlans();
34
    
35
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/VCSGisRepositoryRevision.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository;
23

  
24
import org.gvsig.vcsgis.lib.VCSGisRevision;
25

  
26
/**
27
 *
28
 * @author gvSIG Team
29
 */
30
public interface VCSGisRepositoryRevision extends VCSGisRevision {}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/VCSGisRepository.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository;
23

  
24

  
25
import org.gvsig.vcsgis.lib.VCSGisEntity;
26
import org.gvsig.vcsgis.lib.repository.requests.VCSGisCheckoutRequest;
27
import org.gvsig.vcsgis.lib.repository.requests.VCSGisCommitRequest;
28
import org.gvsig.json.SupportJson;
29
import org.gvsig.tools.dispose.Disposable;
30
import org.gvsig.vcsgis.lib.repository.requests.VCSGisAuthenticateRequest;
31
import org.gvsig.vcsgis.lib.repository.requests.VCSGisEntitiesRequest;
32
import org.gvsig.vcsgis.lib.repository.requests.VCSGisRowCreateRequest;
33
import org.gvsig.vcsgis.lib.repository.requests.VCSGisRowDeleteRequest;
34
import org.gvsig.vcsgis.lib.repository.requests.VCSGisRowUpdateRequest;
35
import org.gvsig.vcsgis.lib.repository.requests.VCSGisUpdateRequest;
36
import org.gvsig.vcsgis.lib.repository.requests.VCSGisHistoryRequest;
37
import org.gvsig.vcsgis.lib.repository.requests.VCSGisRowIsOutofdateRequest;
38
import org.gvsig.vcsgis.lib.repository.requests.VCSGisTopologyPlansRequest;
39
import org.gvsig.vcsgis.lib.repository.requests.VCSGisUsersRequest;
40

  
41
/**
42
 *
43
 * @author gvSIG Team
44
 */
45
public interface VCSGisRepository extends Disposable, SupportJson {
46
   
47
    public static final int DATA_TABLE_BATCH_SIZE = 500;
48
    
49

  
50
    public static final int NOTIFICATION_COSA = 0;
51
    public static final int NOTIFICATION_URL = 1;
52
    public static final int NOTIFICATION_COMMAND = 2;
53
    
54
    public String getLabel();
55
    
56
    public String createUniqueCode();
57
    
58
    public String getUserCode();
59
    
60
    public VCSGisEntity getEntityByName(String entityName);
61
    
62
    public VCSGisEntitiesRequest createEntitiesRequest();
63

  
64
    public VCSGisCommitRequest createCommitRequest();
65

  
66
    public VCSGisCheckoutRequest createCheckoutRequest(String entityName);
67
    
68
    public VCSGisUpdateRequest createUpdateRequest(String entityName);
69

  
70
    public VCSGisHistoryRequest createHistoryRequest(String entityName);
71
    
72
    public VCSGisRowCreateRequest createRowCreateRequest(String entityName, String localRevisionCode);
73
    
74
    public VCSGisRowDeleteRequest createRowDeleteRequest(String entityName, String localRevisionCode);
75
    
76
    public VCSGisRowUpdateRequest createRowUpdateRequest(String entityName, String localRevisionCode);
77

  
78
    public void addObserver(String tableName, String type, String operation, String command);
79

  
80
    public VCSGisAuthenticateRequest createAuthenticateRequest(String userId, String password);
81
    
82
    public VCSGisTopologyPlansRequest createTopologyPlansRequest();
83

  
84
    public VCSGisUsersRequest createUsersRequest();
85
    
86
    public String getAuthenticationToken();
87
    
88
    public void setAuthenticationToken(String token);
89
    
90
    public void setUserCode(String userCode);
91

  
92
    public int getDataTableBtachSize();
93

  
94
    public VCSGisRowIsOutofdateRequest createRowIsOutofdatedRequest(String entityName, String localRevisionCode, String recordCode);
95
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/VCSGisRepositoryChange.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository;
23

  
24
import org.gvsig.fmap.geom.Geometry;
25
import org.gvsig.vcsgis.lib.VCSGisChange;
26

  
27
/**
28
 *
29
 * @author gvSIG Team
30
 */
31
public interface VCSGisRepositoryChange extends VCSGisChange {
32

  
33
    public String getRequestCode();
34

  
35
    public String getRevisionCode();
36

  
37
    public long getRevisionNumber();
38
    
39
    public Geometry getGeometry();
40
    
41
}
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.27/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.api/src/main/java/org/gvsig/vcsgis/lib/repository/VCSGisRepositoryData.java
1
/*
2
 * gvSIG. Desktop Geographic Information System.
3
 * 
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License 
17
 * along with this program. If not, see <https://www.gnu.org/licenses/>. 
18
 * 
19
 * For any additional information, do not hesitate to contact us
20
 * at info AT gvsig.com, or visit our website www.gvsig.com.
21
 */
22
package org.gvsig.vcsgis.lib.repository;
23

  
24
import java.sql.Timestamp;
25
import javax.json.JsonObject;
26
import org.gvsig.json.SupportToJson;
27

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff