Package io.goobi.viewer.managedbeans
Class StatisticsBean
java.lang.Object
io.goobi.viewer.managedbeans.StatisticsBean
- All Implemented Interfaces:
Serializable
Bean for the statistics page.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConnectorVersion.getContentServerVersion.getCoreVersion.Returns the total number of pages with OCR data.Returns the total number of imported pages.getImportedRecordsTrend
(int days, int dataPoints) getImportedRecordsTrend.getIndexerVersion.getLastUsageStatisticsCheck.Returns a list of size two arrays which each contain the name and total number of imported works of a type of work (DocStructType).getUsageStatisticsForRecord.boolean
Checks whether there are no records in the index.boolean
boolean
boolean
isUsageStatisticsActive.protected StatisticsSummary
loadSummary
(String pi)
-
Field Details
-
SEPARATOR
ConstantSEPARATOR="::"
- See Also:
-
-
Constructor Details
-
StatisticsBean
public StatisticsBean()
-
-
Method Details
-
getImportedRecordsTrend
getImportedRecordsTrend.
- Parameters:
days
- a int.dataPoints
- a int.- Returns:
- a
List
object.
-
getTopStructTypesByNumber
Returns a list of size two arrays which each contain the name and total number of imported works of a type of work (DocStructType).- Returns:
- a
List
object.
-
getImportedPages
Returns the total number of imported pages.- Returns:
- a
Long
object.
-
getImportedFullTexts
Returns the total number of pages with OCR data.- Returns:
- a
Long
object.
-
isIndexEmpty
public boolean isIndexEmpty()Checks whether there are no records in the index.- Returns:
- true if record count is 0; false otherwise.
-
getCoreVersion
getCoreVersion.
- Returns:
- goobi-viewer-core version
-
getConnectorVersion
getConnectorVersion.
- Returns:
- goobi-viewer-connector version
-
getContentServerVersion
getContentServerVersion.
- Returns:
- intrandaContentServer version
-
getIndexerVersion
getIndexerVersion.
- Returns:
- goobi-viewer-indexer version
-
getUsageStatisticsForRecord
public StatisticsSummary getUsageStatisticsForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException getUsageStatisticsForRecord.
- Parameters:
pi
- aString
object- Returns:
StatisticsSummary
- Throws:
PresentationException
IndexUnreachableException
DAOException
-
loadSummary
protected StatisticsSummary loadSummary(String pi) throws IndexUnreachableException, PresentationException, DAOException -
getLastUsageStatisticsCheck
getLastUsageStatisticsCheck.
- Returns:
- a
LocalDate
object - Throws:
IndexUnreachableException
- if any.
-
isUsageStatisticsActive
public boolean isUsageStatisticsActive()isUsageStatisticsActive.
- Returns:
- a boolean
-
isShowRecordStatisticsWidget
public boolean isShowRecordStatisticsWidget() -
isRecordStatisticWidgetCollapsible
public boolean isRecordStatisticWidgetCollapsible()
-