Java Doc for ReportIssue.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » actions » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.actions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tigris.scarab.actions.base.RequireLoginFirstAction
   org.tigris.scarab.actions.ReportIssue

ReportIssue
public class ReportIssue extends RequireLoginFirstAction (Code)
This class is responsible for report issue forms.
author:
   John D. McNally
version:
   $Id: ReportIssue.java 10378 2006-12-10 23:34:12Z dabbous $




Method Summary
public  voidcheckForDuplicates(RunData data, TemplateContext context)
    
static  voidcleanOutStaleIssue(RunData data, TemplateContext context)
    
public  voiddoAddcomment(RunData data, TemplateContext context)
     Handles adding a comment to one or more issues.
public  voiddoAddfile(RunData data, TemplateContext context)
    
public  voiddoCheckforduplicates(RunData data, TemplateContext context)
    
public  voiddoEnterissue(RunData data, TemplateContext context)
    
public  voiddoGotowizard3(RunData data, TemplateContext context)
     The button for this action is commented out on Wizard2, so it will not be called public void doAddvote(RunData data, TemplateContext context) throws Exception { IntakeTool intake = getIntakeTool(context); ScarabLocalizationTool l10n = getLocalizationTool(context); if (intake.isAllValid()) { ScarabRequestTool scarabR = getScarabRequestTool(context); Issue issue = scarabR.getReportingIssue(); try { issue.addVote((ScarabUser)data.getUser()); scarabR.setConfirmMessage( l10n.format("VoteForIssueAccepted", issue.getUniqueId())); // if there was only one duplicate issue and the user just // voted for it, assume user is done String nextTemplate = ((ScarabUser)data.getUser()).getHomePage(); if (! searchAndSetTemplate(data, context, 1, nextTemplate)) { cleanup(data, context); } } catch (ScarabException e) { scarabR.setAlertMessage( l10n.format("VoteFailedException", e.getMessage())); // User attempted to vote when they were not allowed.
public  voiddoPerform(RunData data, TemplateContext context)
     Calls do check for duplicates by default.
public  voiddoRemovefile(RunData data, TemplateContext context)
    
public  voiddoStart(RunData data, TemplateContext context)
    
public  voiddoUsetemplates(RunData data, TemplateContext context)
    



Method Detail
checkForDuplicates
public void checkForDuplicates(RunData data, TemplateContext context) throws Exception(Code)



cleanOutStaleIssue
static void cleanOutStaleIssue(RunData data, TemplateContext context) throws Exception(Code)
for easy access by TemplateList action



doAddcomment
public void doAddcomment(RunData data, TemplateContext context) throws Exception(Code)
Handles adding a comment to one or more issues. This is an option which is available on Wizard2 during the dedupe process.



doAddfile
public void doAddfile(RunData data, TemplateContext context) throws Exception(Code)
Add attachment file



doCheckforduplicates
public void doCheckforduplicates(RunData data, TemplateContext context) throws Exception(Code)



doEnterissue
public void doEnterissue(RunData data, TemplateContext context) throws Exception(Code)
handles entering an issue



doGotowizard3
public void doGotowizard3(RunData data, TemplateContext context) throws Exception(Code)
The button for this action is commented out on Wizard2, so it will not be called public void doAddvote(RunData data, TemplateContext context) throws Exception { IntakeTool intake = getIntakeTool(context); ScarabLocalizationTool l10n = getLocalizationTool(context); if (intake.isAllValid()) { ScarabRequestTool scarabR = getScarabRequestTool(context); Issue issue = scarabR.getReportingIssue(); try { issue.addVote((ScarabUser)data.getUser()); scarabR.setConfirmMessage( l10n.format("VoteForIssueAccepted", issue.getUniqueId())); // if there was only one duplicate issue and the user just // voted for it, assume user is done String nextTemplate = ((ScarabUser)data.getUser()).getHomePage(); if (! searchAndSetTemplate(data, context, 1, nextTemplate)) { cleanup(data, context); } } catch (ScarabException e) { scarabR.setAlertMessage( l10n.format("VoteFailedException", e.getMessage())); // User attempted to vote when they were not allowed. This // should probably not be allowed in the ui, but right now // it is and we should protect against url hacking anyway. // Repopulate the data so the dedupe page can be shown again. searchAndSetTemplate(data, context, 0, "entry,Wizard2.vm"); } } else { // Not sure this case needs to be covered, but just to be safe // repopulate the data so the dedupe page can be shown again. searchAndSetTemplate(data, context, 0, "entry,Wizard2.vm"); } }



doPerform
public void doPerform(RunData data, TemplateContext context) throws Exception(Code)
Calls do check for duplicates by default.



doRemovefile
public void doRemovefile(RunData data, TemplateContext context) throws Exception(Code)
Remove an attachment file



doStart
public void doStart(RunData data, TemplateContext context) throws Exception(Code)



doUsetemplates
public void doUsetemplates(RunData data, TemplateContext context) throws Exception(Code)



Fields inherited from org.tigris.scarab.actions.base.RequireLoginFirstAction
final protected static LocalizationKey DEFAULT_MSG(Code)(Java Doc)
final protected static LocalizationKey EMAIL_ERROR(Code)(Java Doc)
final protected static LocalizationKey EMAIL_ERROR2(Code)(Java Doc)
final protected static LocalizationKey ERROR_MESSAGE(Code)(Java Doc)
final protected static LocalizationKey NO_CHANGES_MADE(Code)(Java Doc)
final protected static LocalizationKey NO_PERMISSION_MESSAGE(Code)(Java Doc)

Methods inherited from org.tigris.scarab.actions.base.RequireLoginFirstAction
public boolean areThereDupeSequences(List list, IntakeTool intake, String groupName, String fieldName, int dedupeSeq) throws Exception(Code)(Java Doc)
public void doCancel(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doDone(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doGonext(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doGotoothertemplate(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doRefresh(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doRefreshresultsperpage(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doReset(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public void doSave(RunData data, TemplateContext context) throws Exception(Code)(Java Doc)
public String getBackTemplate(RunData data)(Code)(Java Doc)
public String getBackTemplate(RunData data, String defaultValue)(Code)(Java Doc)
public String getCancelTemplate(RunData data)(Code)(Java Doc)
public String getCancelTemplate(RunData data, String defaultValue)(Code)(Java Doc)
public String getCurrentTemplate(RunData data)(Code)(Java Doc)
public String getCurrentTemplate(RunData data, String defaultValue)(Code)(Java Doc)
public IntakeTool getIntakeTool(TemplateContext context)(Code)(Java Doc)
public String getLastTemplate(RunData data)(Code)(Java Doc)
final protected ScarabLocalizationTool getLocalizationTool(TemplateContext context)(Code)(Java Doc)
public String getNextTemplate(RunData data)(Code)(Java Doc)
public String getNextTemplate(RunData data, String defaultValue)(Code)(Java Doc)
public String getOtherTemplate(RunData data)(Code)(Java Doc)
protected String getRequiredPermission(RunData data)(Code)(Java Doc)
public ScarabRequestTool getScarabRequestTool(TemplateContext context)(Code)(Java Doc)
protected boolean isAuthorized(RunData data) throws Exception(Code)(Java Doc)
protected Logger log()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.