Class BrowseBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Use this method of a certain collections needs to be expanded via URL.void
expandCollection
(int levels) Deprecated.void
expandCollection
(String collectionField, String facetField) expandCollection.void
expandCollection
(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
.int
Getter for the fieldcurrentPage
.Getter for the fieldcurrentStringFilter
.getDcCollection.getDcList.Getter for the fieldfilterQuery
.int
getLastPage.getList.getList.getNextTermUrl.getOrCreateCollection
(String field) getPrevTermUrl.long
getRecordCount
(String collectionField, String collectionName) Getter for the fieldtargetCollection
.Getter for the fieldtopVisibleCollection
.getTranslationForCollectionName
(String field, String value) void
initializeCollection
(String collectionField) void
initializeCollection
(String collectionField, String groupingField) Adds a CollectionView object for the given field to the map and populates its values.void
initializeDCCollection.boolean
isBrowsingMenuEnabled.boolean
openWorkInTargetCollection.void
populateCollection
(String field) populateCollection.void
resetAllLists.void
resetDcList.void
resetList.void
Resets 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.void
setBreadcrumbBean
(BreadcrumbBean breadcrumbBean) Required setter for ManagedProperty injectionvoid
setBrowsingMenuField
(String browsingMenuField) Setter for the fieldbrowsingMenuField
.void
setCollectionField
(String collectionField) Setter for the fieldcollectionField
.void
setCollectionToExpand
(String collectionToExpand) Setter for the fieldcollectionToExpand
.void
setCurrentPage
(int currentPage) Setter for the fieldcurrentPage
.void
setCurrentStringFilter
(String currentStringFilter) Setter for the fieldcurrentStringFilter
.void
setFilterQuery
(String filterQuery) Setter for the fieldfilterQuery
.void
setTargetCollection
(String targetCollection) Setter for the fieldtargetCollection
.void
setTopVisibleCollection
(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
- aString
object.
-
getDcList
getDcList.
- Returns:
- the dcList (Collections)
- Throws:
IndexUnreachableException
- if any.
-
getList
getList.
- Parameters:
field
- aString
object.- Returns:
- a
List
object. - Throws:
IndexUnreachableException
- if any.
-
getList
getList.
- Parameters:
field
- aString
object.depth
- a int.- Returns:
- a
List
object. - 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
- aString
object.- Throws:
IndexUnreachableException
- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getCollectionToExpand
Getter for the field
collectionToExpand
.- Returns:
- a
String
object.
-
setCollectionToExpand
Setter for the field
collectionToExpand
.- Parameters:
collectionToExpand
- aString
object.
-
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:
IndexUnreachableException
de.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:
IndexUnreachableException
de.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
- aString
object.facetField
- aString
object.- Throws:
IndexUnreachableException
- if any.de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
searchTermsAction
Action method for JSF.- Returns:
- Navigation outcome
- Throws:
PresentationException
IndexUnreachableException
-
searchTerms
public String searchTerms() throws PresentationException, IndexUnreachableException, RedirectExceptionsearchTerms.
- Returns:
- a
String
object. - 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
browsingMenuField
is 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
String
object.
-
getNextTermUrl
getNextTermUrl.
- Returns:
- a
String
object.
-
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
- aString
object.- Returns:
- List of browsing menu items
-
getConfiguredBrowsingMenuFields
- Returns:
- List of configured browsing menu fields
-
getTargetCollection
Getter for the field
targetCollection
.- Returns:
- a
String
object.
-
setTargetCollection
Setter for the field
targetCollection
.- Parameters:
targetCollection
- aString
object.
-
openWorkInTargetCollection
public String openWorkInTargetCollection() throws IndexUnreachableException, PresentationException, RecordDeletedException, DAOException, ViewerConfigurationException, RecordLimitExceededExceptionopenWorkInTargetCollection.
- Returns:
- a
String
object. - Throws:
IndexUnreachableException
- if any.PresentationException
- if any.ViewerConfigurationException
DAOException
RecordDeletedException
RecordLimitExceededException
-
getDcCollection
getDcCollection.
- Returns:
- a
CollectionView
object.
-
getCollection
getCollection.
- Parameters:
field
- aString
object.- Returns:
- a
CollectionView
object.
-
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
-