Class StandaloneHandler
java.lang.Object
com.saperion.ngc.portal.builder.standalone.StandaloneHandler
- All Implemented Interfaces:
ElementBuilder,LinkBuilder,LinkValidator
public final class StandaloneHandler
extends Object
implements ElementBuilder, LinkBuilder, LinkValidator
This Builder can be used to build URLs for the viewer.zul.
-
Method Summary
Modifier and TypeMethodDescriptionelement(int element) Option to specify the document element to view.Option to specify the first document element to view.Builds the weblink url with given baseURL.toSecureLink(String baseURL) Builds a secure weblink url with given baseURL.booleanValidates the build link with the given secure hash.static ElementBuilderwith(ResultProperties document) Creates a builder enclosed by the given document.static ElementBuilderCreates a builder with the given versionId (the XHDOC) of the document to view.
-
Method Details
-
with
public static ElementBuilder with(ResultProperties document) throws com.saperion.util.LinkCreationException Creates a builder enclosed by the given document. The resulting link can be used to view the given document in the viewer.zul.- Parameters:
document- The document to view.- Returns:
- an ElementBuilder to enclose the document element to view.
- Throws:
com.saperion.util.LinkCreationException- if an error occurs.
-
with
Creates a builder with the given versionId (the XHDOC) of the document to view. The resulting link can be used to view the given document in the viewer.zul.- Parameters:
versionId- The versionId (the XHDOC) of the document to view.- Returns:
- an ElementBuilder to enclose the document element to view.
-
element
Description copied from interface:ElementBuilderOption to specify the document element to view.- Specified by:
elementin interfaceElementBuilder- Parameters:
element- the element- Returns:
- the LinkBuilder
-
firstElement
Description copied from interface:ElementBuilderOption to specify the first document element to view.- Specified by:
firstElementin interfaceElementBuilder- Returns:
- the LinkBuilder
-
toLink
Description copied from interface:LinkBuilderBuilds the weblink url with given baseURL.- Specified by:
toLinkin interfaceLinkBuilder- Parameters:
baseURL- the base url- Returns:
- the string
-
toSecureLink
Description copied from interface:LinkBuilderBuilds a secure weblink url with given baseURL.- Specified by:
toSecureLinkin interfaceLinkBuilder- Parameters:
baseURL- the base url- Returns:
- the secure link.
- Throws:
com.saperion.util.LinkCreationException- when the link could not be created
-
validate
Description copied from interface:LinkValidatorValidates the build link with the given secure hash.- Specified by:
validatein interfaceLinkValidator- Parameters:
secure- the hash to validate the link with.- Returns:
- true, if the link is valid, false otherwise.
-