com.plumtree.portaluiinfrastructure.helpers
Class AppDataObjectFactory

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.helpers.AppDataObjectFactory
All Implemented Interfaces:
IAppDataObjectFactory

public class AppDataObjectFactory
extends java.lang.Object
implements IAppDataObjectFactory


Method Summary
 IPTState GetAppDataObject(int iCommunityID, int iPageID, int iGWParams, java.lang.String strHostPageURI, AActivitySpace asOwner)
          Return GetAppDataObject(int iCommunityID, int iPageID, int iGWParams, String strHostPageURI, AActivitySpace asOwner, boolean bResolveSecureBase) with the default value of bResolveSecureBase set to true.
 IPTState GetAppDataObject(int iCommunityID, int iPageID, int iGWParams, java.lang.String strHostPageURI, AActivitySpace asOwner, boolean bResolveSecureBase)
          Returns the app data state object.
 IPTState GetAppDataObject(int iCommunityID, int iPageID, java.lang.String strHostPageURI, AActivitySpace asOwner)
           
 IPTState GetAppDataObject(int iCommunityID, int iPageID, java.lang.String strHostPageURI, AActivitySpace asOwner, boolean bResolveSecureBase)
           
static IAppDataObjectFactory GetInstance()
           
 PTStyleSheetLink GetStyleSheet(int iCommunityID, IPTSession ptSession, AActivitySpace asOwner)
          Calculate the style sheet for this gatewayed page.
static void SetTestInstance(IAppDataObjectFactory testHelper)
          Unit tests should use this method to overwrite/teardown existing helper singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

GetInstance

public static IAppDataObjectFactory GetInstance()
Returns:
The singleton config helper.

SetTestInstance

public static void SetTestInstance(IAppDataObjectFactory testHelper)
Unit tests should use this method to overwrite/teardown existing helper singleton. DO NOT USE for production code.


GetAppDataObject

public IPTState GetAppDataObject(int iCommunityID,
                                 int iPageID,
                                 java.lang.String strHostPageURI,
                                 AActivitySpace asOwner)
Specified by:
GetAppDataObject in interface IAppDataObjectFactory

GetAppDataObject

public IPTState GetAppDataObject(int iCommunityID,
                                 int iPageID,
                                 java.lang.String strHostPageURI,
                                 AActivitySpace asOwner,
                                 boolean bResolveSecureBase)
Specified by:
GetAppDataObject in interface IAppDataObjectFactory

GetAppDataObject

public IPTState GetAppDataObject(int iCommunityID,
                                 int iPageID,
                                 int iGWParams,
                                 java.lang.String strHostPageURI,
                                 AActivitySpace asOwner)
Description copied from interface: IAppDataObjectFactory
Return GetAppDataObject(int iCommunityID, int iPageID, int iGWParams, String strHostPageURI, AActivitySpace asOwner, boolean bResolveSecureBase) with the default value of bResolveSecureBase set to true.

Specified by:
GetAppDataObject in interface IAppDataObjectFactory
Returns:

GetAppDataObject

public IPTState GetAppDataObject(int iCommunityID,
                                 int iPageID,
                                 int iGWParams,
                                 java.lang.String strHostPageURI,
                                 AActivitySpace asOwner,
                                 boolean bResolveSecureBase)
Description copied from interface: IAppDataObjectFactory
Returns the app data state object. This function is used by the gateway directly. The bResolveSecureBase specifies that in security mode 3 the method should resolve strSecureAppBaseURL by passing it to PTConfigHelper.GetApplicationBaseURL or not

Specified by:
GetAppDataObject in interface IAppDataObjectFactory
Returns:

GetStyleSheet

public PTStyleSheetLink GetStyleSheet(int iCommunityID,
                                      IPTSession ptSession,
                                      AActivitySpace asOwner)
Description copied from interface: IAppDataObjectFactory
Calculate the style sheet for this gatewayed page. If this page is not coming from a community, then we use the subportal's style sheet. If it is coming from a community, then we first check to see if there is a community style sheet; if there is not, then we default to the subportal.

Specified by:
GetStyleSheet in interface IAppDataObjectFactory



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