Class NavigationHelper
- java.lang.Object
-
- io.goobi.viewer.managedbeans.NavigationHelper
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class NavigationHelper extends Object implements Serializable
This bean contains useful navigation parameters.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
KEY_CURRENT_VIEW
ConstantKEY_CURRENT_VIEW="currentView"
protected static String
KEY_MENU_PAGE
ConstantKEY_MENU_PAGE="menuPage"
protected static String
KEY_PREFERRED_VIEW
ConstantKEY_PREFERRED_VIEW="preferredView"
protected static String
KEY_SELECTED_NEWS_ARTICLE
ConstantKEY_SELECTED_NEWS_ARTICLE="selectedNewsArticle"
protected static String
KEY_SUBTHEME_DISCRIMINATOR_VALUE
ConstantKEY_SUBTHEME_DISCRIMINATOR_VALUE="subThemeDicriminatorValue"
protected Map<String,String>
statusMap
Map for setting any navigation status variables.
-
Constructor Summary
Constructors Constructor Description NavigationHelper()
Empty constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addSearchUrlWithCurrentSortStringToHistory()
If the current page url is a search page url without or with empty search parameters replaceViewHistory.getCurrentView(javax.servlet.ServletRequest)
with a search url containing the default sort string.void
addStaticLinkToBreadcrumb(String linkName, int linkWeight)
Adds a link to the breadcrumbs using the current PrettyURL.void
addStaticLinkToBreadcrumb(String linkName, String url, int linkWeight)
Adds a link to the breadcrumbs using the given URL.String
browsePage()
browsePage.protected List<LabeledLink>
createAdminBreadcrumbs(PageType pageType, List<List<String>> labels)
String
determineCurrentSubThemeDiscriminatorValue()
Get the subthemeDiscriminator value either from a property of the currently loaded CMS page or the currently loaded document in the activeDocumentbean if the current page is a docmentPage.String
getAdvancedSearchUrl()
getAdvancedSearchUrl.String
getApplicationName()
getApplicationName.String
getApplicationUrl()
getApplicationUrl.String
getBrowseUrl()
getBrowseUrl.String
getBuildDate()
getBuildDate.String
getBuildVersion()
getBuildVersion.String
getCalendarActiveUrl()
getCalendarActiveUrl.String
getCalendarUrl()
getCalendarUrl.static String
getCMSPageNavigationId(CMSPage cmsPage)
Produce an identifier string for a cms page to use for identifying the page in the navigation barString
getCurrentPage()
Getter for the fieldcurrentPage
.PageType
getCurrentPageType()
Get thePageType
for the page name fromgetCurrentPage()
String
getCurrentPageTypeUrl()
String
getCurrentPrettyUrl()
Returns the current PrettyURL.String
getCurrentTime()
String
getCurrentUrl()
getCurrentUrl.String
getCurrentView()
getCurrentView.String
getCurrentViewPrettyUrl()
String
getCurrentViewUrl()
getCurrentViewUrl.String
getDatePattern()
getDatePattern.String
getDatePatternjQueryDatePicker()
getDatePatternjQueryDatePicker.String
getDateTimePattern()
Locale
getDefaultLocale()
getDefaultLocale.String
getEncodedUrl()
Used for social bookmarks.String
getExitUrl()
String
getExitUrl(PageType pageType)
static String
getFullRequestUrl(javax.servlet.http.HttpServletRequest request, String prettyFacesURI)
getFullRequestUrl.String
getFulltextActiveUrl()
getFulltextActiveUrl.String
getFulltextUrl()
getFulltextUrl.String
getImageActiveUrl()
getImageActiveUrl.String
getImageUrl()
getImageUrl.String
getLastRequestTimestamp()
getLastRequestTimestamp.String
getLocalDate(LocalDateTime date)
Returns the string representation of the givenDate
based on the currentlocale
.Locale
getLocale()
Getter for the fieldlocale
.String
getLocaleString()
Returns the language code of the currentlocale
in the ISO 639-1 (two-character) format.String
getMenuPage()
getMenuPage.List<String>
getMessageValueList(String keyPrefix)
getMessageValueList.String
getMetadataActiveUrl()
getMetadataActiveUrl.String
getMetadataUrl()
getMetadataUrl.String
getObjectUrl()
getObjectUrl.String
getPageUrl(PageType page)
getPageUrl.String
getPageUrl(String pageType)
getPageUrl.String
getPreferredView()
Returns the manually selected view type (will be used for search result browsing, if set).String
getPreviousViewUrl()
getPreviousViewUrl.List<Integer>
getRange(long from, long to)
String
getReadingModeUrl()
Deprecated.renamed to fullscreenString
getRequestPath(javax.faces.context.ExternalContext externalContext)
getRequestPath.static String
getRequestPath(javax.servlet.http.HttpServletRequest request, String prettyFacesURI)
getRequestPath.String
getResource(String path)
Get the path to a viewer resource relative to the root path ("/viewer") If it exists, the resource from the theme, otherwise from the core If the resource exists neither in theme nor core.String
getRssUrl()
getRssUrl.String
getSearchUrl()
getSearchUrl.String
getSearchUrl(int activeSearchType)
getSearchUrl.String
getSelectedNewsArticle()
getSelectedNewsArticle.Optional<String>
getSessionId()
String
getSessionIPAddress()
String
getSortUrl()
getSortUrl.Map<String,String>
getStatusMap()
Getter for the fieldstatusMap
.String
getStatusMapValue(String key)
getStatusMapValue.String
getSubThemeDiscriminatorQuerySuffix()
getSubThemeDiscriminatorQuerySuffix.String
getSubThemeDiscriminatorValue()
Returns the value of the configured sub-theme discriminator field.List<String>
getSupportedLanguages()
Returns ISO 639-1 language codes of available JSF locales.String
getSupportedLanguagesAsJson()
Returns ISO 639-1 language codes of available JSF locales as json array.Iterator<Locale>
getSupportedLocales()
getSupportedLocales.String
getTermUrl()
getTermUrl.String
getTheme()
Getter for the fieldtheme
.String
getThemeOrSubtheme()
getThemeOrSubtheme.String
getThumbsActiveUrl()
getThumbsActiveUrl.String
getThumbsUrl()
getThumbsUrl.TimeZone
getTimeZone()
getTimeZone.String
getTocActiveUrl()
getTocActiveUrl.String
getTocUrl()
getTocUrl.String
getTranslation(String msgKey, String language)
Returns a simple translation for the given language (or current language, if none given).String
getTranslation(String msgKey, String language, boolean escape)
Returns a simple translation for the given language (or current language, if none given).String
getTranslationsAsJson(List<String> keys)
String
getTranslationWithParams(String msgKey, String... params)
Returns the translation for the givenmsgKey
and replaces all {i} placeholders with values from the givenparams
.String
getTranslationWithParamsUnescaped(String msgKey, String... params)
Returns the translation for the givenmsgKey
and replaces all {i} placeholders with values from the givenparams
.String
getVersion()
getVersion.String
getViewAction(String view)
getViewAction.String
getViewImagePathFullscreen()
This method checks the Solr height attribute of the current page.String
homePage()
homePage.void
init()
init.boolean
isCmsPage()
isCmsPage.boolean
isDisplayNoIndexMetaTag()
Checks whether to display a noindex meta tag on the current page.boolean
isDocumentPage()
Checks if the current page displays document information, solely based on the String getCurrentPage() The Pages for which this method should return true are set in the PageType class.boolean
isRtl()
boolean
isRtl(String locale)
boolean
isRtl(Locale locale)
boolean
isSolrIndexOnline()
boolean
isSubthemeSelected()
isSubthemeSelected.void
redirectToCurrentView()
redirectToCurrentView.void
redirectToPreviousView()
redirectToPreviousView.void
reload()
reload.void
resetCurrentPage()
resetCurrentPage.void
resetTheme()
resetTheme.String
resolvePrettyUrl(String prettyId, Object... parameters)
String
returnTo(String page)
String
searchPage()
searchPage.void
setBreadcrumbBean(BreadcrumbBean breadcrumbBean)
Required setter for ManagedProperty injectionvoid
setCmsPage(boolean isCmsPage)
setCmsPage.void
setCrowdsourcingAnnotationPage(Campaign campaign, String pi, CrowdsourcingStatus status)
Set the current page to a crowdsourcing annotation page with the given campaign as parent and the given pi as current identifiervoid
setCurrentBreadcrumbPage(String pageName, String pageWeight, String pageURL)
setCurrentBreadcrumbPage.void
setCurrentPage(CMSPage cmsPage)
void
setCurrentPage(String currentPage)
Setter for the fieldcurrentPage
.void
setCurrentPage(String currentPage, boolean resetBreadcrubs, boolean resetCurrentDocument)
Setter for the fieldcurrentPage
.void
setCurrentPage(String currentPage, boolean resetBreadcrubs, boolean resetCurrentDocument, boolean setCmsPage)
Setter for the fieldcurrentPage
.void
setCurrentPageAdmin()
setCurrentPageAdmin.void
setCurrentPageAdmin(String pageName)
setCurrentPageAdmin.void
setCurrentPageAdmin(String pageName, List<List<String>> labels)
void
setCurrentPageBrowse()
setCurrentPageBrowse.void
setCurrentPageBrowse(CollectionView collection)
setCurrentPageBrowse.void
setCurrentPageIndex()
setCurrentPageIndex.void
setCurrentPageSearch()
setCurrentPageSearch.void
setCurrentPageSearchTermList()
setCurrentPageSearchTermList.void
setCurrentPageSitelinks()
setCurrentPageSitelinks.void
setCurrentPageStatistics()
setCurrentPageStatistics.void
setCurrentPageTags()
setCurrentPageTags.void
setCurrentPageTimeMatrix()
setCurrentPageTimeMatrix.void
setCurrentPageUser()
setCurrentPageUser.void
setCurrentView(String currentView)
Sets the currently selected content view name.void
setLocaleString(String inLocale)
setLocaleString.void
setMenuPage(String page)
setMenuPage.void
setPreferredView(String preferredView)
Sets the manually selected view type (will be used for search result browsing, if set).void
setSelectedNewsArticle(String art)
setSelectedNewsArticle.void
setStatusMap(Map<String,String> statusMap)
Setter for the fieldstatusMap
.void
setStatusMapValue(String key, String value)
setStatusMapValue.void
setSubThemeDiscriminatorValue()
void
setSubThemeDiscriminatorValue(String subThemeDiscriminatorValue)
setSubThemeDiscriminatorValue.String
urlEncode(String s)
urlEncode.String
urlEncodeUnicode(String s)
urlEncodeUnicode.
-
-
-
Field Detail
-
KEY_CURRENT_VIEW
protected static final String KEY_CURRENT_VIEW
ConstantKEY_CURRENT_VIEW="currentView"
- See Also:
- Constant Field Values
-
KEY_PREFERRED_VIEW
protected static final String KEY_PREFERRED_VIEW
ConstantKEY_PREFERRED_VIEW="preferredView"
- See Also:
- Constant Field Values
-
KEY_SELECTED_NEWS_ARTICLE
protected static final String KEY_SELECTED_NEWS_ARTICLE
ConstantKEY_SELECTED_NEWS_ARTICLE="selectedNewsArticle"
- See Also:
- Constant Field Values
-
KEY_MENU_PAGE
protected static final String KEY_MENU_PAGE
ConstantKEY_MENU_PAGE="menuPage"
- See Also:
- Constant Field Values
-
KEY_SUBTHEME_DISCRIMINATOR_VALUE
protected static final String KEY_SUBTHEME_DISCRIMINATOR_VALUE
ConstantKEY_SUBTHEME_DISCRIMINATOR_VALUE="subThemeDicriminatorValue"
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init()
init.
-
setBreadcrumbBean
public void setBreadcrumbBean(BreadcrumbBean breadcrumbBean)
Required setter for ManagedProperty injection- Parameters:
breadcrumbBean
- the breadcrumbBean to set
-
getCurrentPage
public String getCurrentPage()
Getter for the field
currentPage
.- Returns:
- a
String
object.
-
isCmsPage
public boolean isCmsPage()
isCmsPage.
- Returns:
- the isCmsPage
-
setCmsPage
public void setCmsPage(boolean isCmsPage)
setCmsPage.
- Parameters:
isCmsPage
- the isCmsPage to set
-
getCMSPageNavigationId
public static String getCMSPageNavigationId(CMSPage cmsPage)
Produce an identifier string for a cms page to use for identifying the page in the navigation bar- Parameters:
cmsPage
-- Returns:
-
setCurrentPage
public void setCurrentPage(CMSPage cmsPage)
-
setCurrentPage
public void setCurrentPage(String currentPage)
Setter for the field
currentPage
.- Parameters:
currentPage
- aString
object.
-
setCurrentPage
public void setCurrentPage(String currentPage, boolean resetBreadcrubs, boolean resetCurrentDocument)
Setter for the field
currentPage
.- Parameters:
currentPage
- aString
object.resetBreadcrubs
- a boolean.resetCurrentDocument
- a boolean.
-
setCurrentPage
public void setCurrentPage(String currentPage, boolean resetBreadcrubs, boolean resetCurrentDocument, boolean setCmsPage)
Setter for the field
currentPage
.- Parameters:
currentPage
- aString
object.resetBreadcrubs
- a boolean.resetCurrentDocument
- a boolean.setCmsPage
- a boolean.
-
setCurrentBreadcrumbPage
public void setCurrentBreadcrumbPage(String pageName, String pageWeight, String pageURL)
setCurrentBreadcrumbPage.
-
getPreferredView
public String getPreferredView()
Returns the manually selected view type (will be used for search result browsing, if set).- Returns:
- a
String
object.
-
setPreferredView
public void setPreferredView(String preferredView)
Sets the manually selected view type (will be used for search result browsing, if set).- Parameters:
preferredView
- aString
object.
-
setCurrentPageIndex
public void setCurrentPageIndex()
setCurrentPageIndex.
-
setCurrentPageSearch
public void setCurrentPageSearch()
setCurrentPageSearch.
-
setCurrentPageBrowse
public void setCurrentPageBrowse()
setCurrentPageBrowse.
-
setCurrentPageBrowse
public void setCurrentPageBrowse(CollectionView collection)
setCurrentPageBrowse.
- Parameters:
collection
- aCollectionView
object.
-
setCurrentPageTags
public void setCurrentPageTags()
setCurrentPageTags.
-
setCurrentPageStatistics
public void setCurrentPageStatistics()
setCurrentPageStatistics.
-
setCrowdsourcingAnnotationPage
public void setCrowdsourcingAnnotationPage(Campaign campaign, String pi, CrowdsourcingStatus status)
Set the current page to a crowdsourcing annotation page with the given campaign as parent and the given pi as current identifier
-
setCurrentPageUser
public void setCurrentPageUser()
setCurrentPageUser.
-
setCurrentPageAdmin
public void setCurrentPageAdmin(String pageName)
setCurrentPageAdmin.
- Parameters:
pageName
- aString
object.
-
createAdminBreadcrumbs
protected List<LabeledLink> createAdminBreadcrumbs(PageType pageType, List<List<String>> labels)
-
setCurrentPageAdmin
public void setCurrentPageAdmin()
setCurrentPageAdmin.
-
setCurrentPageSitelinks
public void setCurrentPageSitelinks()
setCurrentPageSitelinks.
-
setCurrentPageTimeMatrix
public void setCurrentPageTimeMatrix()
setCurrentPageTimeMatrix.
-
setCurrentPageSearchTermList
public void setCurrentPageSearchTermList()
setCurrentPageSearchTermList.
-
resetCurrentPage
public void resetCurrentPage()
resetCurrentPage.
-
getCurrentView
public String getCurrentView()
getCurrentView.
- Returns:
- the currentView
-
setCurrentView
public void setCurrentView(String currentView) throws DAOException
Sets the currently selected content view name.- Parameters:
currentView
- aString
object.- Throws:
DAOException
-
getLocaleString
public String getLocaleString()
Returns the language code of the current
locale
in the ISO 639-1 (two-character) format.- Returns:
- a
String
object.
-
getSupportedLocales
public Iterator<Locale> getSupportedLocales()
getSupportedLocales.
- Returns:
- a
Iterator
object.
-
getSupportedLanguages
public List<String> getSupportedLanguages()
Returns ISO 639-1 language codes of available JSF locales.- Returns:
- a
List
object.
-
getSupportedLanguagesAsJson
public String getSupportedLanguagesAsJson()
Returns ISO 639-1 language codes of available JSF locales as json array.- Returns:
- a String to be interpreted as json array of strings.
-
setLocaleString
public void setLocaleString(String inLocale)
setLocaleString.
- Parameters:
inLocale
- aString
object.
-
getDatePatternjQueryDatePicker
public String getDatePatternjQueryDatePicker()
getDatePatternjQueryDatePicker.
- Returns:
- a
String
object.
-
getDateTimePattern
public String getDateTimePattern()
- Returns:
-
reload
public void reload()
reload.
-
getRequestPath
public String getRequestPath(javax.faces.context.ExternalContext externalContext)
getRequestPath.
- Parameters:
externalContext
- aExternalContext
object.- Returns:
- the complete Request Path, eg http://hostname.de/viewer/pathxyz/pathxyz/
-
getRequestPath
public static String getRequestPath(javax.servlet.http.HttpServletRequest request, String prettyFacesURI)
getRequestPath.
-
getFullRequestUrl
public static String getFullRequestUrl(javax.servlet.http.HttpServletRequest request, String prettyFacesURI)
getFullRequestUrl.
-
getCurrentPrettyUrl
public String getCurrentPrettyUrl()
Returns the current PrettyURL.- Returns:
- a
String
object.
-
getSubThemeDiscriminatorValue
public String getSubThemeDiscriminatorValue() throws IndexUnreachableException
Returns the value of the configured sub-theme discriminator field. The value can be set viasetSubThemeDiscriminatorValue(java.lang.String)
(e.g. via PrettyFacces). If a record is currently loaded and has a dicriminatorField:discriminatorValue pair, the currently set value is replaced with that from the record.- Returns:
- a
String
object. - Throws:
IndexUnreachableException
- if any.
-
determineCurrentSubThemeDiscriminatorValue
public String determineCurrentSubThemeDiscriminatorValue()
Get the subthemeDiscriminator value either from a property of the currently loaded CMS page or the currently loaded document in the activeDocumentbean if the current page is a docmentPage.- Returns:
- the subtheme name determined from current cmsPage or current document. If
Configuration.getSubthemeDiscriminatorField()
is blank, always return an empty string
-
setSubThemeDiscriminatorValue
public void setSubThemeDiscriminatorValue()
-
setSubThemeDiscriminatorValue
public void setSubThemeDiscriminatorValue(String subThemeDiscriminatorValue)
setSubThemeDiscriminatorValue.
- Parameters:
subThemeDiscriminatorValue
- aString
object.
-
resetTheme
public void resetTheme()
resetTheme.
-
getCurrentPageTypeUrl
public String getCurrentPageTypeUrl()
-
getReadingModeUrl
public String getReadingModeUrl()
Deprecated.renamed to fullscreengetReadingModeUrl.
- Returns:
- the reading mode url
-
getViewImagePathFullscreen
public String getViewImagePathFullscreen() throws IndexUnreachableException, DAOException, ViewerConfigurationException
This method checks the Solr height attribute of the current page. If this is > 0, than the current page is displayed with OpenLayers- Returns:
- the path which viewImageFullscreen.xhtml the user should see for the current page.
- Throws:
IndexUnreachableException
- if any.DAOException
- if any.ViewerConfigurationException
- if any.
-
getCalendarActiveUrl
public String getCalendarActiveUrl()
getCalendarActiveUrl.
- Returns:
- a
String
object.
-
getMetadataActiveUrl
public String getMetadataActiveUrl()
getMetadataActiveUrl.
- Returns:
- a
String
object.
-
getFulltextActiveUrl
public String getFulltextActiveUrl()
getFulltextActiveUrl.
- Returns:
- a
String
object.
-
getAdvancedSearchUrl
public String getAdvancedSearchUrl()
getAdvancedSearchUrl.
- Returns:
- a
String
object.
-
getSearchUrl
public String getSearchUrl(int activeSearchType)
getSearchUrl.
- Parameters:
activeSearchType
- a int.- Returns:
- a
String
object.
-
addStaticLinkToBreadcrumb
public void addStaticLinkToBreadcrumb(String linkName, int linkWeight)
Adds a link to the breadcrumbs using the current PrettyURL. Can be called from XHTML.- Parameters:
linkName
- aString
object.linkWeight
- a int.
-
addStaticLinkToBreadcrumb
public void addStaticLinkToBreadcrumb(String linkName, String url, int linkWeight)
Adds a link to the breadcrumbs using the given URL. Can be called from XHTML.
-
getLocalDate
public String getLocalDate(LocalDateTime date)
Returns the string representation of the givenDate
based on the currentlocale
.- Parameters:
date
- aLocalDateTime
object.- Returns:
- a
String
object.
-
setSelectedNewsArticle
public void setSelectedNewsArticle(String art)
setSelectedNewsArticle.
- Parameters:
art
- aString
object.
-
getSelectedNewsArticle
public String getSelectedNewsArticle()
getSelectedNewsArticle.
- Returns:
- a
String
object.
-
getLastRequestTimestamp
public String getLastRequestTimestamp()
getLastRequestTimestamp.
- Returns:
- a
String
object.
-
getSessionIPAddress
public String getSessionIPAddress()
-
getStatusMap
public Map<String,String> getStatusMap()
Getter for the field
statusMap
.- Returns:
- the statusMap
-
setStatusMap
public void setStatusMap(Map<String,String> statusMap)
Setter for the field
statusMap
.- Parameters:
statusMap
- the statusMap to set
-
getTranslationWithParams
public String getTranslationWithParams(String msgKey, String... params)
Returns the translation for the givenmsgKey
and replaces all {i} placeholders with values from the givenparams
.- Parameters:
msgKey
- Message key to translateparams
- One or more parameter values to replace the placeholders.- Returns:
- Translated, escaped key with parameter replacements
-
getTranslationWithParamsUnescaped
public String getTranslationWithParamsUnescaped(String msgKey, String... params)
Returns the translation for the givenmsgKey
and replaces all {i} placeholders with values from the givenparams
. Does not carry out character escaping- Parameters:
msgKey
- Message key to translateparams
- One or more parameter values to replace the placeholders.- Returns:
- Translated, escaped key with parameter replacements
-
getTranslation
public String getTranslation(String msgKey, String language)
Returns a simple translation for the given language (or current language, if none given).- Parameters:
msgKey
- Message key to translatelanguage
- Optional desired language- Returns:
- Translated, escaped key
-
getTranslation
public String getTranslation(String msgKey, String language, boolean escape)
Returns a simple translation for the given language (or current language, if none given).- Parameters:
msgKey
- Message key to translatelanguage
- Optional desired languageescape
- If true the return string will be Java-escaped- Returns:
- Translated key
-
isDisplayNoIndexMetaTag
public boolean isDisplayNoIndexMetaTag()
Checks whether to display a noindex meta tag on the current page.- Returns:
- true for a set of current page values; false otherwise
-
isDocumentPage
public boolean isDocumentPage()
Checks if the current page displays document information, solely based on the String getCurrentPage() The Pages for which this method should return true are set in the PageType class.- Returns:
- a boolean.
-
getSubThemeDiscriminatorQuerySuffix
public String getSubThemeDiscriminatorQuerySuffix() throws IndexUnreachableException
getSubThemeDiscriminatorQuerySuffix.
- Returns:
- a
String
object. - Throws:
IndexUnreachableException
- if any.
-
getCurrentPageType
public PageType getCurrentPageType()
Get thePageType
for the page name fromgetCurrentPage()
- Returns:
- a
PageType
object.
-
redirectToPreviousView
public void redirectToPreviousView() throws IOException
redirectToPreviousView.
- Throws:
IOException
- if any.
-
getCurrentViewPrettyUrl
public String getCurrentViewPrettyUrl()
-
getExitUrl
public String getExitUrl()
-
redirectToCurrentView
public void redirectToCurrentView() throws IOException
redirectToCurrentView.
- Throws:
IOException
- if any.
-
isSubthemeSelected
public boolean isSubthemeSelected() throws IndexUnreachableException
isSubthemeSelected.
- Returns:
- true exactly if
getSubThemeDiscriminatorValue()
is not blank - Throws:
IndexUnreachableException
- if any.
-
getResource
public String getResource(String path)
Get the path to a viewer resource relative to the root path ("/viewer") If it exists, the resource from the theme, otherwise from the core If the resource exists neither in theme nor core. An Exception will be thrown- Parameters:
path
- The resource path relative to the first "resources" directory- Returns:
-
isRtl
public boolean isRtl()
-
isRtl
public boolean isRtl(String locale)
-
isRtl
public boolean isRtl(Locale locale)
-
isSolrIndexOnline
public boolean isSolrIndexOnline()
-
addSearchUrlWithCurrentSortStringToHistory
public void addSearchUrlWithCurrentSortStringToHistory()
If the current page url is a search page url without or with empty search parameters replaceViewHistory.getCurrentView(javax.servlet.ServletRequest)
with a search url containing the default sort string. This is done so the view history contains the current random seed for random search list sorting and returning to the page yields the same ordering as the original call. Must be called in the pretty mappings for all search urls which deliver randomly sorted hitlists
-
getCurrentTime
public String getCurrentTime()
-
-