com.plumtree.portalpages.browsing.search.advanced
Class PowerSearchModel

java.lang.Object
  extended by com.plumtree.portalpages.browsing.search.advanced.PowerSearchModel
All Implemented Interfaces:
IManagedObject, IModel, IModelRO, IMVCObject

public class PowerSearchModel
extends java.lang.Object
implements IModelRO, IModel

Author:
CraigS

Field Summary
protected  PageMgr m_ptPageMgr
          Page manager, needed by date-time picker
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
PowerSearchModel()
           
 
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.
 ADatePickerComponent GetDateTimePicker(int propID)
           
 boolean GetMakeClassIDsSelectable()
           
 java.lang.String GetName()
          Return the name of the MVC object.
 int GetNumPropertyConstraints()
           
 java.lang.String GetPageManagerErrors()
           
 int GetPropertyID(int idx)
           
 java.lang.String GetPropertyName(int idx)
           
 int GetPropertyType(int idx)
           
 boolean GetShowAbstractTypeSelector()
           
 boolean GetShowApplicationSelector()
           
 int[] GetSupportedClassIDs()
           
 boolean GetSupportTextSearch()
           
 void Init(AActivitySpace parent)
          This method initializes the model.
 void MakeAndCacheDateTimePicker(int propID)
           
 void Setup(int[] propertyConstraints, boolean supportTextSearch, int[] supportedClassIDs, boolean makeClassIDsSelectable, boolean showAbstractTypeSelector, boolean showApplicationSelector)
           
 int StoreAllDateInputs(XPHashtable args)
           
 
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_ptPageMgr

protected PageMgr m_ptPageMgr
Page manager, needed by date-time picker

Constructor Detail

PowerSearchModel

public PowerSearchModel()
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:

GetMakeClassIDsSelectable

public boolean GetMakeClassIDsSelectable()
Returns:

GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:

GetNumPropertyConstraints

public int GetNumPropertyConstraints()
Returns:

GetPropertyID

public int GetPropertyID(int idx)
Parameters:
idx -
Returns:

GetPropertyName

public java.lang.String GetPropertyName(int idx)
Parameters:
idx -
Returns:

GetPropertyType

public int GetPropertyType(int idx)
Parameters:
idx -
Returns:

GetShowAbstractTypeSelector

public boolean GetShowAbstractTypeSelector()
Returns:

GetShowApplicationSelector

public boolean GetShowApplicationSelector()
Returns:

GetSupportTextSearch

public boolean GetSupportTextSearch()
Returns:

GetSupportedClassIDs

public int[] GetSupportedClassIDs()
Returns:

Init

public void Init(AActivitySpace parent)
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:
parent -

MakeAndCacheDateTimePicker

public void MakeAndCacheDateTimePicker(int propID)

GetDateTimePicker

public ADatePickerComponent GetDateTimePicker(int propID)

StoreAllDateInputs

public int StoreAllDateInputs(XPHashtable args)

GetPageManagerErrors

public java.lang.String GetPageManagerErrors()

Setup

public void Setup(int[] propertyConstraints,
                  boolean supportTextSearch,
                  int[] supportedClassIDs,
                  boolean makeClassIDsSelectable,
                  boolean showAbstractTypeSelector,
                  boolean showApplicationSelector)
Parameters:
propertyConstraints -
supportTextSearch -
supportedClassIDs -
makeClassIDsSelectable -
showAbstractTypeSelector -
showApplicationSelector -



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