com.plumtree.portalpages.common.search
Class FolderSelectorModel

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

public class FolderSelectorModel
extends EditorHelperModel
implements IFolderSelectorModelRO, IFolderSelectorModel

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
FolderSelectorModel()
           
 
Method Summary
 void AddFoldersFromTreeSelections(boolean isAdmin, ITreeModel tree)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DeleteFolders(boolean isAdmin, int[] folderIDs)
           
 java.lang.String GetFolderSelections(boolean isAdmin)
          Returns a comma-separated list of classid,objectid pairs used to initialize the tree view.
 boolean GetIncludeSubfolders()
           
 java.lang.String GetLastTreeSpaceId(boolean isAdmin)
           
 boolean GetMultiSelectMode()
           
 java.lang.String GetName()
          Returns the Class name.
 IXPCollection GetSelections(boolean isAdmin)
           
 void InitFromFormData(XPHashtable formData)
           
 void InitializePlugIn(boolean multiSelectMode)
           
 int SaveSection(XPHashtable formData)
          Code to save the section represented by this Model.
 
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
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel
CleanupAllData, CleanupTempData, Init
 

Field Detail

STR_MVC_CLASS_NAME

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

FolderSelectorModel

public FolderSelectorModel()
Method Detail

AddFoldersFromTreeSelections

public void AddFoldersFromTreeSelections(boolean isAdmin,
                                         ITreeModel tree)
Specified by:
AddFoldersFromTreeSelections in interface IFolderSelectorModel
Parameters:
isAdmin -
tree -

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:

DeleteFolders

public void DeleteFolders(boolean isAdmin,
                          int[] folderIDs)
Specified by:
DeleteFolders in interface IFolderSelectorModel
Parameters:
isAdmin -
folderIDs -

GetIncludeSubfolders

public boolean GetIncludeSubfolders()
Specified by:
GetIncludeSubfolders in interface IFolderSelectorModelRO
Returns:

GetLastTreeSpaceId

public java.lang.String GetLastTreeSpaceId(boolean isAdmin)
Specified by:
GetLastTreeSpaceId in interface IFolderSelectorModelRO
Parameters:
isAdmin -
Returns:

GetMultiSelectMode

public boolean GetMultiSelectMode()
Specified by:
GetMultiSelectMode in interface IFolderSelectorModelRO
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:

GetSelections

public IXPCollection GetSelections(boolean isAdmin)
Specified by:
GetSelections in interface IFolderSelectorModelRO
Parameters:
isAdmin -
Returns:

InitializePlugIn

public void InitializePlugIn(boolean multiSelectMode)
Parameters:
multiSelectMode -

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:

InitFromFormData

public void InitFromFormData(XPHashtable formData)

GetFolderSelections

public java.lang.String GetFolderSelections(boolean isAdmin)
Description copied from interface: IFolderSelectorModelRO
Returns a comma-separated list of classid,objectid pairs used to initialize the tree view.

Specified by:
GetFolderSelections in interface IFolderSelectorModelRO
Parameters:
isAdmin - True, return admin folder selections.
Returns:



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