com.plumtree.portalpages.admin.editors.propertymap
Class PropertyMapEditorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
          extended by com.plumtree.portalpages.admin.editors.propertymap.PropertyMapEditorModel
All Implemented Interfaces:
IPropertyMapEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class PropertyMapEditorModel
extends GbObjEditorModel
implements IPropertyMapEditorModelRO

Author:
$author$

Field Summary
protected  XPArrayList m_ActionData
           
 java.lang.String m_lastTreeSpaceId
           
 int m_nAction
           
protected  int m_nGlobalObjectID
           
protected  XPHashtable m_properties
           
protected  boolean m_sortAscending
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
EDITOR_QS_INT_QS_GLOBAL_OBJECT_ID, m_ptGlobalObject, m_Session
 
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
PropertyMapEditorModel()
           
 
Method Summary
protected  void AddProperty(int id)
           
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          That method is called by the EditorStartControl.
protected  void ClearActionData()
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  void DeleteProperty(int id)
           
 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_AttributesFromInputs(XPHashtable _htFormData)
           
protected  void ExtractActionData_PropertiesFromCheckboxes(java.lang.Object o)
           
protected  void ExtractActionData_PropertiesFromTree()
           
protected  boolean ExtractOneBoolElement(java.lang.Object o)
           
protected  java.lang.String ExtractOneElement(java.lang.Object o)
           
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
protected  int GetAction()
           
 java.lang.String GetLastTreeSpaceId()
           
protected  IPTPropertyMap GetMap()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetNumProperties()
           
protected  Property GetProperty(int propId)
           
 java.lang.String GetPropertyAttribute(int propId, int index)
           
 java.lang.Object[] GetPropertyIDs()
           
 int GetPropertyNumberOfAttributes(int propId)
           
 boolean GetSortAscending()
           
 boolean IsPropertyAdded(int propId)
           
 boolean IsPropertyDeleted(int propId)
           
 boolean IsPropertyInEditMode(int propId)
           
 boolean IsPropertyMandatory(int propId)
           
 boolean IsPropertyModified(int propId)
           
 java.lang.String makeListOfAlreadyShown()
           
 void OnAdd()
           
 void OnDel()
           
 void OnEdit(int propId)
           
 void OnSort()
           
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.
 int WherePropertiesLive()
           
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
GetGlobalObject, GetPTSession, Init, SetGlobalObjectID, SetMemberVariablesFromQS, StartMigrationHistory
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, 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

m_lastTreeSpaceId

public java.lang.String m_lastTreeSpaceId

m_nAction

public int m_nAction

m_nGlobalObjectID

protected int m_nGlobalObjectID

m_ActionData

protected XPArrayList m_ActionData

m_properties

protected XPHashtable m_properties

m_sortAscending

protected boolean m_sortAscending
Constructor Detail

PropertyMapEditorModel

public PropertyMapEditorModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
That method is called by the EditorStartControl. It creates the global object and puts it in m_ptGlobalObject.

Overrides:
CheckEditorAccessAndStart in class GbObjEditorModel
Parameters:
_htFormData -
Returns:
boolean Is true if the current user has the rights to access this Editor.

GetLastTreeSpaceId

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

GetNumProperties

public int GetNumProperties()
Specified by:
GetNumProperties in interface IPropertyMapEditorModelRO
Returns:

IsPropertyAdded

public boolean IsPropertyAdded(int propId)
Specified by:
IsPropertyAdded in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

GetPropertyAttribute

public java.lang.String GetPropertyAttribute(int propId,
                                             int index)
Specified by:
GetPropertyAttribute in interface IPropertyMapEditorModelRO
Parameters:
propId -
index -
Returns:

IsPropertyDeleted

public boolean IsPropertyDeleted(int propId)
Specified by:
IsPropertyDeleted in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

GetPropertyIDs

public java.lang.Object[] GetPropertyIDs()
Specified by:
GetPropertyIDs in interface IPropertyMapEditorModelRO
Returns:

IsPropertyInEditMode

public boolean IsPropertyInEditMode(int propId)
Specified by:
IsPropertyInEditMode in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

IsPropertyMandatory

public boolean IsPropertyMandatory(int propId)
Specified by:
IsPropertyMandatory in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

IsPropertyModified

public boolean IsPropertyModified(int propId)
Specified by:
IsPropertyModified in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

GetPropertyNumberOfAttributes

public int GetPropertyNumberOfAttributes(int propId)
Specified by:
GetPropertyNumberOfAttributes in interface IPropertyMapEditorModelRO
Parameters:
propId -
Returns:

GetSortAscending

public boolean GetSortAscending()
Specified by:
GetSortAscending in interface IPropertyMapEditorModelRO
Returns:

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()

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
Parameters:
_htFormData -

Finish

public void Finish()
Description copied from class: EditorModel
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel

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:

OnAdd

public void OnAdd()

OnDel

public void OnDel()

OnEdit

public void OnEdit(int propId)
Parameters:
propId -

OnSort

public void OnSort()

SavePage

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

Specified by:
SavePage in interface IRepostModel
Specified by:
SavePage in class EditorModel
Parameters:
_sPageName -
_htFormData -
Returns:

WherePropertiesLive

public int WherePropertiesLive()
Specified by:
WherePropertiesLive in interface IPropertyMapEditorModelRO
Returns:

GetAction

protected int GetAction()
Returns:

GetProperty

protected Property GetProperty(int propId)
Parameters:
propId -
Returns:

AddProperty

protected void AddProperty(int id)
Parameters:
id -

ClearActionData

protected void ClearActionData()

DeleteProperty

protected void DeleteProperty(int id)
Parameters:
id -

ExtractActionData_AttributesFromInputs

protected void ExtractActionData_AttributesFromInputs(XPHashtable _htFormData)
Parameters:
_htFormData -

ExtractActionData_PropertiesFromCheckboxes

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

ExtractActionData_PropertiesFromTree

protected void ExtractActionData_PropertiesFromTree()

ExtractOneBoolElement

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

ExtractOneElement

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

GetMap

protected IPTPropertyMap GetMap()

SaveMainPage

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

makeListOfAlreadyShown

public java.lang.String makeListOfAlreadyShown()
Returns:



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