Package io.goobi.viewer.managedbeans
Class CmsBean
java.lang.Object
io.goobi.viewer.managedbeans.CmsBean
- All Implemented Interfaces:
Serializable
CMS functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCmsBean()Persists checked menu item access permission for the duration of the user session.CmsBean(CMSTemplateManager templateManager, NavigationHelper navigationHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRelatedWork.Action method called when a CMS page is opened.cmsContextAction(boolean resetSearch) Action method called when a CMS page is opened.voidSet the given (wrapped)CMSMediaItemto Media holder set bysetSelectedMediaHolder(io.goobi.viewer.model.cms.media.CMSMediaHolder).voidfillSelectedMediaHolder(CategorizableTranslatedSelectable<CMSMediaItem> mediaItem, boolean saveMedia) Set the given (wrapped)CMSMediaItemto Media holder set bysetSelectedMediaHolder(io.goobi.viewer.model.cms.media.CMSMediaHolder)Additionally save the given media item if the parameter saveMedia is set to true.voidfillSelectedMediaHolder(CategorizableTranslatedSelectable<CMSMediaItem> mediaItem, int index, boolean saveMedia) getAllCategories.getAllCMSPages.getAllLocales.getAllowedCategories(User user) Returns a filtered category list for the given user, unless the user is a superuser.Returns a filtered subtheme discriminator value list for the given user, unless the user is a superuser.getAllowedTemplates(User user) Returns a filtered page template list for the given user, unless the user is a superuser.getAvailableCmsPages.getAvailableParentPages.For CMS pages withCMSPage.getWrapperElementClass()return 'body_' followed by the wrapperElementClass.Returns metadataList types from the configuration where the type value stars with "cms_".getCMSPage(Long pageId) getCMSPage.Getter for jsf.getCMSPagesWithSearch.getCssClass.static LocalegetCurrentLocale.Getter for the fieldcurrentPage.getCurrentPageId.Getter for the fieldcurrentWorkPi.getDefaultLocale.getDisplayedPages.Returns the sidebar view name appropriate for the current CMS page context, or null if no override is needed.protected FacesContextgetFacesContext.getFieldNames(org.apache.solr.common.SolrDocument solrDoc) getFieldNames.getGroupedQueryResults(List<SearchHit> hits, String groupingField) getLastEditedTimestamp(long pageId) getLastEditedTimestamp.Getter for the fieldlazyModelPages.getLuceneFields.getLuceneFields(boolean includeUntokenized) getLuceneFields.getLuceneFields(boolean includeUntokenized, boolean excludeTokenizedMetadataFields) getLuceneFields.getMostRecentlyEditedPages(int number) Returns the most recently edited CMS pages from the lazy model, which should include all restrictions placed upon the current user.getNavigationMenuItems.getPage.getPage.getPageUrl(Long pageId) Returns the URL to the CMS template of the given page.getPageUrl(Long pageId, boolean pretty) getPageUrl.getPossibleGroupFields.getPossibleSortFields.longCalculates the number of pages needed for the paginator.getQueryResults.getRelatedPages.getRelatedPages(String pi, CMSCategory category) getRelatedPages.Returns the sidebar view name for the work associated with the current CMS page.getRepresentativeImageForQuery.getRepresentativeImageForQuery(CMSPage page, int width, int height) getRepresentativeImageForQuery.getRepresentativeImageForQuery.getRepresentativeImageForQuery(CMSRecordListContent item, int width, int height) getRepresentativeImageForQuery.Getter for the fieldselectedMediaItem.Getter for the fieldselectedMediaLocale.getStaticPage(String pageName) getStaticPage.Getter for the fieldstaticPages.getSubthemeDiscriminatorValues.getTemplates.getTemplates(boolean enabled) getTest()getUrl.getUrl.getValidCMSPages.booleanhasSearchResults.booleanhasSelectedMediaHolder.voidinit()init.booleanReturns true if the current request is a CMS page in a work context, i.e. if the URL-injectedcurrentWorkPimatches therelatedPIof the current CMS page.booleanisHasRelatedPages.booleanisLinkedFromNavBar(CMSPage page) isLinkedFromNavBar.booleanisLinkedToStaticPage(CMSPage page) booleanisMappedToStaticPage(CMSPage page) booleanisRelatedWorkLoaded.booleanisSubthemeRequired(User user) isSubthemeRequired.booleanisUserHasAccess(CMSPage page) voidloadTemplates.booleanmayEdit.voidresetCurrentWorkPi.voidResets visible navigation menu items (e.g. when logging in/out).voidSaves static page status for all cms pages.Persists the enabled/disabled status of all CMS tempaltes in the DB.voidsetCurrentPage(CMSPage currentPage) Setter for the fieldcurrentPage.voidPage ID setter for PrettyFaces.voidsetCurrentWorkPi(String currentWorkPi) Setter for the fieldcurrentWorkPi.voidsetNavigationHelper(NavigationHelper navigationHelper) Required setter for ManagedProperty injection.voidsetSearchBean(SearchBean searchBean) Required setter for ManagedProperty injection.voidSets the searchType in SearchBean to the type assciated with the current static view (e.g. if the current cms page replaces the static page 'advancedSearch' the search type is set to 'advanced') For the normal search pages this is done in the pretty mapping which isn't used if redirecting to cms pagevoidSet aCMSMediaHolderin theCmsMediaBeanwhich may receive aCMSMediaItemselected in the selectMedia dialog.voidsetSelectedMediaItem(CMSMediaItem selectedMediaItem) Setter for the fieldselectedMediaItem.voidsetSelectedMediaLocale(Locale selectedMediaLocale) Setter for the fieldselectedMediaLocale.void
-
Field Details
-
CMSPAGES_FILTER
- See Also:
-
-
Constructor Details
-
CmsBean
public CmsBean()Persists checked menu item access permission for the duration of the user session.
-
-
Method Details
-
init
init. -
getMostRecentlyEditedPages
Returns the most recently edited CMS pages from the lazy model, which should include all restrictions placed upon the current user.- Parameters:
number- Number of requested rows- Returns:
- List
-
setSearchBean
Required setter for ManagedProperty injection.- Parameters:
searchBean- the SearchBean instance to inject for testing
-
getAllLocales
getAllLocales.- Returns:
- a list of all locales supported by the JSF application, with the default locale first
-
getDefaultLocale
getDefaultLocale.- Returns:
- the default application locale
-
getCurrentLocale
getCurrentLocale.- Returns:
- the currently selected locale from the JSF view root, or the default locale if unavailable
-
loadTemplates
public void loadTemplates()loadTemplates. -
getTemplates
getTemplates.- Returns:
- all existing templates
- Throws:
DAOException
-
getTemplates
- Parameters:
enabled- Published/enabled status to filter by- Returns:
- All templates with the given enabled status
- Throws:
DAOException
-
getAllowedTemplates
Returns a filtered page template list for the given user, unless the user is a superuser. Other CMS admins get a list matching the template ID list attached to their CMS license.- Parameters:
user- user whose allowed templates are filtered- Returns:
- List of CMS templates whose IDs are among allowed template IDs
- Throws:
DAOException
-
saveTemplatesAction
Persists the enabled/disabled status of all CMS tempaltes in the DB.- Returns:
- Navigation outcome
- Throws:
DAOException
-
getDisplayedPages
getDisplayedPages.- Returns:
- a list of CMS pages for the current page in the paginated CMS page list
-
getLazyModelPages
Getter for the fieldlazyModelPages.- Returns:
- the TableDataProvider for the CMS page list
-
getPageUrl
Returns the URL to the CMS template of the given page. This URL will only resolve if the page has been published or the current user is CMS admin.- Parameters:
pageId- database ID of the CMS page- Returns:
- the absolute URL to the CMS page with the given database ID
-
getPageUrl
getPageUrl.- Parameters:
pageId- database ID of the CMS pagepretty- true to generate pretty URL, false for plain servlet URL- Returns:
- the absolute URL to the CMS page with the given database ID, in pretty or plain format
-
getUrl
getUrl.- Parameters:
page- CMS page whose URL is resolved- Returns:
- the absolute pretty URL to the given CMS page
-
getUrl
getUrl.- Parameters:
page- CMS page whose URL is resolvedpretty- true to generate pretty URL, false for plain servlet URL- Returns:
- the absolute URL to the given CMS page, in pretty or plain format
-
getAllCMSPages
getAllCMSPages.- Returns:
- a list of all CMS pages in the database
- Throws:
DAOException- if any.
-
getCMSPage
getCMSPage.- Parameters:
pageId- database ID of the CMS page- Returns:
- the CMS page with the given ID, or null if not found
- Throws:
DAOException- if any.
-
isRelatedWorkLoaded
isRelatedWorkLoaded.- Returns:
- true if an
ActiveDocumentBeanis registered and the theCMSPage.getRelatedPI()ofgetCurrentPage()is loaded - Throws:
IndexUnreachableException- if any.
-
isCmsWorkPageContext
public boolean isCmsWorkPageContext()Returns true if the current request is a CMS page in a work context, i.e. if the URL-injectedcurrentWorkPimatches therelatedPIof the current CMS page.This method is safe to call from JSTL
c:ifat view-build time because it does not throw checked exceptions. It avoids the session-stale-PI problem of checkingcurrentWorkPialone by also verifying the current page'srelatedPI.- Returns:
- true if
currentWorkPiis non-blank and equals the current page's relatedPI
-
getRelatedWorkDefaultView
Returns the sidebar view name for the work associated with the current CMS page. The returned value matches the view names used insidebar.views.viewconfiguration (e.g. "object", "metadata", "toc"), not the Java enum names. Falls back toNavigationHelper.getCurrentView()if no related work is loaded.- Returns:
- the sidebar view name for the work's default page (e.g. "object", "metadata", "toc"), or the current navigation view as fallback
- Throws:
IndexUnreachableException- if the Solr index is unreachable when checking if the related work is loaded
-
getEffectiveSidebarView
Returns the sidebar view name appropriate for the current CMS page context, or null if no override is needed. Called fromrecord_sidebar.xhtmlto determine which sidebar widgets to render without going through JSF composite attributes (which cause ContextualCompositeValueExpression infinite recursion in ui:repeat). When null is returned, the caller falls back tonavigationHelper.currentView.- Returns:
- sidebar view name such as "object", "metadata", "toc", or null if not on a CMS page with a loaded work
-
getCurrentCmsPageIfLoaded
- Returns:
- the
getCurrentPage()if one is set, or an empty Optional if the current page is not a cmsPage (i.e. ifNavigationHelper.isCmsPage()== false)
-
getPage
getPage.- Parameters:
page- CMS page to return, or null to fall back to current page- Returns:
- the given page, or the current page if null is passed
-
getPage
getPage.- Parameters:
pageId- database ID of the CMS page to look up- Returns:
- the CMS page with the given ID, or null if the ID is null
- Throws:
DAOException- if any.
-
getCurrentPage
Getter for the fieldcurrentPage.- Returns:
- the currently active CMS page, or an empty CMSPage if none is set
-
setCurrentPage
Setter for the fieldcurrentPage.- Parameters:
currentPage- CMS page to set as the currently active page
-
getCurrentPageId
getCurrentPageId.- Returns:
- the database ID of the currently active CMS page as a string, or "0" if none is set
-
setCurrentPageId
public void setCurrentPageId(String id) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException Page ID setter for PrettyFaces.- Parameters:
id- string representation of the CMS page database ID- Throws:
DAOException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException- if any.
-
checkRelatedWork
public void checkRelatedWork() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundExceptioncheckRelatedWork.- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException- if any.
-
getAllCategories
getAllCategories.- Returns:
- the return value of
IDAO.getAllCategories() - Throws:
DAOException- if any.
-
getSelectedMediaItem
Getter for the fieldselectedMediaItem.- Returns:
- the currently selected CMS media item
-
setSelectedMediaItem
Setter for the fieldselectedMediaItem.- Parameters:
selectedMediaItem- media item to mark as selected
-
getSelectedMediaLocale
Getter for the fieldselectedMediaLocale.- Returns:
- the locale currently selected for the media item, defaulting to the application default locale
-
setSelectedMediaLocale
Setter for the fieldselectedMediaLocale.- Parameters:
selectedMediaLocale- locale used for the selected media item
-
cmsContextAction
public String cmsContextAction() throws IndexUnreachableException, DAOException, ViewerConfigurationException, RecordNotFoundException, RecordDeletedExceptionAction method called when a CMS page is opened. The exact action depends on the page and content item type.- Returns:
- the navigation outcome after processing the CMS page context action
- Throws:
PresentationException- if any.IndexUnreachableException- if any.DAOException- if any.ViewerConfigurationException- if any.IndexUnreachableExceptionDAOExceptionViewerConfigurationExceptionRecordDeletedExceptionRecordNotFoundExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
cmsContextAction
public String cmsContextAction(boolean resetSearch) throws IndexUnreachableException, DAOException, ViewerConfigurationException, RecordNotFoundException, RecordDeletedException Action method called when a CMS page is opened. The exact action depends on the page and content item type.- Parameters:
resetSearch- If true, the search parameters in SearchBean will be reset- Returns:
- the navigation outcome after processing the CMS page context action
- Throws:
PresentationException- if any.IndexUnreachableException- if any.DAOException- if any.ViewerConfigurationException- if any.IndexUnreachableExceptionDAOExceptionViewerConfigurationExceptionRecordDeletedExceptionRecordNotFoundExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getQueryResults
public List<SearchHit> getQueryResults() throws IndexUnreachableException, PresentationException, DAOExceptiongetQueryResults.- Returns:
- a list of search hit objects from the current search, or an empty list if no search is active
- Throws:
IndexUnreachableException- if any.PresentationException- if any.DAOException- if any.
-
getGroupedQueryResults
public List<Map.Entry<String,List<SearchHit>>> getGroupedQueryResults(List<SearchHit> hits, String groupingField) - Parameters:
hits- List of search hits to groupgroupingField- Solr field name to group hits by- Returns:
- List<Entry<String, List<SearchHit>>>
-
hasSearchResults
public boolean hasSearchResults()hasSearchResults.- Returns:
- true if the current search returned at least one hit, false otherwise
-
getQueryResultCount
Calculates the number of pages needed for the paginator. The value is taken directly fromSearch.getLastPage(int)- Returns:
- The number of pages to display in the paginator
- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
getFieldNames
getFieldNames.- Parameters:
solrDoc- Solr document whose field names are retrieved- Returns:
- a list of all field names present in the given Solr document
-
getLuceneFields
getLuceneFields.- Returns:
- a list of all Solr field names excluding internal, facet, and norm fields
-
getLuceneFields
getLuceneFields.- Parameters:
includeUntokenized- true to include fields ending in _UNTOKENIZED- Returns:
- a list of Solr field names optionally including untokenized variants
-
getLuceneFields
public List<String> getLuceneFields(boolean includeUntokenized, boolean excludeTokenizedMetadataFields) getLuceneFields.- Parameters:
includeUntokenized- true to include fields ending in _UNTOKENIZEDexcludeTokenizedMetadataFields- true to exclude tokenized MD_ fields- Returns:
- a list of Solr field names filtered according to the given options, sorted alphabetically
-
getStaticPages
Getter for the fieldstaticPages.- Returns:
- a list of all CMS static pages mapping viewer page types to CMS pages
- Throws:
DAOException- if any.
-
getStaticPage
getStaticPage.- Parameters:
pageName- name of the static page type to look up- Returns:
- the CMSStaticPage matching the given name, or null if not found
- Throws:
DAOException- if any.
-
isMappedToStaticPage
- Parameters:
page- CMS page to check for a static page mapping- Returns:
- true if the given CMS page is mapped to any static page; otherwise
- Throws:
DAOException
-
getAvailableParentPages
getAvailableParentPages.- Parameters:
page- CMS page to exclude from the result list- Returns:
- A list of all cmsPages except the given one
- Throws:
DAOException- if any.
-
getAvailableCmsPages
getAvailableCmsPages.- Parameters:
page- static page whose existing mapping is excluded from filtering- Returns:
- A list of all cmsPages not yet registered to a static page
- Throws:
DAOException- if any.
-
getCMSPagesWithSearch
getCMSPagesWithSearch.- Returns:
- a list of all valid cms pages which contain a "search" item
- Throws:
DAOException- if any.
-
saveStaticPages
Saves static page status for all cms pages.- Throws:
DAOException- if any.
-
isLinkedToStaticPage
- Throws:
DAOException
-
getValidCMSPages
getValidCMSPages.- Returns:
- all cmsPages which are valid and have a menu title
- Throws:
DAOException- if any.
-
getFacesContext
getFacesContext.- Returns:
- the current FacesContext instance
-
getSubthemeDiscriminatorValues
getSubthemeDiscriminatorValues.- Returns:
- a list of all values found in the configured subtheme discriminator Solr field
- Throws:
PresentationException- if any.
-
getAllowedSubthemeDiscriminatorValues
public List<String> getAllowedSubthemeDiscriminatorValues(User user) throws PresentationException, IndexUnreachableException Returns a filtered subtheme discriminator value list for the given user, unless the user is a superuser. Other CMS admins get a list matching values list attached to their CMS license.- Parameters:
user- user whose allowed subtheme values are filtered- Returns:
- List of CMS templates whose IDs are among allowed template IDs
- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
isSubthemeRequired
public boolean isSubthemeRequired(User user) throws PresentationException, IndexUnreachableException isSubthemeRequired.- Parameters:
user- user to check for subtheme restrictions- Returns:
- true if user is limited to a subset of all available subtheme discriminator values; false otherwise
- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
getAllowedCategories
Returns a filtered category list for the given user, unless the user is a superuser. Other CMS admins get a list matching values list attached to their CMS license.- Parameters:
user- user whose allowed categories are filtered- Returns:
- a list of CMS categories the given user is permitted to access
- Throws:
DAOException- if any.
-
setSearchType
public void setSearchType()Sets the searchType in SearchBean to the type assciated with the current static view (e.g. if the current cms page replaces the static page 'advancedSearch' the search type is set to 'advanced') For the normal search pages this is done in the pretty mapping which isn't used if redirecting to cms page -
isHasRelatedPages
isHasRelatedPages.- Parameters:
pi- persistent identifier of the record to check- Returns:
- true if there are CMS pages related to the given persistent identifier, false otherwise
- Throws:
DAOException- if any.
-
getRelatedPages
getRelatedPages.- Parameters:
pi- persistent identifier of the record to look up- Returns:
- a list of CMS pages associated with the given record identifier
- Throws:
DAOException- if any.
-
getRelatedPages
getRelatedPages.- Parameters:
pi- persistent identifier of the record to look upcategory- category to filter CMS pages by- Returns:
- a list of published CMS pages associated with the given record identifier and category
- Throws:
DAOException- if any.
-
getRepresentativeImageForQuery
public String getRepresentativeImageForQuery(CMSPage page) throws PresentationException, IndexUnreachableException, ViewerConfigurationException getRepresentativeImageForQuery.- Parameters:
page- CMS page whose record list query selects the representative image- Returns:
- the thumbnail URL of the first record matching the CMS page's Solr query, at the configured size
- Throws:
PresentationException- if any.IndexUnreachableException- if any.ViewerConfigurationException- if any.
-
getRepresentativeImageForQuery
public String getRepresentativeImageForQuery(CMSRecordListContent item) throws PresentationException, IndexUnreachableException, ViewerConfigurationException getRepresentativeImageForQuery.- Parameters:
item- record list content item whose Solr query selects the representative image- Returns:
- the thumbnail URL of the first record matching the content item's Solr query, at the configured size
- Throws:
PresentationException- if any.IndexUnreachableException- if any.ViewerConfigurationException- if any.
-
getRepresentativeImageForQuery
public String getRepresentativeImageForQuery(CMSPage page, int width, int height) throws PresentationException, IndexUnreachableException, ViewerConfigurationException getRepresentativeImageForQuery.- Parameters:
page- CMS page whose record list query selects the representative imagewidth- desired thumbnail width in pixelsheight- desired thumbnail height in pixels- Returns:
- the thumbnail URL of the first record matching the CMS page's Solr query at the specified dimensions
- Throws:
PresentationException- if any.IndexUnreachableException- if any.ViewerConfigurationException- if any.
-
getRepresentativeImageForQuery
public String getRepresentativeImageForQuery(CMSRecordListContent item, int width, int height) throws PresentationException, IndexUnreachableException, ViewerConfigurationException getRepresentativeImageForQuery.- Parameters:
item- record list content item whose Solr query selects the representative imagewidth- desired thumbnail width in pixelsheight- desired thumbnail height in pixels- Returns:
- the thumbnail URL of the first record matching the content item's Solr query at the specified dimensions
- Throws:
PresentationException- if any.IndexUnreachableException- if any.ViewerConfigurationException- if any.
-
getPossibleSortFields
public List<String> getPossibleSortFields() throws org.apache.solr.client.solrj.SolrServerException, IOExceptiongetPossibleSortFields.- Returns:
- a list of all available sort field names including relevance, random, and all SORT_ fields from the Solr schema
- Throws:
org.apache.solr.client.solrj.SolrServerException- if any.IOException- if any.
-
getPossibleGroupFields
getPossibleGroupFields.- Returns:
- a list of all Solr field names suitable for grouping search results, sorted alphabetically
- Throws:
org.apache.solr.client.solrj.SolrServerException- if any.IOException- if any.DAOExceptionIndexUnreachableException
-
getPossibleResultGroupNames
- Returns:
- Configured search result group names; empty list if disabled
-
getCmsMetadataListTypes
Returns metadataList types from the configuration where the type value stars with "cms_".- Returns:
- List of configured metadata lists where the type starts with "cms_"
-
getCssClass
getCssClass.- Returns:
- The
CMSPage.getWrapperElementClass()of the current CMSPage. If no current page is set orNavigationHelper.isCmsPage()returns false, an empty String is returned
-
getLastEditedTimestamp
getLastEditedTimestamp.- Parameters:
pageId- database ID of the CMS page- Returns:
- the last-modified timestamp in milliseconds for the given CMS page, or null if unavailable
- Throws:
DAOException- if any.
-
getCurrentWorkPi
Getter for the fieldcurrentWorkPi.- Returns:
- the persistent identifier of the record currently associated with the CMS page
-
setCurrentWorkPi
Setter for the fieldcurrentWorkPi.- Parameters:
currentWorkPi- persistent identifier of the record currently associated with the CMS page
-
resetCurrentWorkPi
public void resetCurrentWorkPi()resetCurrentWorkPi. -
setSelectedMediaHolder
Set aCMSMediaHolderin theCmsMediaBeanwhich may receive aCMSMediaItemselected in the selectMedia dialog.- Parameters:
item- media holder that will receive the selected media item
-
getSelectedMediaHolder
-
fillSelectedMediaHolder
Set the given (wrapped)CMSMediaItemto Media holder set bysetSelectedMediaHolder(io.goobi.viewer.model.cms.media.CMSMediaHolder).- Parameters:
mediaItem- wrapped media item to place into the selected holder
-
fillSelectedMediaHolder
public void fillSelectedMediaHolder(CategorizableTranslatedSelectable<CMSMediaItem> mediaItem, boolean saveMedia) Set the given (wrapped)CMSMediaItemto Media holder set bysetSelectedMediaHolder(io.goobi.viewer.model.cms.media.CMSMediaHolder)Additionally save the given media item if the parameter saveMedia is set to true.- Parameters:
mediaItem- wrapped media item to place into the selected holdersaveMedia- true to persist the media item to the database
-
fillSelectedMediaHolder
public void fillSelectedMediaHolder(CategorizableTranslatedSelectable<CMSMediaItem> mediaItem, int index, boolean saveMedia) - Parameters:
mediaItem- Media item to place into the selected media holderindex- Media item index for instances of CMSMediaMultiHoldersaveMedia- If true, persist the media item to the database
-
hasSelectedMediaHolder
public boolean hasSelectedMediaHolder()hasSelectedMediaHolder.- Returns:
- true if a mediaHolder is present
-
mayEdit
public boolean mayEdit(CMSPage page) throws DAOException, PresentationException, IndexUnreachableException mayEdit.- Parameters:
page- CMS page to check edit permissions for- Returns:
- true if the currently logged-in user has privileges to edit the given CMS page, false otherwise
- Throws:
DAOException- if any.PresentationException- if any.IndexUnreachableException- if any.
-
getCmsBodyClass
For CMS pages withCMSPage.getWrapperElementClass()return 'body_' followed by the wrapperElementClass. Otherwise return an empty String- Returns:
- Configured wrapper element class of the current page; otherwise empty string
-
getCmsPagesFilter
Getter for jsf.- Returns:
- CMSPAGES_FILTER
-
getSortingModes
-
getCurrentPageUrl
-
getTemplateManager
-
getPossibleHitListViews
-
getTest
-
setTest
-
isUserHasAccess
-