| Constructor and Description |
|---|
RestDocument(@Nullable String documentId)
Manages a REST document with the given document ID.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull HistoryEntry |
activeHistory()
Gets the active
HistoryEntry |
@NotNull HistoryEntry |
findHistory(int historyId)
Finds a
HistoryEntry by it's history id |
@Nullable DocumentFileBean |
getDocumentFile()
Returns the
DocumentFileBean of the managed REST document. |
@NotNull List<HistoryEntry> |
getHistory()
Returns a copied
List<HistoryEntry> of the managed REST document. |
int |
getHistorySize()
Returns the size of the history entries list
|
@Nullable URI |
getSource()
Returns the
URI of the document source. |
@Nullable String |
getSourceDocumentId()
Returns the document ID of the managed REST document.
|
boolean |
isFileSource()
Returns true if the
URI of the document source points to a file. |
@NotNull HistoryEntry |
lastHistory()
Gets the last
HistoryEntry from the internal map of history entries |
void |
setDocumentFile(@Nullable DocumentFileBean documentFile)
sets the
DocumentFileBean of the managed REST document. |
public RestDocument(@Nullable
@Nullable String documentId)
documentId - The document ID of the managed REST document.@Nullable public @Nullable String getSourceDocumentId()
@Nullable public @Nullable DocumentFileBean getDocumentFile()
DocumentFileBean of the managed REST document.DocumentFileBean of the managed REST document.public void setDocumentFile(@Nullable
@Nullable DocumentFileBean documentFile)
DocumentFileBean of the managed REST document.documentFile - the new DocumentFileBean of the managed REST document.@NotNull public @NotNull List<HistoryEntry> getHistory()
List<HistoryEntry> of the managed REST document.List<HistoryEntry> of the managed REST document.@NotNull public @NotNull HistoryEntry lastHistory() throws ResultException
HistoryEntry from the internal map of history entriesHistoryEntry in listResultException - history entry list is empty@NotNull public @NotNull HistoryEntry activeHistory() throws ResultException
HistoryEntryHistoryEntryResultException - no active history entry@NotNull public @NotNull HistoryEntry findHistory(int historyId) throws ResultException
HistoryEntry by it's history idhistoryId - unique history idHistoryEntryResultException - unable to find history idpublic int getHistorySize()
Copyright © 2017–2023 SoftVision Development GmbH, Fulda, Germany. All rights reserved.