01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.data;
17:
18: import java.io.IOException;
19:
20: import org.opengis.filter.Filter;
21:
22: /**
23: * Versioning feature store, provides rollback facilities not included in
24: * standard feature stores, plus the extra methods inherited from
25: * {@link VersioningFeatureSource}
26: *
27: * @author Andrea Aime, TOPP
28: */
29: public interface VersioningFeatureStore extends
30: VersioningFeatureSource, FeatureStore {
31: /**
32: * Rolls back features matching the filter to the state they had on the
33: * specified version.
34: * <p>
35: * For a feature to be included into the rollback it's sufficient that one
36: * of its states between <code>toVersion</code> and current matches the
37: * filter.
38: *
39: * @param toVersion
40: * target of the rollback
41: * @param filter
42: * limits the feature whose history will be rolled back by an OGC
43: * filter
44: * @param users
45: * limits the feaeature whose history will be rolled back, by
46: * catching only those that have been modified by at least one of
47: * the specified users. May be null to avoi user filtering.
48: * @throws IOException
49: */
50: public void rollback(String toVersion, Filter filter, String[] users)
51: throws IOException;
52:
53: }
|