Package org.dspace.app.statistics
Class HTMLReport
- java.lang.Object
-
- org.dspace.app.statistics.HTMLReport
-
-
Constructor Summary
Constructors Constructor Description HTMLReport()constructor for HTML reporting
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlock(Statistics stat)add a statistics block to the report to the class registerStringblockExplanation(String explanation)output the explanation of the report block in HTML formatStringdateRange()output the date range in the relevant format.StringfloorInfo(int floor)output the floor information in HTML formatStringfooter()output the final footers for this fileStringheader()output any top headers that this page needsStringheader(String title)output any top headers that this page needs, and include a title argument (Title support currently not implemented)StringmainTitle()output the title in the relevant format.Stringnavigation()build the internal navigation for the reportStringrender()return a string containing the report as generated by this classStringsectionHeader(String title)output the section header in HTML formatvoidsetEndDate(Date end)set the end date for the reportvoidsetMainTitle(String name, String serverName)set the main title for the reportvoidsetOutput(String newOutput)voidsetStartDate(Date start)set the starting date for the reportStringstatBlock(Statistics content)output the report block based on the passed mapping, where the mapping should be "name of report element" to "value", where both sides of the mapping should be Strings.StringtopLink()provide a link back to the top of the page
-
-
-
Method Detail
-
setOutput
public void setOutput(String newOutput)
-
render
public String render()
return a string containing the report as generated by this class
-
topLink
public String topLink()
provide a link back to the top of the page- Returns:
- a string containing the link text HTML formatted
-
navigation
public String navigation()
build the internal navigation for the report- Returns:
- an HTML string providing internal page navigation
-
addBlock
public void addBlock(Statistics stat)
add a statistics block to the report to the class register
-
setStartDate
public void setStartDate(Date start)
set the starting date for the report- Specified by:
setStartDatein interfaceReport- Parameters:
start- the start date for the report
-
setEndDate
public void setEndDate(Date end)
set the end date for the report- Specified by:
setEndDatein interfaceReport- Parameters:
end- the end date for the report
-
dateRange
public String dateRange()
output the date range in the relevant format. This requires that the date ranges have been set using setStartDate() and setEndDate()
-
mainTitle
public String mainTitle()
output the title in the relevant format. This requires that the title has been set with setMainTitle()
-
setMainTitle
public void setMainTitle(String name, String serverName)
set the main title for the report- Specified by:
setMainTitlein interfaceReport- Parameters:
name- the name of the serviceserverName- the name of the server
-
header
public String header()
output any top headers that this page needs
-
header
public String header(String title)
output any top headers that this page needs, and include a title argument (Title support currently not implemented)
-
sectionHeader
public String sectionHeader(String title)
output the section header in HTML format- Specified by:
sectionHeaderin interfaceReport- Parameters:
title- the title of the section- Returns:
- a string containing the section title HTML formatted
-
statBlock
public String statBlock(Statistics content)
output the report block based on the passed mapping, where the mapping should be "name of report element" to "value", where both sides of the mapping should be Strings. This class also assumes that the reference is a linkable URL to the resource
-
floorInfo
public String floorInfo(int floor)
output the floor information in HTML format
-
blockExplanation
public String blockExplanation(String explanation)
output the explanation of the report block in HTML format- Specified by:
blockExplanationin interfaceReport- Parameters:
explanation- some text explaining the coming report block- Returns:
- a string containing an explanaton HTML formatted
-
-