1 package org.tigris.scarab.om; 2 3 48 import java.util.List ; 49 import java.util.Locale ; 50 import java.util.Map ; 51 import java.util.Calendar ; 52 53 import org.apache.fulcrum.security.entity.User; 54 import org.apache.torque.om.ObjectKey; 55 import org.apache.torque.TorqueException; 56 57 import org.tigris.scarab.reports.ReportBridge; 58 import org.tigris.scarab.util.ScarabException; 59 60 66 public interface ScarabUser extends User 67 { 68 public static String DELETED = "DELETED"; 69 77 void createNewUser() throws Exception ; 78 79 85 List getEditableModules() throws Exception ; 86 87 91 List getEditableModules(Module currEditModule) throws Exception ; 92 93 100 Issue getReportingIssue(String key) 101 throws Exception ; 102 103 113 String setReportingIssue(Issue issue) 114 throws ScarabException; 115 116 127 void setReportingIssue(String key, Issue issue); 128 129 136 ReportBridge getCurrentReport(String key) 137 throws Exception ; 138 139 149 String setCurrentReport(ReportBridge report) 150 throws ScarabException; 151 152 163 void setCurrentReport(String key, ReportBridge report); 164 165 166 boolean isPasswordExpired() throws Exception ; 167 168 void setPasswordExpire() throws Exception ; 169 170 void setPasswordExpire(Calendar expire) throws Exception ; 171 172 Integer getUserId(); 173 void setUserId(Integer v) throws Exception ; 174 ObjectKey getPrimaryKey(); 175 void setPrimaryKey(ObjectKey v) throws Exception ; 176 177 182 List getRModuleUserAttributes(Module module, 183 IssueType issueType) 184 throws Exception ; 185 186 189 RModuleUserAttribute getRModuleUserAttribute(Module module, 190 Attribute attribute, 191 IssueType issueType) 192 throws Exception ; 193 194 198 String getQueryKey(); 199 200 204 void setQueryKey(String key) throws Exception ; 205 206 216 boolean hasPermission(String permission, Module module); 217 218 222 boolean hasPermission(String permission, List modules); 223 224 228 List getModules() throws Exception ; 229 230 234 List getModules(boolean showDeletedModules) throws Exception ; 235 236 243 Module[] getModules(String permission) 244 throws Exception ; 245 246 253 Module[] getModules(String [] permissions) 254 throws Exception ; 255 256 264 Module[] getModules(String [] permissions, boolean showDeleted) 265 throws Exception ; 266 267 List getCopyToModules(Module currentModule) 268 throws Exception ; 269 List getCopyToModules(Module currentModule, String action) 270 throws Exception ; 271 List getCopyToModules(Module currentModule, String action, String searchString) 272 throws Exception ; 273 274 275 283 boolean hasAnyRoleIn(Module module) 284 throws Exception ; 285 286 289 String getName(); 290 291 295 void setEnterIssueRedirect(int templateCode) 296 throws Exception ; 297 298 302 int getEnterIssueRedirect() 303 throws Exception ; 304 305 308 String getHomePage() 309 throws Exception ; 310 311 314 String getHomePage(Module module) 315 throws Exception ; 316 317 320 void setHomePage(String homePage) 321 throws Exception ; 322 323 330 public String getQueryTarget(); 331 332 337 public void setSingleIssueTypeQueryTarget(IssueType type, String target); 338 339 340 List getMITLists() 341 throws TorqueException; 342 343 347 public boolean hasAnySearchableRMITs() 348 throws Exception ; 349 350 359 List getSearchableRMITs(String searchField, String searchString, 360 String sortColumn, String sortPolarity, 361 Module skipModule) 362 throws Exception ; 363 364 368 public List getUnusedRModuleIssueTypes(Module module) 369 throws Exception ; 370 371 void addRMITsToCurrentMITList(List rmits) 372 throws TorqueException; 373 374 MITList getCurrentMITList(); 375 void setCurrentMITList(MITList list); 376 void removeItemsFromCurrentMITList(String [] ids); 377 378 Object lastEnteredIssueTypeOrTemplate(); 379 void setLastEnteredIssueType(IssueType type); 380 void setLastEnteredTemplate(Issue template); 381 382 388 String getMostRecentQuery(); 389 390 393 void setMostRecentQuery(String queryString); 394 395 398 boolean hasMostRecentQuery(); 399 400 404 Object getThreadKey(); 405 406 410 void setThreadKey(Integer key); 411 412 416 Map getAssociatedUsersMap() 417 throws Exception ; 418 419 423 void setAssociatedUsersMap(Map associatedUsers) 424 throws Exception ; 425 426 430 Map getSelectedUsersMap() 431 throws Exception ; 432 433 437 void setSelectedUsersMap(Map selectedUsers) 438 throws Exception ; 439 440 444 Module getCurrentModule(); 445 446 450 void setCurrentModule(Module v); 451 452 456 IssueType getCurrentIssueType() 457 throws Exception ; 458 459 463 void setCurrentIssueType(IssueType v); 464 465 469 RModuleIssueType getCurrentRModuleIssueType() 470 throws Exception ; 471 472 478 void updateIssueListAttributes(List attributes) 479 throws Exception ; 480 481 List getRoleNames(Module module) 482 throws Exception ; 483 484 487 void setLocale(Locale newLocale); 488 489 492 Locale getLocale(); 493 494 497 Locale getPreferredLocale(); 498 499 505 public boolean isShowOtherModulesInIssueTypeList(); 506 507 514 public void setShowOtherModulesInIssueTypeList( 515 boolean newShowOtherModulesInIssueTypeList); 516 517 522 public boolean isUserAnonymous(); 523 } 524 | Popular Tags |