com.plumtree.portalpages.browsing.editors.smartsort
Class SmartSortEditorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
          extended by com.plumtree.portalpages.browsing.editors.smartsort.SmartSortEditorModel
All Implemented Interfaces:
ISmartSortEditorModelRO, IDescriptionModelRO, IMigrationModelRO, IObjEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class SmartSortEditorModel
extends ObjEditorModel
implements ISmartSortEditorModelRO

Author:
OlegS

Field Summary
static int DESTINATION_FOLDER_GROUP
           
protected  XPArrayList m_ActionData
           
 java.lang.String m_lastTreeSpaceId
          Localized String: No
 int m_nAction
           
protected  IPTTaxonomist m_ptTaxonomist
           
protected  boolean[] m_sortAscending
           
protected  int m_taxonomistSettings
           
static int SOURCE_FOLDER_GROUP
           
static java.lang.String STR_MVC_CLASS_NAME
           
static int TOTAL_GROUPS
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
EDITOR_CLASSID_UNKNOWN, EDITOR_FOLDERID_UNKNOWN, EDITOR_OBJECTID_UNKNOWN, EDITOR_QS_BOL_QS_FORCESAVEINFOLDER, EDITOR_QS_INT_CLASS_ID, EDITOR_QS_INT_QS_FOLDER_ID, EDITOR_QS_INT_QS_OBJECT_ID, m_bDisableDescription, m_bDisableSecurity, m_bForceSavedInSuppliedFolder, m_bIsSysAdmin, m_nClassID, m_nFolderID, m_nFolderType, m_nObjectID, m_ptObject, m_Session, m_sFolderName, OBJECT_NAME_TRUNCATE
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
SmartSortEditorModel()
          Creates a new SmartSortEditorModel object.
 
Method Summary
protected  void AddFolder(int group, int id)
           
protected  void ClearActionData()
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  void DeleteFolder(int group, int id)
           
 void DoTaskAfterStore()
          That method contains the code that should be executed just after the object has been stored in the DB.
 void DoTaskBeforeStore()
          That method contains the code that should be executed just before the object is stored in the DB.
 void DoTaskOnComeBackFromSubEditor()
          This method will be called when you come back to the main Editor from a sub Editor.
 void DoTaskOnStartEditor(XPHashtable _htFormData)
          That method contains the code that should be executed just after the object has been initialized when the new editor is started.
protected  void ExtractActionData_FoldersFromCheckboxes(java.lang.Object o)
           
protected  void ExtractActionData_FoldersFromDestinationTree()
           
protected  void ExtractActionData_FoldersFromSourceTree()
           
protected  void ExtractActionData_OptionsFromCheckboxes(XPHashtable _htFormData)
           
protected  boolean ExtractOneBoolElement(java.lang.Object o)
           
protected  java.lang.String ExtractOneElement(java.lang.Object o)
           
protected  int GetAction()
           
protected static int GetActionGroup(int action)
           
 java.lang.String GetEmptyListInstructions()
           
 java.lang.String GetEmptyListMainMessage()
           
 java.lang.Object[] GetFolderIDs(int group)
           
 java.lang.String GetLastTreeSpaceId()
           
 java.lang.String GetName()
          Returns the Class name.
 boolean GetSetting(int n)
           
 boolean GetSortAscending(int group)
           
 java.lang.String makeListOfDestinationFoldersAlreadyShown()
           
 java.lang.String makeListOfSourceFoldersAlreadyShown()
           
 void OnAdd(int group)
           
 void OnDel(int group)
           
 void OnSort(int group)
           
static int RemoveGroupFromAction(int action)
           
protected  int SaveMainPage(XPHashtable _htFormData)
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
protected  void SetAllSettings()
           
protected  void SetSettings(int setting, boolean newval)
           
protected  int validate()
           
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
CheckEditorAccess, CheckEditorAccessAndStart, CheckFolderType, DisableSecurity, Finish, ForceSaveInFolder, GetClassID, GetFolderID, GetFolderName, GetIsSysAdmin, GetMigrationStatus, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession, Init, InitIsSysAdminFlag, InitPTObject, IsDescriptionDisabled, IsMigrationApproved, SaveMigrationStatus, SetDisableDescription, SetEditorToReadOnly, SetMemberVariablesFromQS, SetMigrationStatus, StartKeywords, StartLocNamesList, StartMigrationHistory, StartObjectProp, StartSecurityList, StoreObject
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskOnChangePage, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor
 
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.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

SOURCE_FOLDER_GROUP

public static final int SOURCE_FOLDER_GROUP
See Also:
Constant Field Values

DESTINATION_FOLDER_GROUP

public static final int DESTINATION_FOLDER_GROUP
See Also:
Constant Field Values

TOTAL_GROUPS

public static final int TOTAL_GROUPS
See Also:
Constant Field Values

