1 31 32 package org.opencms.report; 33 34 import org.opencms.i18n.CmsMessageContainer; 35 36 import java.util.List ; 37 import java.util.Locale ; 38 39 52 public interface I_CmsReport { 53 54 55 int FORMAT_DEFAULT = 0; 56 57 58 int FORMAT_ERROR = 5; 59 60 61 int FORMAT_HEADLINE = 2; 62 63 64 int FORMAT_NOTE = 3; 65 66 67 int FORMAT_OK = 4; 68 69 70 int FORMAT_WARNING = 1; 71 72 73 String REPORT_TYPE_EXTENDED = "extended"; 74 75 76 String REPORT_TYPE_SIMPLE = "simple"; 77 78 83 void addError(Object obj); 84 85 90 void addWarning(Object obj); 91 92 97 String formatRuntime(); 98 99 104 List getErrors(); 105 106 111 Locale getLocale(); 112 113 122 String getReportUpdate(); 123 124 129 long getRuntime(); 130 131 137 String getSiteRoot(); 138 139 144 List getWarnings(); 145 146 151 boolean hasError(); 152 153 158 boolean hasWarning(); 159 160 165 void print(CmsMessageContainer container); 166 167 176 void print(CmsMessageContainer container, int format); 177 178 181 void println(); 182 183 188 void println(CmsMessageContainer container); 189 190 199 void println(CmsMessageContainer container, int format); 200 201 210 void println(Throwable t); 211 212 218 void printMessageWithParam(CmsMessageContainer container, Object param); 219 220 231 void printMessageWithParam(int m, int n, CmsMessageContainer container, Object param); 232 233 247 String removeSiteRoot(String resourcename); 248 249 252 void resetRuntime(); 253 } | Popular Tags |