com.plumtree.uiinfrastructure.common
Class PassthruControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.common.PassthruControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class PassthruControl
extends java.lang.Object
implements IControl

Author:
NaveenP

Field Summary
protected  AActivitySpace m_asOwner
           
protected  IModel m_model
           
static java.lang.String QS_MAIN_CONTROL
           
static java.lang.String QS_PASSTHRU_CONTROL
           
static java.lang.String STR_MVC_CLASS_NAME
          Object Name for AS
 
Constructor Summary
PassthruControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Return the class name.
 void Init(IModel model, AActivitySpace space)
          Inits the class with the associated model and activity space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
Object Name for AS

See Also:
Constant Field Values

QS_PASSTHRU_CONTROL

public static final java.lang.String QS_PASSTHRU_CONTROL
See Also:
Constant Field Values

QS_MAIN_CONTROL

public static final java.lang.String QS_MAIN_CONTROL
See Also:
Constant Field Values

m_model

protected IModel m_model

m_asOwner

protected AActivitySpace m_asOwner
Constructor Detail

PassthruControl

public PassthruControl()
Method Detail

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
Description copied from interface: IControl
Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace. Returning null means that the user should return to the parent AActivitySpace's current page. This method is designed to check that the user has access to perform the actions with the given parameters. If the user does not, a redirect object which has had Redirect.SetRedirectToLogin(true) called on it. If the user is the Guest, this will bounce to the login page and back to the Redirect after the user has logged on. If the user is already logged on, they will be redirected to an error page. In general, the error redirect that is returned should contain all of the query string parameters that made up the URL that originally led to the control. Checking whether or not a particular user ever has any access to the space, page, and control should be done in IPTActivitySpace.CheckBasicAccess().

Specified by:
CheckActionSecurityAndExecute in interface IControl
Returns:
Redirect

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Return the class name.

Specified by:
GetName in interface IMVCObject
Returns:
String

Init

public void Init(IModel model,
                 AActivitySpace space)
Inits the class with the associated model and activity space. If this method is overridden in a sub-class, this version of Init must be called as super.Init();

Specified by:
Init in interface IControl
Parameters:
model -
space -



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.