au.com.whitesquare.waf.command
Class SecureCommand

java.lang.Object
  extended byau.com.whitesquare.waf.command.ValidatedCommand
      extended byau.com.whitesquare.waf.command.SecureCommand
All Implemented Interfaces:
BaseCommand

public abstract class SecureCommand
extends ValidatedCommand


Last Modified $Date: 2005/06/26 11:21:32 $

Version:
$Revision: 1.8 $
Author:
Steve Mactaggart

Field Summary
 
Fields inherited from class au.com.whitesquare.waf.command.ValidatedCommand
params
 
Constructor Summary
SecureCommand()
          This is the default constructor of this class.
 
Method Summary
protected  Response innerExecute()
           
protected abstract  boolean isAuthorised()
           
 boolean isSessionRequired()
          Determines if the user should be re-directed to the index page if they are a new session.
protected abstract  Response secureExecute()
           
protected abstract  Response unSecureExecute()
           
 
Methods inherited from class au.com.whitesquare.waf.command.ValidatedCommand
addParamRetriever, addPostParseParameter, addPostParseParamRetriever, addRequestParameter, addRequestParameter, addSubCommandParameter, clearParameter, clearParameters, execute, getBoolean, getContext, getContextCount, getFloat, getFloatArray, getInteger, getIntegerArray, getLong, getLongArray, getObject, getRequest, getResponse, getSession, getString, getStringArray, parameterErrorExecute, processSubCommand, processSubCommand, setupPostParseFields, setupPreParseFields, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureCommand

public SecureCommand()
This is the default constructor of this class.

Method Detail

innerExecute

protected final Response innerExecute()
Specified by:
innerExecute in class ValidatedCommand
See Also:
ValidatedCommand.innerExecute()

isAuthorised

protected abstract boolean isAuthorised()

secureExecute

protected abstract Response secureExecute()

unSecureExecute

protected abstract Response unSecureExecute()

isSessionRequired

public boolean isSessionRequired()
Description copied from interface: BaseCommand
Determines if the user should be re-directed to the index page if they are a new session. Allows the developer to define a command as part of a process that must be traversed inside a session.

Returns:
whether the command must be executed inside a session or not.
See Also:
BaseCommand.isSessionRequired()


Copyright © 2004 Whitesquare Software. All Rights Reserved.