com.plumtree.portalpages.admin.ptutilities.localizedstrings
Class LocalizedStringsModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.ptutilities.localizedstrings.LocalizedStringsModel
All Implemented Interfaces:
ILocalizedStringsModel, ILocalizedStringsModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class LocalizedStringsModel
extends EditorModel
implements ILocalizedStringsModelRO, ILocalizedStringsModel

Author:
MichaelS

Field Summary
 IPTSession m_ptSession
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
LocalizedStringsModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 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.Object[][] GetData()
          Get method for the LocalizedStrings data.
 java.lang.String[] GetLangs()
           
 java.lang.String GetLastUploadMessage()
          MES- GetLastUploadMessage returns a string describing the last upload, or the zero length string if there has been no upload
 java.lang.String GetName()
          Returns the Class name.
 void Init(AActivitySpace parent)
          Inits the Model with the Activity Space.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetData(java.lang.Object[][] arrLocalizedStrings)
          MES- setData sets the array of localized strings
 void SetLangs(java.lang.String[] arrLangs)
          MES- setLangs sets the array of languages associated with m_arrLocalized StringsArray.
 void SetUploadMessage(java.lang.String sMessage)
          MES- SetUploadMessage sets a message that describes the most recent upload- success or failure
 boolean UserCanLocalize()
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, 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.activityspace.IModel
CleanupAllData, CleanupTempData
 

Field Detail

STR_MVC_CLASS_NAME

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

m_ptSession

public IPTSession m_ptSession
Constructor Detail

LocalizedStringsModel

public LocalizedStringsModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Implements some actions to perform on start. Use the Editor Type if needed.

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

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

GetData

public java.lang.Object[][] GetData()
Description copied from interface: ILocalizedStringsModelRO
Get method for the LocalizedStrings data.

Specified by:
GetData in interface ILocalizedStringsModelRO
See Also:
ILocalizedStringsModelRO#getData()

GetLangs

public java.lang.String[] GetLangs()
Specified by:
GetLangs in interface ILocalizedStringsModelRO
Returns:
See Also:
ILocalizedStringsModelRO#getLangs()

GetLastUploadMessage

public java.lang.String GetLastUploadMessage()
MES- GetLastUploadMessage returns a string describing the last upload, or the zero length string if there has been no upload

Specified by:
GetLastUploadMessage in interface ILocalizedStringsModelRO
Parameters:
none -
Returns:
void

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:
String
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IModelRO#GetName()

Init

public void Init(AActivitySpace parent)
Inits the Model with the Activity Space.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent -

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

SetData

public void SetData(java.lang.Object[][] arrLocalizedStrings)
MES- setData sets the array of localized strings

Specified by:
SetData in interface ILocalizedStringsModel
Parameters:
arrLocalizedStrings - is a 2D array of localized strings, as required by IPTStringLocalizationManager::SetLocalizedStrings

SetLangs

public void SetLangs(java.lang.String[] arrLangs)
MES- setLangs sets the array of languages associated with m_arrLocalized StringsArray. Each column in m_arrLocalizedStringsArray is represented by an item in arrLangs.

Specified by:
SetLangs in interface ILocalizedStringsModel
Parameters:
arrLangs - is a 1D array of language identifiers (e.g. "en" or "en-us".)

SetUploadMessage

public void SetUploadMessage(java.lang.String sMessage)
MES- SetUploadMessage sets a message that describes the most recent upload- success or failure

Specified by:
SetUploadMessage in interface ILocalizedStringsModel
Parameters:
sMessage - is the message

UserCanLocalize

public boolean UserCanLocalize()
Specified by:
UserCanLocalize in interface ILocalizedStringsModelRO
Returns:
See Also:
ILocalizedStringsModelRO#userCanLocalize()



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