public abstract class HistoryProvider
extends java.lang.Object
Constructor and Description |
---|
HistoryProvider() |
Modifier and Type | Method and Description |
---|---|
abstract HistoryEntry[] |
getEntries(java.net.URL url,
HistoryFilter filter)
Get history entries for the specified URL.
|
java.lang.String |
getIdentifer()
Get a history identifier.
|
HistoryFilter[] |
getPredefinedFilters()
Get predefined filters for this provider.
|
abstract HistoryProperty[] |
getProperties()
Get the history properties available for entries supplied by this provider.
|
RestoreFromRevisionClass |
getRestoreFromRevision()
Get the restore from revision class
A class that will restore file revisions.
|
abstract HistoryFilter |
getTypeFilter()
Get a history filter for entries provided by this type.
|
abstract boolean |
isProviderFor(java.net.URL url)
Get whether this provider handles the specified URL.
|
void |
setIdentifier(java.lang.String id) |
public java.lang.String getIdentifer()
public void setIdentifier(java.lang.String id)
public abstract HistoryFilter getTypeFilter()
public HistoryFilter[] getPredefinedFilters()
public abstract HistoryProperty[] getProperties()
public abstract boolean isProviderFor(java.net.URL url)
url
- a URLpublic abstract HistoryEntry[] getEntries(java.net.URL url, HistoryFilter filter)
url
- a URL to get the history for.filter
- a filter to use. This may be null. Providers can optionally
use this filter to do some preprocessing before querying history
entries for efficiency. It's perfectly acceptable to just ignore
the filter: all entries returned by this method will be post
filtered by the HistoryManager.public RestoreFromRevisionClass getRestoreFromRevision()