public interface CoreRevision extends PositionalRevision
Modifier and Type | Interface and Description |
---|---|
static class |
CoreRevision.U
CoreRevision utilities.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
addDraftRevisionPath(List<Integer> path)
Adds to the list the revision path from this core revision (inclusive) to the
terminal draft (inclusive).
|
CoreRevision |
contextView(String contextPersonName)
Constructs a view of this core revision suited for viewing in the context of the
specified person, or returns this same (==) core revision if it is already suited.
|
DraftRevision |
draft()
The position draft.
|
void |
init(PollwikiVS wiki,
String contextPersonName,
CountSource countSource)
Finishes the construction of this CoreRevision and sets isFullyConstructed true.
|
boolean |
isFullyConstructed()
Answers whether the construction of this CoreRevision is complete.
|
person, pollName
isLatestRevision, pageID, pageName, pageURI, rev, revLatest, revURI, wikiScriptURI
@ThreadRestricted(value="constructor") void init(PollwikiVS wiki, String contextPersonName, CountSource countSource) throws IOException
contextPersonName
- the name of the person from whose viewpoint the
revision will be viewed (context person), or null if there is no context
person.countSource
- for possible use during this call. It is never used if
there is no context person.IllegalStateException
- if called a second time.IOException
List<Integer> addDraftRevisionPath(List<Integer> path)
CoreRevision contextView(String contextPersonName)
DraftRevision draft()
boolean isFullyConstructed()
init(PollwikiVS,String,CountSource)