public abstract class SecureScreen
extends org.apache.turbine.modules.screens.VelocitySecureScreen
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
SecureScreen() |
Modifier and Type | Method and Description |
---|---|
static void |
addProps(File file,
List<Properties> screens,
List<String> _defaultScreens,
String path) |
boolean |
allowGuestAccess() |
protected void |
cacheTabs(org.apache.velocity.context.Context context,
String subfolder) |
protected void |
doBuildTemplate(org.apache.turbine.util.RunData data)
This method overrides the method in VelocitySecureScreen to
perform a security check first and store the popup status in the context.
|
protected void |
error(Exception e,
org.apache.turbine.util.RunData data) |
protected List<Properties> |
findTabs(String subfolder) |
String |
getReason(org.apache.turbine.util.RunData data) |
protected boolean |
isAuthorized(org.apache.turbine.util.RunData data)
Override this method to perform the security check needed.
|
static void |
loadAdditionalVariables(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context c) |
void |
logAccess(org.apache.turbine.util.RunData data) |
void |
logAccess(org.apache.turbine.util.RunData data,
String message) |
protected void |
preserveVariables(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context) |
protected void |
setDefaultTabs(String... defaultTabs) |
protected static boolean |
storeParameterIfPresent(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context,
String... parameters)
Searches for the parameters contained in the parameters array.
|
doBuildTemplate
buildTemplate, getContext
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate
public String getReason(org.apache.turbine.util.RunData data)
protected void error(Exception e, org.apache.turbine.util.RunData data)
protected void preserveVariables(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
public static void loadAdditionalVariables(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context c)
protected void doBuildTemplate(org.apache.turbine.util.RunData data) throws Exception
doBuildTemplate
in class org.apache.turbine.modules.screens.VelocitySecureScreen
data
- Turbine information.Exception,
- a generic exception.Exception
protected boolean isAuthorized(org.apache.turbine.util.RunData data) throws Exception
isAuthorized
in class org.apache.turbine.modules.screens.VelocitySecureScreen
data
- Turbine information.Exception,
- a generic exception.Exception
public void logAccess(org.apache.turbine.util.RunData data)
public void logAccess(org.apache.turbine.util.RunData data, String message)
public boolean allowGuestAccess()
protected void setDefaultTabs(String... defaultTabs)
protected void cacheTabs(org.apache.velocity.context.Context context, String subfolder) throws FileNotFoundException
FileNotFoundException
protected List<Properties> findTabs(String subfolder) throws FileNotFoundException
FileNotFoundException
public static void addProps(File file, List<Properties> screens, List<String> _defaultScreens, String path) throws FileNotFoundException
FileNotFoundException
protected static boolean storeParameterIfPresent(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context, String... parameters)
data
- The run data.context
- The Velocity context object.parameters
- An array of parameter names to be evaluated.Copyright © 2015 Neuroinformatics Research Group. All rights reserved.