m_lastTreeSpaceId

public java.lang.String m_lastTreeSpaceId
Localized String: No


m_nAction

public int m_nAction

m_ptTaxonomist

protected IPTTaxonomist m_ptTaxonomist

m_ActionData

protected XPArrayList m_ActionData

m_sortAscending

protected boolean[] m_sortAscending

m_taxonomistSettings

protected int m_taxonomistSettings
Constructor Detail

SmartSortEditorModel

public SmartSortEditorModel()
Creates a new SmartSortEditorModel object.

Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorModel
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 EditorModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

DoTaskAfterStore

public void DoTaskAfterStore()
Description copied from class: EditorModel
That method contains the code that should be executed just after the object has been stored in the DB.

Overrides:
DoTaskAfterStore in class EditorModel

makeListOfDestinationFoldersAlreadyShown

public java.lang.String makeListOfDestinationFoldersAlreadyShown()
Specified by:
makeListOfDestinationFoldersAlreadyShown in interface ISmartSortEditorModelRO

makeListOfSourceFoldersAlreadyShown

public java.lang.String makeListOfSourceFoldersAlreadyShown()
Specified by:
makeListOfSourceFoldersAlreadyShown in interface ISmartSortEditorModelRO

DoTaskBeforeStore

public void DoTaskBeforeStore()
Description copied from class: EditorModel
That method contains the code that should be executed just before the object is stored in the DB.

Overrides:
DoTaskBeforeStore in class EditorModel

DoTaskOnComeBackFromSubEditor

public void DoTaskOnComeBackFromSubEditor()
Description copied from class: ObjEditorModel
This method will be called when you come back to the main Editor from a sub Editor.

Overrides:
DoTaskOnComeBackFromSubEditor in class ObjEditorModel

DoTaskOnStartEditor

public void DoTaskOnStartEditor(XPHashtable _htFormData)
Description copied from class: EditorModel
That method contains the code that should be executed just after the object has been initialized when the new editor is started.

Overrides:
DoTaskOnStartEditor in class EditorModel

GetEmptyListInstructions

public java.lang.String GetEmptyListInstructions()
Specified by:
GetEmptyListInstructions in interface ISmartSortEditorModelRO
Returns:

GetEmptyListMainMessage

public java.lang.String GetEmptyListMainMessage()
Specified by:
GetEmptyListMainMessage in interface ISmartSortEditorModelRO
Returns:

GetFolderIDs

public java.lang.Object[] GetFolderIDs(int group)
Specified by:
GetFolderIDs in interface ISmartSortEditorModelRO
Returns:

GetLastTreeSpaceId

public java.lang.String GetLastTreeSpaceId()
Specified by:
GetLastTreeSpaceId in interface ISmartSortEditorModelRO
Returns:

GetName

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

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

GetSetting

public boolean GetSetting(int n)
Specified by:
GetSetting in interface ISmartSortEditorModelRO
Parameters:
n -
Returns:

GetSortAscending

public boolean GetSortAscending(int group)
Specified by:
GetSortAscending in interface ISmartSortEditorModelRO
Parameters:
group -
Returns:

OnAdd

public void OnAdd(int group)

OnDel

public void OnDel(int group)
Parameters:
group -

OnSort

public void OnSort(int group)
Parameters:
group -

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Overrides:
SavePage in class ObjEditorModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

AddFolder

protected void AddFolder(int group,
                         int id)
Parameters:
group -
id -

ClearActionData

protected void ClearActionData()

DeleteFolder

protected void DeleteFolder(int group,
                            int id)
Parameters:
group -
id -

ExtractActionData_FoldersFromCheckboxes

protected void ExtractActionData_FoldersFromCheckboxes(java.lang.Object o)
Parameters:
o -

ExtractActionData_FoldersFromDestinationTree

protected void ExtractActionData_FoldersFromDestinationTree()

ExtractActionData_FoldersFromSourceTree

protected void ExtractActionData_FoldersFromSourceTree()

ExtractActionData_OptionsFromCheckboxes

protected void ExtractActionData_OptionsFromCheckboxes(XPHashtable _htFormData)
Parameters:
_htFormData -

ExtractOneBoolElement

protected boolean ExtractOneBoolElement(java.lang.Object o)
Parameters:
o -
Returns:

ExtractOneElement

protected java.lang.String ExtractOneElement(java.lang.Object o)
Parameters:
o -
Returns:

GetAction

protected int GetAction()
Returns:

GetActionGroup

protected static int GetActionGroup(int action)

RemoveGroupFromAction

public static int RemoveGroupFromAction(int action)

SaveMainPage

protected int SaveMainPage(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

SetAllSettings

protected void SetAllSettings()

SetSettings

protected void SetSettings(int setting,
                           boolean newval)
Parameters:
setting -
newval -

validate

protected int validate()
Returns:



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