com.plumtree.portalpages.browsing.portalsettings.localesettings
Class LocaleSettingsModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.browsing.portalsettings.localesettings.LocaleSettingsModel
All Implemented Interfaces:
ILocaleSettingsModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class LocaleSettingsModel
extends EditorModel
implements ILocaleSettingsModelRO


Field Summary
static java.lang.String DEFAULT_TIMEZONE
          Default timezone value (not display string)
protected  java.lang.String m_strLocale
           
protected  java.lang.String m_strTimeZone
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
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
LocaleSettingsModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 void CleanupTempData()
          Null out Web Data so we don't retain (leak) it.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetLocaleSetting()
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetTimeZoneSetting()
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetWebData(IWebData _webdata)
          Inits this Model with the Web Data object.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, Init, 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

DEFAULT_TIMEZONE

public static final java.lang.String DEFAULT_TIMEZONE
Default timezone value (not display string)

See Also:
Constant Field Values

m_strLocale

protected java.lang.String m_strLocale

m_strTimeZone

protected java.lang.String m_strTimeZone
Constructor Detail

LocaleSettingsModel

public LocaleSettingsModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Implements some actions to perform on start.

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

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

SetWebData

public void SetWebData(IWebData _webdata)
Inits this Model with the Web Data object.

Parameters:
_webdata -

Finish

public void Finish()
Implement some code to execute when the user clicks on "Finish".

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

CleanupTempData

public void CleanupTempData()
Null out Web Data so we don't retain (leak) it.

Specified by:
CleanupTempData in interface IModel
Overrides:
CleanupTempData in class EditorModel
See Also:
IModel.CleanupTempData()

GetLocaleSetting

public java.lang.String GetLocaleSetting()
Specified by:
GetLocaleSetting in interface ILocaleSettingsModelRO
Returns:

GetName

public java.lang.String GetName()
Returns the Class name.

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

GetTimeZoneSetting

public java.lang.String GetTimeZoneSetting()
Specified by:
GetTimeZoneSetting in interface ILocaleSettingsModelRO
Returns:

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
Specified by:
SavePage in class EditorModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation



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