|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.modules.Module
org.apache.turbine.modules.Action
org.apache.turbine.modules.ActionEvent
org.apache.turbine.modules.actions.TemplateAction
org.apache.turbine.modules.actions.TemplateSecureAction
org.apache.turbine.TemplateSecureAction
org.tigris.scarab.actions.base.RequireLoginFirstAction
This is a badly named class which is essentially equivalent to the Default.java Screen except that it has a few helper methods.
| Field Summary | |
protected static LocalizationKey |
DEFAULT_MSG
|
protected static LocalizationKey |
EMAIL_ERROR
|
protected static LocalizationKey |
EMAIL_ERROR2
|
protected static LocalizationKey |
ERROR_MESSAGE
|
protected static LocalizationKey |
NO_CHANGES_MADE
|
protected static LocalizationKey |
NO_PERMISSION_MESSAGE
|
| Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
| Constructor Summary | |
RequireLoginFirstAction()
|
|
| Method Summary | |
boolean |
areThereDupeSequences(java.util.List list,
org.apache.turbine.tool.IntakeTool intake,
java.lang.String groupName,
java.lang.String fieldName,
int dedupeSeq)
Check if the objects have duplicate sequence numbers set |
void |
doCancel(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doDone(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doGonext(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doGotoothertemplate(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doRefresh(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doRefreshresultsperpage(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doReset(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
void |
doSave(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
|
java.lang.String |
getBackTemplate(org.apache.turbine.RunData data)
Returns the backTemplate to be executed. |
java.lang.String |
getBackTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
Returns the backTemplate to be executed. |
java.lang.String |
getCancelTemplate(org.apache.turbine.RunData data)
Returns the cancelTemplate to be executed. |
java.lang.String |
getCancelTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
Returns the cancelTemplate to be executed. |
java.lang.String |
getCurrentTemplate(org.apache.turbine.RunData data)
Returns the current template that is being executed, otherwisse it returns null |
java.lang.String |
getCurrentTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
Returns the current template that is being executed, otherwisse it returns defaultValue. |
org.apache.turbine.tool.IntakeTool |
getIntakeTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the IntakeTool from the Context |
java.lang.String |
getLastTemplate(org.apache.turbine.RunData data)
Returns the last template to be cancelled back to. |
protected ScarabLocalizationTool |
getLocalizationTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabLocalizationTool from the Context |
java.lang.String |
getNextTemplate(org.apache.turbine.RunData data)
Returns the nextTemplate to be executed. |
java.lang.String |
getNextTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
Returns the nextTemplate to be executed. |
java.lang.String |
getOtherTemplate(org.apache.turbine.RunData data)
Returns the other template that is being executed, otherwise it returns null. |
protected java.lang.String |
getRequiredPermission(org.apache.turbine.RunData data)
Flag that marks the action as requiring a permission mapping in Scarab.properties. |
ScarabRequestTool |
getScarabRequestTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabRequestTool from the Context |
protected boolean |
isAuthorized(org.apache.turbine.RunData data)
sets the template to template.login if the user hasn't logged in yet |
protected org.apache.log4j.Logger |
log()
|
| Methods inherited from class org.apache.turbine.modules.actions.TemplateSecureAction |
perform |
| Methods inherited from class org.apache.turbine.modules.actions.TemplateAction |
doPerform, doPerform, executeEvents |
| Methods inherited from class org.apache.turbine.modules.ActionEvent |
execute, formatString |
| Methods inherited from class org.apache.turbine.modules.Module |
build, doBuild, doBuildTemplate, doBuildTemplate, evaluate, getPullService, getTemplateContext, getTemplateService, getTool, handleRequest, handleRequest, requestFinished, setTarget, setTemplate, templateExists |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final LocalizationKey ERROR_MESSAGE
protected static final LocalizationKey NO_PERMISSION_MESSAGE
protected static final LocalizationKey DEFAULT_MSG
protected static final LocalizationKey EMAIL_ERROR
protected static final LocalizationKey EMAIL_ERROR2
protected static final LocalizationKey NO_CHANGES_MADE
| Constructor Detail |
public RequireLoginFirstAction()
| Method Detail |
protected boolean isAuthorized(org.apache.turbine.RunData data)
throws java.lang.Exception
java.lang.Exceptionpublic org.apache.turbine.tool.IntakeTool getIntakeTool(org.apache.turbine.TemplateContext context)
protected final ScarabLocalizationTool getLocalizationTool(org.apache.turbine.TemplateContext context)
public ScarabRequestTool getScarabRequestTool(org.apache.turbine.TemplateContext context)
public java.lang.String getCurrentTemplate(org.apache.turbine.RunData data)
public java.lang.String getCurrentTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
public java.lang.String getNextTemplate(org.apache.turbine.RunData data)
public java.lang.String getNextTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
public java.lang.String getLastTemplate(org.apache.turbine.RunData data)
public java.lang.String getCancelTemplate(org.apache.turbine.RunData data)
public java.lang.String getCancelTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
public java.lang.String getBackTemplate(org.apache.turbine.RunData data)
public java.lang.String getBackTemplate(org.apache.turbine.RunData data,
java.lang.String defaultValue)
public java.lang.String getOtherTemplate(org.apache.turbine.RunData data)
public void doSave(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doGonext(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doGotoothertemplate(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doRefresh(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doRefreshresultsperpage(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doReset(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doCancel(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
public void doDone(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exceptionprotected org.apache.log4j.Logger log()
protected java.lang.String getRequiredPermission(org.apache.turbine.RunData data)
data - a RunData value
boolean value
public boolean areThereDupeSequences(java.util.List list,
org.apache.turbine.tool.IntakeTool intake,
java.lang.String groupName,
java.lang.String fieldName,
int dedupeSeq)
throws java.lang.Exception
list - List of 'om' objects that need to be checked for duplicate
sequence.intake - IntakeToolgroupName - Intake group namefieldName - Intake field namededupeSeq - sequence number set for Duplicate Check element in the
case of attribute groups
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||