| org.tigris.scarab.actions.base.RequireLoginFirstAction org.tigris.scarab.actions.ReportIssue
Method Summary | |
public void | checkForDuplicates(RunData data, TemplateContext context) | static void | cleanOutStaleIssue(RunData data, TemplateContext context) | public void | doAddcomment(RunData data, TemplateContext context) Handles adding a comment to one or more issues. | public void | doAddfile(RunData data, TemplateContext context) | public void | doCheckforduplicates(RunData data, TemplateContext context) | public void | doEnterissue(RunData data, TemplateContext context) | public void | doGotowizard3(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 void | doPerform(RunData data, TemplateContext context) Calls do check for duplicates by default. | public void | doRemovefile(RunData data, TemplateContext context) | public void | doStart(RunData data, TemplateContext context) | public void | doUsetemplates(RunData data, TemplateContext context) |
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) | | |
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)
|
|
|