1 40 41 package org.dspace.app.statistics; 42 43 import org.dspace.app.statistics.Stat; 44 import org.dspace.app.statistics.Statistics; 45 46 import java.util.ArrayList ; 47 import java.util.Date ; 48 import java.util.List ; 49 50 57 abstract class Report 58 { 59 60 61 private List blocks = new ArrayList (); 62 63 64 private String pageTitle = null; 65 66 67 private String mainTitle = null; 68 69 70 private Date start = null; 71 72 73 private Date end = null; 74 75 80 abstract public String header(); 81 82 90 abstract public String header(String title); 91 92 98 abstract public String mainTitle(); 99 100 106 abstract public String dateRange(); 107 108 115 abstract public String sectionHeader(String title); 116 117 125 abstract public String statBlock(Statistics content); 126 127 134 abstract public String floorInfo(int floor); 135 136 143 abstract public String blockExplanation(String explanation); 144 145 150 abstract public String footer(); 151 152 158 abstract public void setMainTitle (String name, String serverName); 159 160 165 abstract public void addBlock(Statistics stat); 166 167 172 abstract public String render(); 173 174 179 abstract public void setStartDate(Date start); 180 181 186 abstract public void setEndDate(Date end); 187 } 188 | Popular Tags |