Class BrowseBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUse this method of a certain collections needs to be expanded via URL.voidexpandCollection(int levels) Deprecated.voidexpandCollection(String collectionField, String facetField) expandCollection.voidexpandCollection(String collectionField, String facetField, int levels) Deprecated.Getter for the fieldavailableStringFilters.Getter for the fieldbrowseTermHitCountList.Getter for the fieldbrowseTermList.Getter for the fieldbrowseTermListEscaped.Getter for the fieldbrowsingMenuField.getBrowsingMenuFieldForLanguage(String language) getBrowsingMenuItems(String language) Returns the list of fields configured for term browsing to be listed in term browsing widgets.getCollection(String field) getCollection.Getter for the fieldcollectionField.getCollectionHierarchy(String collectionField, String collectionValue) TODO translation from DBGetter for the fieldcollectionToExpand.intGetter for the fieldcurrentPage.Getter for the fieldcurrentStringFilter.getDcCollection.getDcList.Getter for the fieldfilterQuery.intgetLastPage.getList.getList.getNextTermUrl.getOrCreateCollection(String field) getPrevTermUrl.longgetRecordCount(String collectionField, String collectionName) Getter for the fieldtargetCollection.Getter for the fieldtopVisibleCollection.getTranslationForCollectionName(String field, String value) voidinitializeCollection(String collectionField) voidinitializeCollection(String collectionField, String groupingField) Adds a CollectionView object for the given field to the map and populates its values.voidinitializeDCCollection.booleanisBrowsingMenuEnabled.booleanopenWorkInTargetCollection.voidpopulateCollection(String field) populateCollection.voidresetAllLists.voidresetDcList.voidresetList.voidResets all lists for term browsing.searchTerms.Action method for JSF.Selects a filter string for automatic redirecting, prioritizing letters, followed by numbers and finally by the first available filter.voidsetBreadcrumbBean(BreadcrumbBean breadcrumbBean) Required setter for ManagedProperty injectionvoidsetBrowsingMenuField(String browsingMenuField) Setter for the fieldbrowsingMenuField.voidsetCollectionField(String collectionField) Setter for the fieldcollectionField.voidsetCollectionToExpand(String collectionToExpand) Setter for the fieldcollectionToExpand.voidsetCurrentPage(int currentPage) Setter for the fieldcurrentPage.voidsetCurrentStringFilter(String currentStringFilter) Setter for the fieldcurrentStringFilter.voidsetFilterQuery(String filterQuery) Setter for the fieldfilterQuery.voidsetTargetCollection(String targetCollection) Setter for the fieldtargetCollection.voidsetTopVisibleCollection(String topVisibleCollecion) Setter for the fieldtopVisibleCollection.
-
Constructor Details
-
BrowseBean
public BrowseBean()Empty constructor.
-
-
Method Details
-
setBreadcrumbBean
Required setter for ManagedProperty injection- Parameters:
breadcrumbBean- the breadcrumbBean to set
-
resetTerms
public void resetTerms()Resets all lists for term browsing. -
resetAllLists
public void resetAllLists()resetAllLists.
-
resetDcList
public void resetDcList()resetDcList.
-
resetList
resetList.
- Parameters:
field- aStringobject.
-
getDcList
getDcList.
- Returns:
- the dcList (Collections)
- Throws:
IndexUnreachableException- if any.
-
getList
getList.
- Parameters:
field- aStringobject.- Returns:
- a
Listobject. - Throws:
IndexUnreachableException- if any.
-
getList
getList.
- Parameters:
field- aStringobject.depth- a int.- Returns:
- a
Listobject. - Throws:
IndexUnreachableException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
populateCollection
public void populateCollection(String field) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException populateCollection.
- Parameters:
field- aStringobject.- Throws:
IndexUnreachableException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getCollectionToExpand
Getter for the field
collectionToExpand.- Returns:
- a
Stringobject.
-
setCollectionToExpand
Setter for the field
collectionToExpand.- Parameters:
collectionToExpand- aStringobject.
-
getTopVisibleCollection
Getter for the field
topVisibleCollection.- Returns:
- the topVisibleCollecion
-
setTopVisibleCollection
Setter for the field
topVisibleCollection.- Parameters:
topVisibleCollecion- the topVisibleCollecion to set
-
expandCollection
public void expandCollection() throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestExceptionUse this method of a certain collections needs to be expanded via URL.- Throws:
IndexUnreachableException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
expandCollection
@Deprecated(since="24.08") public void expandCollection(int levels) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException Deprecated.- Throws:
IndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
expandCollection
@Deprecated(since="24.08") public void expandCollection(String collectionField, String facetField, int levels) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException Deprecated.- Throws:
IndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
expandCollection
public void expandCollection(String collectionField, String facetField) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException expandCollection.
- Parameters:
collectionField- aStringobject.facetField- aStringobject.- Throws:
IndexUnreachableException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
searchTermsAction
Action method for JSF.- Returns:
- Navigation outcome
- Throws:
PresentationExceptionIndexUnreachableException
-
searchTerms
public String searchTerms() throws PresentationException, IndexUnreachableException, RedirectExceptionsearchTerms.
- Returns:
- a
Stringobject. - Throws:
PresentationException- if any.IndexUnreachableException- if any.RedirectException
-
selectRedirectFilter
Selects a filter string for automatic redirecting, prioritizing letters, followed by numbers and finally by the first available filter.- Returns:
- Selected filter string
-
getBrowsingMenuFieldForLanguage
- Parameters:
language- Requested language- Returns:
- browsingMenuField (modified for given language if placeholder found)
-
getBrowsingMenuField
Getter for the field
browsingMenuField.- Returns:
- the browsingMenuField
-
setBrowsingMenuField
Setter for the field
browsingMenuField.- Parameters:
browsingMenuField- the browsingMenuField to set
-
isBrowsingMenuFieldTranslated
public boolean isBrowsingMenuFieldTranslated()- Returns:
- true if
browsingMenuFieldis set and configured to be translated; false otherwise
-
getBrowseTermList
Getter for the field
browseTermList.- Returns:
- the browseTermList
-
getBrowseTermListEscaped
Getter for the field
browseTermListEscaped.- Returns:
- the browseTermListEscaped
-
getBrowseTermHitCountList
Getter for the field
browseTermHitCountList.- Returns:
- the browseTermHitCountList
-
getPrevTermUrl
getPrevTermUrl.
- Returns:
- a
Stringobject.
-
getNextTermUrl
getNextTermUrl.
- Returns:
- a
Stringobject.
-
getAvailableStringFilters
Getter for the field
availableStringFilters.- Returns:
- the availableStringFilters
-
getCurrentStringFilter
Getter for the field
currentStringFilter.- Returns:
- the currentStringFilter
-
setCurrentStringFilter
Setter for the field
currentStringFilter.- Parameters:
currentStringFilter- the currentStringFilter to set
-
getFilterQuery
Getter for the field
filterQuery.- Returns:
- the filterQuery
-
setFilterQuery
Setter for the field
filterQuery.- Parameters:
filterQuery- the filterQuery to set
-
getCurrentPage
public int getCurrentPage()Getter for the field
currentPage.- Returns:
- the currentPage
-
setCurrentPage
public void setCurrentPage(int currentPage) Setter for the field
currentPage.- Parameters:
currentPage- the currentPage to set
-
getLastPage
public int getLastPage()getLastPage.
- Returns:
- a int.
-
isBrowsingMenuEnabled
public boolean isBrowsingMenuEnabled()isBrowsingMenuEnabled.
- Returns:
- a boolean.
-
getBrowsingMenuItems
Returns the list of fields configured for term browsing to be listed in term browsing widgets.
- Parameters:
language- aStringobject.- Returns:
- List of browsing menu items
-
getConfiguredBrowsingMenuFields
- Returns:
- List of configured browsing menu fields
-
getTargetCollection
Getter for the field
targetCollection.- Returns:
- a
Stringobject.
-
setTargetCollection
Setter for the field
targetCollection.- Parameters:
targetCollection- aStringobject.
-
openWorkInTargetCollection
public String openWorkInTargetCollection() throws IndexUnreachableException, PresentationException, RecordDeletedException, DAOException, ViewerConfigurationException, RecordLimitExceededExceptionopenWorkInTargetCollection.
- Returns:
- a
Stringobject. - Throws:
IndexUnreachableException- if any.PresentationException- if any.ViewerConfigurationExceptionDAOExceptionRecordDeletedExceptionRecordLimitExceededException
-
getDcCollection
getDcCollection.
- Returns:
- a
CollectionViewobject.
-
getCollection
getCollection.
- Parameters:
field- aStringobject.- Returns:
- a
CollectionViewobject.
-
getOrCreateCollection
- Parameters:
field-- Returns:
CollectionView
-
initializeDCCollection
public void initializeDCCollection()initializeDCCollection.
-
initializeCollection
-
initializeCollection
Adds a CollectionView object for the given field to the map and populates its values. -
getCollectionField
Getter for the field
collectionField.- Returns:
- the collectionField
-
setCollectionField
Setter for the field
collectionField.- Parameters:
collectionField- the collectionField to set
-
getCollectionHierarchy
TODO translation from DB- Parameters:
collectionField-collectionValue-- Returns:
String
-
getTranslationForCollectionName
- Parameters:
field- Collection field namevalue- Collection raw name- Returns:
- Translated collection name
-
getRecordCount
-