com.plumtree.portalpages.admin.sendinvitation
Class SendInvitationModel

java.lang.Object
  extended by com.plumtree.portalpages.admin.sendinvitation.SendInvitationModel
All Implemented Interfaces:
ISendInvitationModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IRepostModel

public class SendInvitationModel
extends java.lang.Object
implements IRepostModel, ISendInvitationModelRO

Author:
DustinA

Field Summary
protected  AActivitySpace m_asOwner
           
protected  boolean m_bCreateStatus
           
protected  java.lang.String m_sCreateErrorMessage
           
protected  IPTSession m_Session
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
SendInvitationModel()
           
 
Method Summary
 void CleanupAllData()
          This method is called when an ActivitySpace is removed from the cache.
 void CleanupTempData()
          This method is called at the end of every HTTP request by the Interpreter.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 boolean GetCreateCodeStatus()
          Returns the Create Code Statue.
 java.lang.String GetCreateErrorMessage()
          Returns the Create Error Message.
 java.lang.String GetName()
          Returns the Class name.
 Redirect GetRedirectAfterFinish()
          Returns the Redirect object (this is were we need to go at the end).
 XPDateTime GetTodaysDate()
           
 void Init(AActivitySpace parent)
          Inits the Model with the IPTSession.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetCreateCodeStatus(boolean _bStatus)
          Sets the Create Code Statue.
 void SetCreateErrorMessage(java.lang.String _sErrorMessage)
          Sets the Create Error Message.
 
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
See Also:
Constant Field Values

m_asOwner

protected AActivitySpace m_asOwner

m_Session

protected IPTSession m_Session

m_sCreateErrorMessage

protected java.lang.String m_sCreateErrorMessage

m_bCreateStatus

protected boolean m_bCreateStatus
Constructor Detail

SendInvitationModel

public SendInvitationModel()
Method Detail

CleanupTempData

public void CleanupTempData()
Description copied from interface: IModel
This method is called at the end of every HTTP request by the Interpreter. The Interpreter calls AActivitySpace.CleanupTempData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for cleaning up temporary data that is only used for the lifetime of a single request, like DB query results.

Specified by:
CleanupTempData in interface IModel
See Also:
IModel.CleanupTempData()

CleanupAllData

public void CleanupAllData()
Description copied from interface: IModel
This method is called when an ActivitySpace is removed from the cache. The Interpreter calls AActivitySpace.CleanupAllData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for releasing data stored in the server when the activity space is no longer needed, such as search objects that need to be maintained as long as the user is clicking through the search, but should be freed when the space can no longer be used. This can be used to prevent Java references to COM memory from hanging around in the long lived Java heap without cleaning up the underlying COM memory. The Java reference will still stay in the long lived heap until it gets garbage collected (which could be a while), but the COM memory should get released here. This method will not be called if an HTTPSession times out. CleanupTempData will be called before CleanupAllData.

Specified by:
CleanupAllData in interface IModel
See Also:
IModel.CleanupAllData()

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()

Finish

public void Finish()
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel

GetCreateCodeStatus

public boolean GetCreateCodeStatus()
Returns the Create Code Statue.

Specified by:
GetCreateCodeStatus in interface ISendInvitationModelRO
Returns:
boolean

GetCreateErrorMessage

public java.lang.String GetCreateErrorMessage()
Returns the Create Error Message.

Specified by:
GetCreateErrorMessage in interface ISendInvitationModelRO
Returns:
String

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Returns:
String

GetRedirectAfterFinish

public Redirect GetRedirectAfterFinish()
Returns the Redirect object (this is were we need to go at the end). This is going to the previous AS

Specified by:
GetRedirectAfterFinish in interface IRepostModel
Returns:
Redirect

GetTodaysDate

public XPDateTime GetTodaysDate()
Specified by:
GetTodaysDate in interface ISendInvitationModelRO
Returns:

Init

public void Init(AActivitySpace parent)
Inits the Model with the IPTSession.

Specified by:
Init in interface IModel
Parameters:
parent -

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

SetCreateCodeStatus

public void SetCreateCodeStatus(boolean _bStatus)
Sets the Create Code Statue.

Parameters:
_bStatus -

SetCreateErrorMessage

public void SetCreateErrorMessage(java.lang.String _sErrorMessage)
Sets the Create Error Message.

Parameters:
_sErrorMessage -



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