Class DefaultURLBuilder
java.lang.Object
io.goobi.viewer.modules.interfaces.DefaultURLBuilder
- All Implemented Interfaces:
IURLBuilder
DefaultURLBuilder class.
- Author:
- Florian Alpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildPageUrl
(String pi, int imageNo, String logId, PageType pageType, boolean topStruct) buildPageUrl.protected String
buildSearchUrl
(String fieldName, String fieldValue) buildSearchUrl.generateURL
(BrowseElement ele) generateURL.protected PageType
getPageType
(BrowseElement ele) getPageType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.goobi.viewer.modules.interfaces.IURLBuilder
buildPageUrl
-
Constructor Details
-
DefaultURLBuilder
public DefaultURLBuilder()
-
-
Method Details
-
generateURL
generateURL.
- Specified by:
generateURL
in interfaceIURLBuilder
- Parameters:
ele
- The browseElement for which we want to build a url- Returns:
- The url the the given BrowseElement should link to
-
buildPageUrl
public String buildPageUrl(String pi, int imageNo, String logId, PageType pageType, boolean topStruct) buildPageUrl.
- Specified by:
buildPageUrl
in interfaceIURLBuilder
- Parameters:
pi
- The record persistent identifierimageNo
- the page number (1-based)logId
- The METS identifier of the logical struct elementpageType
- the type of viewer page the url should opentopStruct
- if false, the url should point to a page or struct element within the record, so imageNo and logId must be considered- Returns:
- A URL to the object in the view given by pageType
-
getPageType
getPageType.
- Parameters:
ele
- aBrowseElement
object.- Returns:
- a
PageType
object.
-
buildSearchUrl
buildSearchUrl.
-