This page (revision-12) was last changed on 23-Apr-2022 17:05 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
12 23-Apr-2022 17:05 4 KB Harry Metske to previous
11 23-Apr-2022 17:05 4 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 4 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 4 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 3 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 694 bytes Harry Metske to previous | to last incoming and outgoing wiki links added
1 23-Apr-2022 17:05 630 bytes Harry Metske to last

Page References

Incoming links Outgoing links
WikiPageStats...nobody

Version management

Difference between version and

At line 27 changed 4 lines
* an interface that describes the statistics of one page (com.ecyrd.jspwiki.stats.WikiPageStat)
* a basic class that implements this interface based on the current providers
* a factory class that creates and gathers all the WikiPageStat objects (com.ecyrd.jspwiki.stats.WikiPageStatFactory) . This class should provide public methods that return a List of (populated) WikiPageStat objects. (optionally with a pattern as filter to return a subset of the pagestats)
* a class that provides the information to the end user (com.ecyrd.jspwiki.stats.WikiPageStatsPlugin) :
* a bean class that represents one Wiki Page with getters/setters for all the above fields
* an interface that describes the actions that can be performed on the statistics of a page (com.ecyrd.jspwiki.stats.WikiPageStatUtilInterface) %%small I need a better name for this %%
* a basic class that implements this interface based on the current JSPWiki provider
* a factory class that creates and gathers all the WikiPageStat objects (com.ecyrd.jspwiki.stats.WikiPageStatUtility) . This class should provide public methods that return a List of (populated) WikiPageStat objects. (optionally with a pattern as filter to return a subset of the pagestats)
* a class that provides the information to the end user (com.ecyrd.jspwiki.stats.WikiPageStatPlugin) :
At line 42 changed one line
! Interace com.ecyd.jspwiki.stats.WikiPageStat
! com.ecyd.jspwiki.stats.WikiPageStat
At line 44 changed one line
This interface describes what information can be stored and retrieved per page. For now we only deal with regular WikiPages, not attachments.
This Bean class represents all information of a Wiki page. For now we only deal with regular WikiPages, not attachments.
At line 47 added 18 lines
! com.ecyrd.jspwiki.stats.WikiPageStatUtilInterface
This interface describes all the actions that can be done with (collections of) WikiPageStat objects.
\\To mention a few :
| public List<WikiPageStat> getAllWikiPageStats();|returns a List of WikiPageStat objects, if necessary the new List is built, or a cached version is returned
| public void sortWikiPageStats(String field); | sorts the internally kept (cached) list of pages by the supplied field
| public void addWikiPageStat(WikiPageStat myNewWikiPageStat); | add a WikiPage to the collection
| public void refreshStats(); | rebuilds a complete new List of WikiPageStat objects, and of course updates te TimeStamp
| public Date getTimeStamp(); |returns a Date object representing the date/time the List of WikiPageStat objects has been created (how actual is the data)
| public int getTotalNumberOfPages()|returns the total number of pages found during the last refresh or update of the stats
| public int getAveragePageSize()|returns the average size of all pages (in bytes) found during the last refresh of the stats
| public long getTotalSize()|returns the sum of the size of all versions of all pages and their attachments, this should give you an estimate on the used disk space.
|''more to come''|-
! com.ecyrd.jspwiki.stats.WikiPageStatUtility
This class implements the above interface. It can cache the statistics in an internally kept List of WikiPageStat objects.
\\Note that the freshness of this data strongly depends on how frequently the wiki is updated.
\\It is (in the future) also possible that on every change in the wiki, the statistics are updated. Note that updating the statistics might be a heavy process if we decide to also update all the totals and averages the we cache internally.