| org.tigris.scarab.actions.base.RequireLoginFirstAction
All known Subclasses: org.tigris.scarab.actions.ConfigureIssueList, org.tigris.scarab.actions.admin.AttributeGroupEdit, org.tigris.scarab.actions.admin.ModuleAttributeEdit, org.tigris.scarab.actions.ViewIssue, org.tigris.scarab.actions.admin.UpdateSearchIndex, org.tigris.scarab.actions.admin.GlobalAttributeEdit, org.tigris.scarab.actions.admin.ManageUser, org.tigris.scarab.actions.admin.GlobalArtifactTypes, org.tigris.scarab.actions.ModifyModule, org.tigris.scarab.actions.DefineXModuleList, org.tigris.scarab.actions.admin.GlobalAttributes, org.tigris.scarab.actions.admin.GlobalEmailSettings, org.tigris.scarab.actions.admin.ConditionEdit, org.tigris.scarab.actions.admin.SetInfoMessage, org.tigris.scarab.actions.admin.AppConfigurationSettings, org.tigris.scarab.actions.admin.ManagePermissions, org.tigris.scarab.actions.Redirect, org.tigris.scarab.actions.HandleRoleRequests, org.tigris.scarab.actions.base.BaseModifyIssue, org.tigris.scarab.actions.admin.IssueTypeAttributeEdit, org.tigris.scarab.actions.admin.ManageRoles, org.tigris.scarab.actions.SetHomePage, org.tigris.scarab.actions.admin.GlobalArtifactTypeCreate, org.tigris.scarab.actions.Search, org.tigris.scarab.actions.ReportIssue, org.tigris.scarab.actions.ConfigureReport, org.tigris.scarab.actions.TemplateList, org.tigris.scarab.actions.QueryList, org.tigris.scarab.actions.admin.Approval, org.tigris.scarab.actions.admin.ArtifactTypeEdit, org.tigris.scarab.actions.admin.ManageArtifactTypes,
RequireLoginFirstAction | abstract public class RequireLoginFirstAction extends TemplateSecureAction (Code) | | This is a badly named class which is essentially equivalent to the
Default.java Screen except that it has a few helper methods.
author: Jon S. Stevens version: $Id: RequireLoginFirstAction.java 9280 2004-11-27 01:11:13Z jorgeuriarte $ |
Method Summary | |
public boolean | areThereDupeSequences(List list, IntakeTool intake, String groupName, String fieldName, int dedupeSeq) | public void | doCancel(RunData data, TemplateContext context) | public void | doDone(RunData data, TemplateContext context) | public void | doGonext(RunData data, TemplateContext context) | public void | doGotoothertemplate(RunData data, TemplateContext context) | public void | doRefresh(RunData data, TemplateContext context) | public void | doRefreshresultsperpage(RunData data, TemplateContext context) | public void | doReset(RunData data, TemplateContext context) | public void | doSave(RunData data, TemplateContext context) | public String | getBackTemplate(RunData data) Returns the backTemplate to be executed. | public String | getBackTemplate(RunData data, String defaultValue) Returns the backTemplate to be executed. | public String | getCancelTemplate(RunData data) Returns the cancelTemplate to be executed. | public String | getCancelTemplate(RunData data, String defaultValue) Returns the cancelTemplate to be executed. | public String | getCurrentTemplate(RunData data) | public String | getCurrentTemplate(RunData data, String defaultValue) Returns the current template that is being executed, otherwisse
it returns defaultValue. | public IntakeTool | getIntakeTool(TemplateContext context) | public String | getLastTemplate(RunData data) Returns the last template to be cancelled back to. | final protected ScarabLocalizationTool | getLocalizationTool(TemplateContext context) | public String | getNextTemplate(RunData data) Returns the nextTemplate to be executed. | public String | getNextTemplate(RunData data, String defaultValue) Returns the nextTemplate to be executed. | public String | getOtherTemplate(RunData data) Returns the other template that is being executed, otherwise
it returns null. | protected String | getRequiredPermission(RunData data) Flag that marks the action as requiring a permission mapping in
Scarab.properties. | public ScarabRequestTool | getScarabRequestTool(TemplateContext context) | protected boolean | isAuthorized(RunData data) | protected Logger | log() |
areThereDupeSequences | public boolean areThereDupeSequences(List list, IntakeTool intake, String groupName, String fieldName, int dedupeSeq) throws Exception(Code) | | Check if the objects have duplicate sequence numbers set
Parameters: list - List of 'om' objects that need to be checked for duplicatesequence. Parameters: intake - IntakeTool Parameters: groupName - Intake group name Parameters: fieldName - Intake field name Parameters: dedupeSeq - sequence number set for Duplicate Check element in thecase of attribute groups boolean TRUE if there are duplicate sequence numbers. |
doCancel | public void doCancel(RunData data, TemplateContext context) throws Exception(Code) | | |
doDone | public void doDone(RunData data, TemplateContext context) throws Exception(Code) | | |
doGonext | public void doGonext(RunData data, TemplateContext context) throws Exception(Code) | | |
doGotoothertemplate | public void doGotoothertemplate(RunData data, TemplateContext context) throws Exception(Code) | | |
doRefresh | public void doRefresh(RunData data, TemplateContext context) throws Exception(Code) | | |
doRefreshresultsperpage | public void doRefreshresultsperpage(RunData data, TemplateContext context) throws Exception(Code) | | |
doReset | public void doReset(RunData data, TemplateContext context) throws Exception(Code) | | |
doSave | public void doSave(RunData data, TemplateContext context) throws Exception(Code) | | |
getBackTemplate | public String getBackTemplate(RunData data)(Code) | | Returns the backTemplate to be executed. Otherwise returns null.
|
getBackTemplate | public String getBackTemplate(RunData data, String defaultValue)(Code) | | Returns the backTemplate to be executed.
Otherwise returns defaultValue.
|
getCancelTemplate | public String getCancelTemplate(RunData data)(Code) | | Returns the cancelTemplate to be executed. Otherwise returns null.
|
getCancelTemplate | public String getCancelTemplate(RunData data, String defaultValue)(Code) | | Returns the cancelTemplate to be executed.
Otherwise returns defaultValue.
|
getCurrentTemplate | public String getCurrentTemplate(RunData data)(Code) | | Returns the current template that is being executed, otherwisse
it returns null
|
getCurrentTemplate | public String getCurrentTemplate(RunData data, String defaultValue)(Code) | | Returns the current template that is being executed, otherwisse
it returns defaultValue.
|
getIntakeTool | public IntakeTool getIntakeTool(TemplateContext context)(Code) | | Helper method to retrieve the IntakeTool from the Context
|
getLastTemplate | public String getLastTemplate(RunData data)(Code) | | Returns the last template to be cancelled back to.
|
getLocalizationTool | final protected ScarabLocalizationTool getLocalizationTool(TemplateContext context)(Code) | | Helper method to retrieve the ScarabLocalizationTool from the Context
|
getNextTemplate | public String getNextTemplate(RunData data)(Code) | | Returns the nextTemplate to be executed. Otherwise returns null.
|
getNextTemplate | public String getNextTemplate(RunData data, String defaultValue)(Code) | | Returns the nextTemplate to be executed. Otherwise returns defaultValue.
|
getOtherTemplate | public String getOtherTemplate(RunData data)(Code) | | Returns the other template that is being executed, otherwise
it returns null.
|
getRequiredPermission | protected String getRequiredPermission(RunData data)(Code) | | Flag that marks the action as requiring a permission mapping in
Scarab.properties. The default is true, so actions that only
require login (or only require a permission given some critieria
available in the arguments), should override this method.
Parameters: data - a RunData value a boolean value |
getScarabRequestTool | public ScarabRequestTool getScarabRequestTool(TemplateContext context)(Code) | | Helper method to retrieve the ScarabRequestTool from the Context
|
isAuthorized | protected boolean isAuthorized(RunData data) throws Exception(Code) | | sets the template to template.login if the user hasn't logged in yet
|
log | protected Logger log()(Code) | | |
|
|