|
|||||||||||
| 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.SecureModule
org.apache.turbine.modules.screens.TemplateSecureScreen
org.apache.turbine.TemplateSecureScreen
org.tigris.scarab.screens.Default
This class is responsible for building the Context up for the Default Screen as well as validating Security information for all of the Screens. Please note that the Actions also may depend on the checkAuthorized() method in order to prevent the need for duplication of code.
| Constructor Summary | |
Default()
|
|
| Method Summary | |
static boolean |
checkAuthorized(org.apache.turbine.RunData data)
Public static access to the isAuthorized() method so that an Action can use this same method to do authorization. |
java.lang.String |
doBuild(org.apache.turbine.RunData data)
Override the subclass and call doBuildTemplate. |
protected void |
doBuildTemplate(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
builds up the context for display of variables on the page. |
static ScarabLocalizationTool |
getLocalizationTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabLocalizationTool from the Context |
static ScarabRequestTool |
getScarabRequestTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabRequestTool from the Context |
protected java.lang.String |
getTitle(ScarabRequestTool scarabR,
ScarabLocalizationTool l10n)
|
protected boolean |
isAuthorized(org.apache.turbine.RunData data)
sets the template to Login.vm if the user hasn't logged in yet or if the user does not have the base permissions. |
static void |
setTargetLogin(org.apache.turbine.RunData data)
|
static void |
setTargetSelectModule(org.apache.turbine.RunData data)
|
| Methods inherited from class org.apache.turbine.modules.SecureModule |
doBuildTemplate |
| Methods inherited from class org.apache.turbine.modules.Module |
build, evaluate, execute, 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 |
| Constructor Detail |
public Default()
| Method Detail |
public java.lang.String doBuild(org.apache.turbine.RunData data)
throws java.lang.Exception
java.lang.Exception
protected void doBuildTemplate(org.apache.turbine.RunData data,
org.apache.turbine.TemplateContext context)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String getTitle(ScarabRequestTool scarabR,
ScarabLocalizationTool l10n)
throws java.lang.Exception
java.lang.Exception
protected boolean isAuthorized(org.apache.turbine.RunData data)
throws java.lang.Exception
java.lang.Exception
public static boolean checkAuthorized(org.apache.turbine.RunData data)
throws java.lang.Exception
java.lang.Exceptionpublic static void setTargetSelectModule(org.apache.turbine.RunData data)
public static void setTargetLogin(org.apache.turbine.RunData data)
public static ScarabRequestTool getScarabRequestTool(org.apache.turbine.TemplateContext context)
public static ScarabLocalizationTool getLocalizationTool(org.apache.turbine.TemplateContext context)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||