com.plumtree.portalpages.admin.editors.defaultprofile
Class EditDefaultProfileRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.portalpages.admin.editors.defaultprofile.EditDefaultProfileRepostControl
All Implemented Interfaces:
IControl, IHTTPControl, ILoginControl, IManagedObject, IMVCObject

public class EditDefaultProfileRepostControl
extends RepostControl
implements ILoginControl, IHTTPControl

File: EditDefaultProfileRepostControl.java ------------------------------------------

Author:
NaveenP

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.form.RepostControl
HTMLINPUT_PASSTHRU_ARGS, HTMLINPUT_PASSTHRU_CONTROL, HTMLINPUT_POSTTOSELF, HTMLSUBMIT_508_POSTTOSELF, m_bInitialized, m_htFormData, m_model, m_nAction, m_nPageStatus, m_rRedirect, PAGE_STATUS_INVALID, PAGE_STATUS_VALID, POSTTOSELF_ACTION_APPLY_CHANGES, POSTTOSELF_ACTION_CANCEL, POSTTOSELF_ACTION_FINISH, POSTTOSELF_ACTION_GOTOPAGE, POSTTOSELF_ACTION_IN_PLACE_REFRESH, POSTTOSELF_ACTION_PASSTHRU, POSTTOSELF_ACTION_SIMPLEREPOST, POSTTOSELF_ACTION_UNDEFINED
 
Constructor Summary
EditDefaultProfileRepostControl()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 boolean DoGetSession()
          This method is called by the Interpreter to determine whether or not to subsequently call GetSession and perform login/logout code.
 java.lang.String GetName()
          Return the class name.
 java.lang.Object GetSession()
          This method is called by the Interpreter after calling Execute on the LoginControl.
 void Init(IModel model, AActivitySpace space)
          Inits the class with the associated model and activity space.
protected  void PerformAction(int _nAction)
          Given the repost action mode, calls the associated method in the model.
 void SetHTTPItems(IXPRequest request, IWebData webdata)
          This method provides access to the XPRequest.
 void SetRedirectForUseAfterLogin(Redirect r)
          This method sets a redirect on the login control for use after a successful login.
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
CheckActionSecurityAndExecute, GetPageStatus, GetRepostAction, PerformPassthruAction, SaveCurrentPage, SetPageStatus, SetRedirect, SetRepostAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IControl
CheckActionSecurityAndExecute
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IControl
CheckActionSecurityAndExecute
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

EditDefaultProfileRepostControl

public EditDefaultProfileRepostControl()
Method Detail

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
Overrides:
Create in class RepostControl
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

DoGetSession

public boolean DoGetSession()
Description copied from interface: ILoginControl
This method is called by the Interpreter to determine whether or not to subsequently call GetSession and perform login/logout code. If this returns false, the session will remain unchanged.

Specified by:
DoGetSession in interface ILoginControl
Returns:
boolean true implies GetSession() will be called
See Also:
com.plumtree.xpshared.activityspace.ILoginControl#DoGetSession()

GetName

public java.lang.String GetName()
Description copied from class: RepostControl
Return the class name.

Specified by:
GetName in interface IMVCObject
Overrides:
GetName in class RepostControl
Returns:
String
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#GetName()

GetSession

public java.lang.Object GetSession()
Description copied from interface: ILoginControl
This method is called by the Interpreter after calling Execute on the LoginControl. The User Session returned will be stored on the user's HTTPSession. If null is returned, the user's session will be removed from the HTTPSession for logout.

Specified by:
GetSession in interface ILoginControl
Returns:
Object null implies logoff session implies login as this session
See Also:
com.plumtree.portaluiinfrastructure.activityspace.ILoginControl#GetSession()

Init

public void Init(IModel model,
                 AActivitySpace space)
Description copied from class: RepostControl
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
Overrides:
Init in class RepostControl
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#Init(IModel, AActivitySpace)

SetRedirectForUseAfterLogin

public void SetRedirectForUseAfterLogin(Redirect r)
Description copied from interface: ILoginControl
This method sets a redirect on the login control for use after a successful login. This allows a user to be bounced from a page if they are not logged in, and then return to that page after they log in.

Specified by:
SetRedirectForUseAfterLogin in interface ILoginControl
See Also:
com.plumtree.portaluiinfrastructure.activityspace.ILoginControl#SetRedirectForUseAfterLogin(Redirect)

SetHTTPItems

public void SetHTTPItems(IXPRequest request,
                         IWebData webdata)
Description copied from interface: IHTTPControl
This method provides access to the XPRequest. It will be called by the Interpreter before CheckActionSecurityAndExecute() is called. Although these parameters will need to be cached so they can be used during CheckActionSecurityAndExecute(), they should be nulled out at the end of that method to make sure they are not leaked, as the control is stored on the HTTPSession.

Specified by:
SetHTTPItems in interface IHTTPControl
Parameters:
r -
webdata -

PerformAction

protected void PerformAction(int _nAction)
Description copied from class: RepostControl
Given the repost action mode, calls the associated method in the model.

Overrides:
PerformAction in class RepostControl
See Also:
RepostControl.PerformAction(int)



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