com.plumtree.portalpages.common.search
Class TypeSelectorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.common.search.TypeSelectorModel
All Implemented Interfaces:
ITypeSelectorModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class TypeSelectorModel
extends EditorHelperModel
implements ITypeSelectorModelRO

Author:
CraigS, based on MikeS code

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
TypeSelectorModel()
           
 
Method Summary
 boolean AreDetailedOptionsShown()
           
 boolean CollabInstalled()
           
 boolean ContentInstalled()
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Returns the Class name.
 int[] GetOrderedClassIds()
           
 IXPCollection GetSelectedTypes()
          Returns a collection of all selected types (as Strings)
 void InitFromFormData(XPHashtable formData)
           
 void InitializePlugIn(boolean showAbstractTypeView, boolean noTypesSelected)
           
 boolean IsTypeSelected(int type)
          Returns true if the given type is selected
 int SaveSection(XPHashtable formData)
          Code to save the section represented by this Model.
 boolean ShouldDisplayAdminObjects()
          Returns true if admin objects (CLASSID_ENDUSERCOUNT ..
 boolean ShowAbstractTypeView()
          Returns true if the user can see an alternate view that lists abstractified types and applications instead of the longer list of detailed types
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
CleanupAllData, CleanupTempData, Init
 
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
Constructor Detail

TypeSelectorModel

public TypeSelectorModel()
Method Detail

AreDetailedOptionsShown

public boolean AreDetailedOptionsShown()
Specified by:
AreDetailedOptionsShown in interface ITypeSelectorModelRO
Returns:

ShowAbstractTypeView

public boolean ShowAbstractTypeView()
Description copied from interface: ITypeSelectorModelRO
Returns true if the user can see an alternate view that lists abstractified types and applications instead of the longer list of detailed types

Specified by:
ShowAbstractTypeView in interface ITypeSelectorModelRO

Create

public java.lang.Object Create()
Description copied from class: EditorHelperModel
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class EditorHelperModel
Returns:

GetName

public java.lang.String GetName()
Description copied from class: EditorHelperModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorHelperModel
Returns:

GetSelectedTypes

public IXPCollection GetSelectedTypes()
Description copied from interface: ITypeSelectorModelRO
Returns a collection of all selected types (as Strings)

Specified by:
GetSelectedTypes in interface ITypeSelectorModelRO
Returns:

InitializePlugIn

public void InitializePlugIn(boolean showAbstractTypeView,
                             boolean noTypesSelected)

IsTypeSelected

public boolean IsTypeSelected(int type)
Description copied from interface: ITypeSelectorModelRO
Returns true if the given type is selected

Specified by:
IsTypeSelected in interface ITypeSelectorModelRO
Parameters:
type -
Returns:

SaveSection

public int SaveSection(XPHashtable formData)
Description copied from class: EditorHelperModel
Code to save the section represented by this Model.

Specified by:
SaveSection in class EditorHelperModel
Parameters:
formData -
Returns:

ShouldDisplayAdminObjects

public boolean ShouldDisplayAdminObjects()
Returns true if admin objects (CLASSID_ENDUSERCOUNT .. DETAILEDCOUNT-1) should be selectable

Specified by:
ShouldDisplayAdminObjects in interface ITypeSelectorModelRO

InitFromFormData

public void InitFromFormData(XPHashtable formData)

ContentInstalled

public boolean ContentInstalled()
Specified by:
ContentInstalled in interface ITypeSelectorModelRO

CollabInstalled

public boolean CollabInstalled()
Specified by:
CollabInstalled in interface ITypeSelectorModelRO

GetOrderedClassIds

public int[] GetOrderedClassIds()
Specified by:
GetOrderedClassIds in interface ITypeSelectorModelRO



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