|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.version.VersionSet
public class VersionSet
This Class implements a version selector that is based on a set of verions.
| Constructor Summary | |
|---|---|
VersionSet(Map<NodeId,InternalVersion> versions)
Creates a ChangeSetVersionSelector that will try to select a
version within the given set of versions. |
|
VersionSet(Map<NodeId,InternalVersion> versions,
boolean dateFallback)
Creates a ChangeSetVersionSelector that will try to select a
version in the given set. |
|
| Method Summary | |
|---|---|
InternalVersion |
select(InternalVersionHistory versionHistory)
Selects a version of the given version history. |
Map<NodeId,InternalVersion> |
versions()
Returns the (modifiable) changeset of this selector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionSet(Map<NodeId,InternalVersion> versions)
ChangeSetVersionSelector that will try to select a
version within the given set of versions.
versions - the set of versions
public VersionSet(Map<NodeId,InternalVersion> versions,
boolean dateFallback)
ChangeSetVersionSelector that will try to select a
version in the given set. If the version is missing but dateFall
- Parameters:
versions - the set of versionsdateFallback - if true date fallback is enabled.
| Method Detail |
|---|
public Map<NodeId,InternalVersion> versions()
public InternalVersion select(InternalVersionHistory versionHistory)
throws RepositoryException
null. Please note,
that a version selector is not allowed to return the root version.
Selects a version from set having the given version history.
select in interface VersionSelectorversionHistory - version history to select a version from
null.
RepositoryException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||