1 package org.tigris.scarab.util; 2 3 48 49 import java.util.Locale ; 50 import org.apache.fulcrum.localization.Localization; 51 import org.apache.turbine.Turbine; 52 53 59 public interface ScarabConstants 60 { 61 66 String SESSION_REGISTER = "scarab.newUser"; 67 68 72 String NEXT_TEMPLATE = "nextTemplate"; 73 74 78 String CANCEL_TEMPLATE = "cancelTemplate"; 79 80 84 String BACK_TEMPLATE = "backTemplate"; 85 86 90 String LAST_TEMPLATE = "lastTemplate"; 91 92 96 String TEMPLATE = "template"; 97 98 102 String ACTION = "action"; 103 104 109 String OTHER_TEMPLATE = "otherTemplate"; 110 111 115 String ID = "id"; 116 117 120 String SCARAB_REQUEST_TOOL = "scarabR"; 121 122 125 String SCARAB_LINK_TOOL = "link"; 126 127 130 String SCARAB_GLOBAL_TOOL = "scarabG"; 131 132 135 String INTAKE_TOOL = "intake"; 136 137 140 String SECURITY_TOOL = "security"; 141 142 145 String SECURITY_ADMIN_TOOL = "securityAdmin"; 146 147 150 String LOCALIZATION_TOOL = "l10n"; 151 152 156 String DEBUG = "debug"; 157 String CURRENT_MODULE = "curmodule"; 158 String CURRENT_ISSUE_TYPE = "curit"; 159 String CURRENT_ADMIN_MENU = "curadminmenu"; 160 String REPORTING_ISSUE = "rissue"; 161 String CURRENT_REPORT = "curreport"; 162 String REMOVE_CURRENT_REPORT = "remcurreport"; 163 String HISTORY_SCREEN = "oldscreen"; 164 String NEW_MODULE = "newmodule"; 165 String NEW_ISSUE_TYPE = "newissuetype"; 166 String CURRENT_QUERY = "queryString"; 167 String CURRENT_MITLIST_ID = "curmitlistid"; 168 String CURRENT_MITLISTITEM = "curmitlistitem"; 169 String USER_SELECTED_MODULE = "scarab.user.selected.module"; 170 171 String PROJECT_CHANGE_BOX = "project_change_box"; 172 173 String THREAD_QUERY_KEY = "tqk"; 174 String REMOVE_CURRENT_MITLIST_QKEY = "remcurmitl"; 175 176 182 String INSTANCE_ID = "scarab.instance.id"; 183 184 188 int MAX_WORD_RATING = 100000; 189 190 194 String ISSUE_ID_LIST = "scarab.issueIdList"; 195 196 201 String NO_PERMISSION_MESSAGE = "YouDoNotHavePermissionToAction"; 202 203 String ATTACHMENTS_REPO_KEY = "scarab.attachments.repository"; 204 205 String ARCHIVE_EMAIL_ADDRESS = "scarab.email.archive.toAddress"; 206 207 210 String DROPDOWN_LIST = "Dropdown list"; 211 212 215 String AUTO_APPROVED_ROLES = "scarab.automatic.role.approval"; 216 217 221 String TAB_KEY = "scarab.view.issue.details"; 222 223 226 String ISSUE_VIEW_ALL = "all"; 227 228 231 String INVALID_SEARCH_CHARACTERS = "\"\t(){}[]!,;:?./*-+=+&|<>\\~^"; 232 233 236 String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss z"; 237 238 241 String ISO_DATE_PATTERN = "yyyy-MM-dd"; 242 243 247 String ISO_DATETIME_PATTERN = "yyyy-MM-dd HH:mm"; 248 249 252 String DEFAULT_BUNDLE_NAME = "ScarabBundle"; 253 254 257 Locale DEFAULT_LOCALE = new Locale (Localization.getDefaultLanguage(), 258 Localization.getDefaultCountry()); 259 260 263 String DEFAULT_EMAIL_ENCODING_KEY = "scarab.email.encoding"; 264 265 Integer INTEGER_0 = new Integer (0); 266 267 int QUERY_MAX_FILTER_CRITERIA = 10; 270 int QUERY_MAX_JOIN = 31; 271 273 276 int ISSUE_MAX_VIEW = 277 Turbine.getConfiguration().getInt("scarab.issue.max.view", 25); 278 279 282 int ISSUE_MAX_ASSIGN = 283 Turbine.getConfiguration().getInt("scarab.issue.max.assign", 25); 284 285 288 int ISSUE_MAX_COPY = 289 Turbine.getConfiguration().getInt("scarab.issue.max.copy", 250); 290 291 294 int ISSUE_MAX_MOVE = 295 Turbine.getConfiguration().getInt("scarab.issue.max.move", 250); 296 297 300 int REPORT_MAX_CRITERIA = 301 Turbine.getConfiguration().getInt("scarab.report.max.criteria", 5); 302 303 304 public static final String HTTP_DOMAIN = "scarab.http.domain"; 306 public static final String HTTP_SCHEME = "scarab.http.scheme"; 307 public static final String HTTP_SCRIPT_NAME = "scarab.http.scriptname"; 308 public static final String HTTP_PORT = "scarab.http.port"; 309 310 public static int TRANSITION_OBJECT = 0; 312 public static int GLOBAL_ATTRIBUTE_OBJECT = 1; 313 public static int MODULE_ATTRIBUTE_OBJECT = 2; 314 public static int BLOCKED_MODULE_ISSUE_TYPE_OBJECT = 3; 315 } 316 | Popular Tags |