gvsig-projects-pool / org.gvsig.vcsgis / trunk / org.gvsig.vcsgis / org.gvsig.vcsgis.lib / org.gvsig.vcsgis.lib.impl / src / main / java / org / gvsig / vcsgis / lib / server / VCSGisServerControllerImpl.java @ 3315
History | View | Annotate | Download (3.51 KB)
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.server; |
24 |
|
25 |
import org.gvsig.vcsgis.lib.repository.VCSGisRepository; |
26 |
import org.gvsig.vcsgis.lib.server.handlers.CheckoutHandler; |
27 |
import org.gvsig.vcsgis.lib.server.handlers.CommitHandler; |
28 |
import org.gvsig.vcsgis.lib.server.handlers.EntitiesHandler; |
29 |
import org.gvsig.vcsgis.lib.server.handlers.RowCreateHandler; |
30 |
import org.gvsig.vcsgis.lib.server.handlers.RowDeleteHandler; |
31 |
import org.gvsig.vcsgis.lib.server.handlers.RowUpdateHandler; |
32 |
import org.gvsig.vcsgis.lib.server.handlers.TopologyPlansHandler; |
33 |
import org.gvsig.vcsgis.lib.server.handlers.UpdateHandler; |
34 |
import org.gvsig.vcsgis.lib.server.handlers.UsersHandler; |
35 |
|
36 |
/**
|
37 |
*
|
38 |
* @author gvSIG Team
|
39 |
*/
|
40 |
public class VCSGisServerControllerImpl implements VCSGisServerController { |
41 |
|
42 |
private VCSGisRepository repository;
|
43 |
|
44 |
public VCSGisServerControllerImpl(VCSGisRepository repository) {
|
45 |
this.repository = repository;
|
46 |
} |
47 |
|
48 |
@Override
|
49 |
public void dispose() { |
50 |
this.repository.dispose();
|
51 |
this.repository = null; |
52 |
} |
53 |
|
54 |
@Override
|
55 |
public VCSGisRepository getRepository() {
|
56 |
return this.repository; |
57 |
} |
58 |
|
59 |
@Override
|
60 |
public VCSGisServerHandler createEntitiesHandler() {
|
61 |
VCSGisServerHandler handler = new EntitiesHandler(repository);
|
62 |
return handler;
|
63 |
} |
64 |
|
65 |
@Override
|
66 |
public VCSGisServerHandler createCommitHandler() {
|
67 |
VCSGisServerHandler handler = new CommitHandler(repository);
|
68 |
return handler;
|
69 |
} |
70 |
|
71 |
@Override
|
72 |
public VCSGisServerHandler createUpdateHandler() {
|
73 |
VCSGisServerHandler handler = new UpdateHandler(repository);
|
74 |
return handler;
|
75 |
} |
76 |
|
77 |
@Override
|
78 |
public VCSGisServerHandler createCheckoutHandler() {
|
79 |
VCSGisServerHandler handler = new CheckoutHandler(repository);
|
80 |
return handler;
|
81 |
} |
82 |
|
83 |
@Override
|
84 |
public VCSGisServerHandler createRowCreateHandler() {
|
85 |
VCSGisServerHandler handler = new RowCreateHandler(repository);
|
86 |
return handler;
|
87 |
} |
88 |
|
89 |
@Override
|
90 |
public VCSGisServerHandler createRowUpdateHandler() {
|
91 |
VCSGisServerHandler handler = new RowUpdateHandler(repository);
|
92 |
return handler;
|
93 |
} |
94 |
|
95 |
@Override
|
96 |
public VCSGisServerHandler createRowDeleteHandler() {
|
97 |
VCSGisServerHandler handler = new RowDeleteHandler(repository);
|
98 |
return handler;
|
99 |
} |
100 |
|
101 |
@Override
|
102 |
public VCSGisServerHandler createUsersHandler() {
|
103 |
VCSGisServerHandler handler = new UsersHandler(repository);
|
104 |
return handler;
|
105 |
} |
106 |
|
107 |
@Override
|
108 |
public VCSGisServerHandler createTopologyPlansHandler() {
|
109 |
VCSGisServerHandler handler = new TopologyPlansHandler(repository);
|
110 |
return handler;
|
111 |
} |
112 |
|
113 |
} |