com.plumtree.portalpages.admin.serversettings.general
Class SetServerSettingsModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.serversettings.general.SetServerSettingsModel
All Implemented Interfaces:
ISetServerSettingsModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class SetServerSettingsModel
extends EditorModel
implements ISetServerSettingsModelRO

Author:

Field Summary
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
SetServerSettingsModel()
           
 
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 DoTaskAfterStore()
          Code executed after the object is stored.
 void DoTaskBeforeStore()
          Initializes IPTProperty with the property type member variable just before we store the object in the DB.
 void DoTaskOnStartEditor(XPHashtable _htFormData)
          Initializes the property type member variable with the one from IPTProperty in Edit mode and the default value in create mode.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 boolean GetAllowNumericAuthentication()
           
 boolean GetAllowUserCreation()
           
 boolean GetAutoAssignNumericID()
           
 java.lang.String GetDefaultLocale()
           
 java.lang.String GetDefaultTimeZone()
           
 java.lang.String GetDocumentDisplayURL()
           
 boolean GetEnableAccountLocking()
           
 boolean GetEnablePortletErrorsDebugMode()
           
 boolean GetEnableSubportalRulesDebugMode()
           
 java.lang.String GetInviteCipherKey()
          GetInviteCipherKey - the key used to encrypt the codes for CreateAccount invites
 int GetMinutesToLockAccounts()
           
 int GetMinutesToTrackFailedLogins()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetNumberOfFailedLoginsAllowed()
           
 java.lang.String GetPrimaryWebServerURL()
           
 java.lang.Object[] GetServerSettings()
           
 java.lang.String GetSharedFilesPath()
           
 java.lang.String GetSoapServerURL()
           
 void Init(AActivitySpace parent)
          Inits the Model with the Activity Space.
 void RepostAdvPage()
          Does nothing for now.
 void RepostMainPage()
          Modifies the object description on repost.
protected  int SaveMainPage(XPHashtable _htFormData)
          Saves the data on the Main page.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
protected  void SavePortalUrlsPage(XPHashtable _htFormData)
           
 void SetAllowNumericAuthentication(boolean b)
           
 void SetAllowUserCreation(boolean b)
           
 void SetAutoAssignNumericID(boolean b)
           
 void SetDefaultLocale(java.lang.String s)
           
 void SetDefaultTimeZone(java.lang.String s)
           
 void SetDocumentDisplayURL(java.lang.String s)
           
 void SetEnableAccountLocking(boolean b)
           
 void SetEnableDebugPortletErrorsMode(boolean b)
           
 void SetEnableDebugSubportalRulesMode(boolean b)
           
 void SetInviteCipherKey(java.lang.String sKey)
          SetInviteCipherKey - the key used to encrypt the codes for CreateAccount invites
 void SetMinutesToLockAccounts(int i)
           
 void SetMinutesToTrackFailedLogins(int i)
           
 void SetNumberOfFailedLoginsAllowed(int i)
           
 void SetPrimaryWebServerURL(java.lang.String s)
           
 void SetSharedFilesPath(java.lang.String s)
           
 void SetSoapServerURL(java.lang.String s)
           
 void UpdateLoginTokenKey()
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, 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.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

SetServerSettingsModel

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

DoTaskAfterStore

public void DoTaskAfterStore()
Code executed after the object is stored.

Overrides:
DoTaskAfterStore in class EditorModel

DoTaskBeforeStore

public void DoTaskBeforeStore()
Initializes IPTProperty with the property type member variable just before we store the object in the DB. Also sets 2 other values to default.

Overrides:
DoTaskBeforeStore in class EditorModel

DoTaskOnStartEditor

public void DoTaskOnStartEditor(XPHashtable _htFormData)
Initializes the property type member variable with the one from IPTProperty in Edit mode and the default value in create mode.

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

GetAllowNumericAuthentication

public boolean GetAllowNumericAuthentication()
Specified by:
GetAllowNumericAuthentication in interface ISetServerSettingsModelRO
Returns:

GetAllowUserCreation

public boolean GetAllowUserCreation()
Specified by:
GetAllowUserCreation in interface ISetServerSettingsModelRO
Returns:

GetAutoAssignNumericID

public boolean GetAutoAssignNumericID()
Specified by:
GetAutoAssignNumericID in interface ISetServerSettingsModelRO
Returns:

GetDefaultLocale

public java.lang.String GetDefaultLocale()
Specified by:
GetDefaultLocale in interface ISetServerSettingsModelRO
Returns:

GetDefaultTimeZone

public java.lang.String GetDefaultTimeZone()
Specified by:
GetDefaultTimeZone in interface ISetServerSettingsModelRO
Returns:

GetDocumentDisplayURL

