| org.geotools.data.VersioningFeatureSource
VersioningFeatureSource | public interface VersioningFeatureSource extends FeatureSource(Code) | | Extension to feature source to provide the read only methods needed to work
against a versioned data store.
Thought a read only versioned data store does not make sense, it may happen
that a VersioningFeatureSource gets returned, for instance, because of
limited authorizations from the caller code.
author: Andrea Aime, TOPP TODO: this shall be moved in a more generic module author: (api?) once the interfaces are good |
Method Summary | |
public FeatureDiffReader | getDifferences(String fromVersion, String toVersion, Filter filter, String[] userIds) Returns a feature difference reader providing the changes occurred on
filtered features between the two specified versions
Parameters: fromVersion - the start version Parameters: toVersion - the end version, may be null to imply the latest one Parameters: filter - matches features whose differences will be reported * Parameters: users - limits the features whose diff will be returned, bycatching only those that have been modified by at least one ofthe specified users. | public FeatureCollection | getLog(String fromVersion, String toVersion, Filter filter, String[] userIds, int maxRows) Returns a log of changes performed between fromVersion and toVersion
against the features matched by the specified filter.
This is equivalent to gathering the ids of features changed between the
two versions and matching the filter, getting a list of revision
involving those feaures between fromVersion and toVersion, and then query
VersionedPostgisDataStore.TBL_CHANGESETS against these revision
numbers.
Parameters: fromVersion - the start revision Parameters: toVersion - the end revision, may be null to imply the latest one Parameters: filter - will match features whose log will be reported * Parameters: users - limits the features whose log will be returned, bycatching only those that have been modified by at least one ofthe specified users. | public FeatureCollection | getVersionedFeatures(Query q) Returns the same features as
FeatureSource.getFeatures(Query) but providing more
attributes, namely, revision, author and date of the version. | public FeatureCollection | getVersionedFeatures(Filter f) Returns the same features as
FeatureSource.getFeatures(Filter) but providing more
attributes, namely, revision, author and date of the version. | public FeatureCollection | getVersionedFeatures() Returns the same features as
FeatureSource.getFeatures but providing more
attributes, namely, revision, author and date of the version. |
getDifferences | public FeatureDiffReader getDifferences(String fromVersion, String toVersion, Filter filter, String[] userIds) throws IOException(Code) | | Returns a feature difference reader providing the changes occurred on
filtered features between the two specified versions
Parameters: fromVersion - the start version Parameters: toVersion - the end version, may be null to imply the latest one Parameters: filter - matches features whose differences will be reported * Parameters: users - limits the features whose diff will be returned, bycatching only those that have been modified by at least one ofthe specified users. May be null to avoid user filtering. a difference reader throws: IOException - |
getLog | public FeatureCollection getLog(String fromVersion, String toVersion, Filter filter, String[] userIds, int maxRows) throws IOException(Code) | | Returns a log of changes performed between fromVersion and toVersion
against the features matched by the specified filter.
This is equivalent to gathering the ids of features changed between the
two versions and matching the filter, getting a list of revision
involving those feaures between fromVersion and toVersion, and then query
VersionedPostgisDataStore.TBL_CHANGESETS against these revision
numbers.
Parameters: fromVersion - the start revision Parameters: toVersion - the end revision, may be null to imply the latest one Parameters: filter - will match features whose log will be reported * Parameters: users - limits the features whose log will be returned, bycatching only those that have been modified by at least one ofthe specified users. May be null to avoid user filtering. Parameters: maxRows - the maximum number of log rows returned from this call a feature collection of the logs, sorted on revision, descending throws: IOException - |
|
|