com.plumtree.portalpages.devices.mypage.common
Class MyPageDevicesModel

java.lang.Object
  extended by com.plumtree.portalpages.devices.mypage.common.MyPageDevicesModel
All Implemented Interfaces:
IMyPageDevicesModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class MyPageDevicesModel
extends java.lang.Object
implements IMyPageDevicesModelRO, IModel

Author:
SudhaS

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
static java.lang.String WML_INTERFACE
           
 
Constructor Summary
MyPageDevicesModel()
           
 
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.
 ASURL GetASURL(java.lang.String _strSpace)
           
 int GetCommunityID()
           
 java.lang.String GetFixStringLength(java.lang.String s, int iMaxSize, java.lang.String sEnd)
           
 int GetListID()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetNumPages(int iCount, int iMaxNumber)
           
 int GetPageID()
           
 java.lang.String GetPageName()
           
 HTMLTableCell GetPortletContent(int _nIndex)
          The results of this method are not used in the Devices MyPage, but this method needs to be called before calling GetPortletName(int).
 int GetPortletCount()
           
 int GetPortletID(int _nIndex)
           
 java.lang.String GetPortletName(int _nIndex)
           
 java.lang.String GetPortletSummary(int _nIndex)
           
 void Init(AActivitySpace _asOwner)
          This method initializes the model.
 void SetCommunityID(int _nCommunityID)
           
 void SetHostPageURI(java.lang.String _strHostPage)
           
 void SetListID(int _nListID)
           
 void SetPageID(int _nPageID)
           
 void SetPageName(java.lang.String _strPageName)
           
 void SetPortletContent(java.lang.String _strUniqueID)
           
 
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

WML_INTERFACE

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

MyPageDevicesModel

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

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:
com.plumtree.xpshared.infrastructure.activityspace.IManagedObject#Create()

GetASURL

public ASURL GetASURL(java.lang.String _strSpace)
Specified by:
GetASURL in interface IMyPageDevicesModelRO
Parameters:
_strSpace -
Returns:

GetCommunityID

public int GetCommunityID()
Specified by:
GetCommunityID in interface IMyPageDevicesModelRO
Returns:

GetFixStringLength

public java.lang.String GetFixStringLength(java.lang.String s,
                                           int iMaxSize,
                                           java.lang.String sEnd)
Specified by:
GetFixStringLength in interface IMyPageDevicesModelRO
Parameters:
s -
iMaxSize -
sEnd -
Returns:

GetPortletCount

public int GetPortletCount()
Specified by:
GetPortletCount in interface IMyPageDevicesModelRO
Returns:

GetPortletID

public int GetPortletID(int _nIndex)
Specified by:
GetPortletID in interface IMyPageDevicesModelRO
Parameters:
_nIndex -
Returns:

GetPortletName

public java.lang.String GetPortletName(int _nIndex)
Specified by:
GetPortletName in interface IMyPageDevicesModelRO
Parameters:
_nIndex -
Returns:

GetPortletSummary

public java.lang.String GetPortletSummary(int _nIndex)
Specified by:
GetPortletSummary in interface IMyPageDevicesModelRO
Parameters:
_nIndex -
Returns:

GetPortletContent

public HTMLTableCell GetPortletContent(int _nIndex)
The results of this method are not used in the Devices MyPage, but this method needs to be called before calling GetPortletName(int). Unused -- devices only display portlet summaries in bulk. Otherwise they just display a single portlet at a time.

Specified by:
GetPortletContent in interface IMyPageDevicesModelRO
Returns:

GetListID

public int GetListID()
Specified by:
GetListID in interface IMyPageDevicesModelRO
Returns:

GetName

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

Specified by:
GetName in interface IMVCObject
Returns:
String

GetNumPages

public int GetNumPages(int iCount,
                       int iMaxNumber)
Specified by:
GetNumPages in interface IMyPageDevicesModelRO
Parameters:
iCount -
iMaxNumber -
Returns:

GetPageID

public int GetPageID()
Specified by:
GetPageID in interface IMyPageDevicesModelRO
Returns:

GetPageName

public java.lang.String GetPageName()
Specified by:
GetPageName in interface IMyPageDevicesModelRO

SetPageName

public void SetPageName(java.lang.String _strPageName)

Init

public void Init(AActivitySpace _asOwner)
Description copied from interface: IModel
This method initializes the model. This is called automatically when AActivitySpace.RegisterModel() is called.

Specified by:
Init in interface IModel
Parameters:
_asOwner -

SetCommunityID

public void SetCommunityID(int _nCommunityID)
Parameters:
_nCommunityID -

SetPortletContent

public void SetPortletContent(java.lang.String _strUniqueID)
Specified by:
SetPortletContent in interface IMyPageDevicesModelRO

SetHostPageURI

public void SetHostPageURI(java.lang.String _strHostPage)
Parameters:
_strHostPage -

SetListID

public void SetListID(int _nListID)
Parameters:
_nListID -

SetPageID

public void SetPageID(int _nPageID)
Parameters:
_nPageID -



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