Interface IURLBuilder
- All Known Implementing Classes:
DefaultURLBuilder
public interface IURLBuilder
Interface for creating module-specific urls for viewer pages
- Author:
- Florian Alpers
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
buildPageUrl
(String pi, int imageNo, String logId, PageType pageType) buildPageUrl
(String pi, int imageNo, String logId, PageType pageType, boolean topStruct) buildPageUrl.generateURL
(BrowseElement browseElement) generateURL.
-
Method Details
-
generateURL
generateURL.
- Parameters:
browseElement
- The browseElement for which we want to build a url- Returns:
- The url the the given BrowseElement should link to
-
buildPageUrl
buildPageUrl.
- 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
-
buildPageUrl
- Parameters:
pi
-imageNo
-logId
-pageType
-- Returns:
- Generated URL
-