public final class StandaloneHandler extends Object implements ElementBuilder, LinkBuilder, LinkValidator
Modifier and Type | Method and Description |
---|---|
LinkBuilder |
element(int element)
Option to specify the document element to view.
|
LinkBuilder |
firstElement()
Option to specify the first document element to view.
|
String |
toLink(String baseURL)
Builds the weblink url with given baseURL.
|
String |
toSecureLink(String baseURL)
Builds a secure weblink url with given baseURL.
|
boolean |
validate(String secure)
Validates the build link with the given secure hash.
|
static ElementBuilder |
with(ResultProperties document)
Creates a builder enclosed by the given document.
|
static ElementBuilder |
with(String versionId)
Creates a builder with the given versionId (the XHDOC) of the document to view.
|
public static ElementBuilder with(ResultProperties document) throws com.saperion.util.LinkCreationException
document
- The document to view.com.saperion.util.LinkCreationException
- if an error occurs.public static ElementBuilder with(String versionId)
versionId
- The versionId (the XHDOC) of the document to view.public LinkBuilder element(int element)
ElementBuilder
element
in interface ElementBuilder
element
- the elementpublic LinkBuilder firstElement()
ElementBuilder
firstElement
in interface ElementBuilder
public String toLink(String baseURL)
LinkBuilder
toLink
in interface LinkBuilder
baseURL
- the base urlpublic String toSecureLink(String baseURL) throws com.saperion.util.LinkCreationException
LinkBuilder
toSecureLink
in interface LinkBuilder
baseURL
- the base urlcom.saperion.util.LinkCreationException
public boolean validate(String secure)
LinkValidator
validate
in interface LinkValidator
secure
- the hash to validate the link with.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.