public java.lang.String GetDocumentDisplayURL()
Specified by:
GetDocumentDisplayURL in interface ISetServerSettingsModelRO
Returns:

GetEnableAccountLocking

public boolean GetEnableAccountLocking()
Specified by:
GetEnableAccountLocking in interface ISetServerSettingsModelRO
Returns:

GetEnableSubportalRulesDebugMode

public boolean GetEnableSubportalRulesDebugMode()
Specified by:
GetEnableSubportalRulesDebugMode in interface ISetServerSettingsModelRO
Returns:

GetEnablePortletErrorsDebugMode

public boolean GetEnablePortletErrorsDebugMode()
Specified by:
GetEnablePortletErrorsDebugMode in interface ISetServerSettingsModelRO
Returns:

GetSharedFilesPath

public java.lang.String GetSharedFilesPath()
Specified by:
GetSharedFilesPath in interface ISetServerSettingsModelRO
Returns:

GetSoapServerURL

public java.lang.String GetSoapServerURL()
Specified by:
GetSoapServerURL in interface ISetServerSettingsModelRO
Returns:

GetMinutesToLockAccounts

public int GetMinutesToLockAccounts()
Specified by:
GetMinutesToLockAccounts in interface ISetServerSettingsModelRO
Returns:

GetMinutesToTrackFailedLogins

public int GetMinutesToTrackFailedLogins()
Specified by:
GetMinutesToTrackFailedLogins in interface ISetServerSettingsModelRO
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

GetNumberOfFailedLoginsAllowed

public int GetNumberOfFailedLoginsAllowed()
Specified by:
GetNumberOfFailedLoginsAllowed in interface ISetServerSettingsModelRO
Returns:

GetPrimaryWebServerURL

public java.lang.String GetPrimaryWebServerURL()
Specified by:
GetPrimaryWebServerURL in interface ISetServerSettingsModelRO
Returns:

GetServerSettings

public java.lang.Object[] GetServerSettings()
Specified by:
GetServerSettings in interface ISetServerSettingsModelRO
Returns:

Init

public void Init(AActivitySpace parent)
Description copied from class: EditorModel
Inits the Model with the Activity Space.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent - the parent Activity Space
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IModel#Init(IActivitySpace)

RepostAdvPage

public void RepostAdvPage()
Does nothing for now.


RepostMainPage

public void RepostMainPage()
Modifies the object description on repost.


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

SetAllowNumericAuthentication

public void SetAllowNumericAuthentication(boolean b)
Parameters:
b -

SetAllowUserCreation

public void SetAllowUserCreation(boolean b)
Parameters:
b -

SetAutoAssignNumericID

public void SetAutoAssignNumericID(boolean b)
Parameters:
b -

SetDefaultLocale

public void SetDefaultLocale(java.lang.String s)
Parameters:
s -

SetDefaultTimeZone

public void SetDefaultTimeZone(java.lang.String s)
Parameters:
s -

SetDocumentDisplayURL

public void SetDocumentDisplayURL(java.lang.String s)
Parameters:
s -

SetSoapServerURL

public void SetSoapServerURL(java.lang.String s)
Parameters:
s -

SetSharedFilesPath

public void SetSharedFilesPath(java.lang.String s)
Parameters:
s -

SetEnableAccountLocking

public void SetEnableAccountLocking(boolean b)
Parameters:
b -

SetEnableDebugSubportalRulesMode

public void SetEnableDebugSubportalRulesMode(boolean b)
Parameters:
b -

SetEnableDebugPortletErrorsMode

public void SetEnableDebugPortletErrorsMode(boolean b)
Parameters:
b -

SetMinutesToLockAccounts

public void SetMinutesToLockAccounts(int i)
Parameters:
s -

SetMinutesToTrackFailedLogins

public void SetMinutesToTrackFailedLogins(int i)
Parameters:
s -

SetNumberOfFailedLoginsAllowed

public void SetNumberOfFailedLoginsAllowed(int i)
Parameters:
s -

SetPrimaryWebServerURL

public void SetPrimaryWebServerURL(java.lang.String s)
Parameters:
s -

SaveMainPage

protected int SaveMainPage(XPHashtable _htFormData)
Saves the data on the Main page.

Parameters:
_htFormData -
Returns:
int Page status for server side validation

SavePortalUrlsPage

protected void SavePortalUrlsPage(XPHashtable _htFormData)
Parameters:
_htFormData -

UpdateLoginTokenKey

public void UpdateLoginTokenKey()

GetInviteCipherKey

public java.lang.String GetInviteCipherKey()
GetInviteCipherKey - the key used to encrypt the codes for CreateAccount invites

Returns:

SetInviteCipherKey

public void SetInviteCipherKey(java.lang.String sKey)
SetInviteCipherKey - the key used to encrypt the codes for CreateAccount invites

Parameters:
sKey -



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