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 int MAX_PASSWORD_LENGTH
           
static int MAXIMUM_PASSWORD_HISTORY
           
static int MIN_PASSWORD_LENGTH
           
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
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 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()
           
 int GetPasswordExpiration()
           
 int GetPasswordExpirationWarning()
           
 boolean GetPasswordIncludeCasing()
           
 boolean GetPasswordIncludeNumbers()
           
 boolean GetPasswordIncludePunctuation()
           
 int GetPasswordLength()
           
 boolean GetPasswordNoUserIDs()
           
 int GetPasswordReuseHistory()
           
 java.lang.String GetPrimaryWebServerURL()
           
 java.lang.Object[] GetServerSettings()
           
 java.lang.String GetSharedFilesPath()
           
 java.lang.String GetSoapServerURL()
           
 boolean HasMinutesToLockAccountsError()
           
 boolean HasMinutesToTrackFailedLoginsError()
           
 boolean HasNumberOfFailedLoginsAllowedError()
           
 boolean HasPasswordExpirationError()
           
 boolean HasPasswordExpirationWarningError()
           
 boolean HasPasswordLengthError()
           
 boolean HasPasswordReuseHistoryError()
           
 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 SaveGeneralPage(XPHashtable _htFormData)
          Saves the data on the General Settings page.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
protected  int SavePortalUrlsPage(XPHashtable _htFormData)
           
protected  int SaveUserSettingsPage(XPHashtable _htFormData)
          Saves the data on the User Settings page.
 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 SetPasswordExpiration(int _nPasswordExpiration)
           
 void SetPasswordExpirationWarning(int _nPasswordExpirationWarning)
           
 void SetPasswordIncludeCasing(boolean _bPasswordCasing)
           
 void SetPasswordIncludeNumbers(boolean _bPasswordNumbers)
           
 void SetPasswordIncludePunctuation(boolean _bPasswordPunctuation)
           
 void SetPasswordLength(int _nPasswordLength)
           
 void SetPasswordNoUserIDs(boolean _bPasswordNoUserIDs)
           
 void SetPasswordReuseHistory(int _nPasswordReuseHistory)
           
 void SetPrimaryWebServerURL(java.lang.String s)
           
 void SetSharedFilesPath(java.lang.String s)
           
 void SetSoapServerURL(java.lang.String s)
           
protected  void SetUIValidationError()
           
protected  void SetUIValidationError(java.lang.String _strError)
           
 void UpdateLoginTokenKey()
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, 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

MIN_PASSWORD_LENGTH

public static final int MIN_PASSWORD_LENGTH
See Also:
Constant Field Values

MAX_PASSWORD_LENGTH

public static final int MAX_PASSWORD_LENGTH
See Also:
Constant Field Values

MAXIMUM_PASSWORD_HISTORY

public static final int MAXIMUM_PASSWORD_HISTORY
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

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:

HasMinutesToLockAccountsError

public boolean HasMinutesToLockAccountsError()
Specified by:
HasMinutesToLockAccountsError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error on the MinutesToLockAccounts setting.

GetMinutesToTrackFailedLogins

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

HasMinutesToTrackFailedLoginsError

public boolean HasMinutesToTrackFailedLoginsError()
Specified by:
HasMinutesToTrackFailedLoginsError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error on the MinutesToTrackFailedLogins setting.

GetNumberOfFailedLoginsAllowed

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

HasNumberOfFailedLoginsAllowedError

public boolean HasNumberOfFailedLoginsAllowedError()
Specified by:
HasNumberOfFailedLoginsAllowedError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error on the NumberOfFailedLoginsAllowed setting.

GetPrimaryWebServerURL

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

GetPasswordLength

public int GetPasswordLength()
Specified by:
GetPasswordLength in interface ISetServerSettingsModelRO
Returns:
The minimum password length.

HasPasswordLengthError

public boolean HasPasswordLengthError()
Specified by:
HasPasswordLengthError in interface ISetServerSettingsModelRO
Returns:
whether or not there was an error in saving the minimum password length.

GetPasswordIncludeNumbers

public boolean GetPasswordIncludeNumbers()
Specified by:
GetPasswordIncludeNumbers in interface ISetServerSettingsModelRO
Returns:
Whether or not numbers are required in the passwords.

GetPasswordIncludeCasing

public boolean GetPasswordIncludeCasing()
Specified by:
GetPasswordIncludeCasing in interface ISetServerSettingsModelRO
Returns:
Whether or not both upper and lower case letters are required in the passwords.

GetPasswordIncludePunctuation

public boolean GetPasswordIncludePunctuation()
Specified by:
GetPasswordIncludePunctuation in interface ISetServerSettingsModelRO
Returns:
Whether or not punctuation is required in the passwords.

GetPasswordNoUserIDs

public boolean GetPasswordNoUserIDs()
Specified by:
GetPasswordNoUserIDs in interface ISetServerSettingsModelRO
Returns:
Whether or not user IDs should be dissalowed in the passwords.

GetPasswordReuseHistory

public int GetPasswordReuseHistory()
Specified by:
GetPasswordReuseHistory in interface ISetServerSettingsModelRO
Returns:
The number of passwords to keep in history to check for reuse.

HasPasswordReuseHistoryError

public boolean HasPasswordReuseHistoryError()
Specified by:
HasPasswordReuseHistoryError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error in saving the number of passwords to keep in history to check for reuse.

GetPasswordExpiration

public int GetPasswordExpiration()
Specified by:
GetPasswordExpiration in interface ISetServerSettingsModelRO
Returns:
The password expiration in days.

HasPasswordExpirationError

public boolean HasPasswordExpirationError()
Specified by:
HasPasswordExpirationError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error in saving the password expiration in days.

GetPasswordExpirationWarning

public int GetPasswordExpirationWarning()
Specified by:
GetPasswordExpirationWarning in interface ISetServerSettingsModelRO
Returns:
The password expiration warning in days.

HasPasswordExpirationWarningError

public boolean HasPasswordExpirationWarningError()
Specified by:
HasPasswordExpirationWarningError in interface ISetServerSettingsModelRO
Returns:
Whether or not there was an error in saving the password expiration warning in days.

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 -

SetPasswordLength

public void SetPasswordLength(int _nPasswordLength)
Parameters:
_nPasswordLength - The minimum password length

SetPasswordIncludeNumbers

public void SetPasswordIncludeNumbers(boolean _bPasswordNumbers)
Parameters:
_bPasswordNumbers - Whether or not numbers are required in the passwords.

SetPasswordIncludeCasing

public void SetPasswordIncludeCasing(boolean _bPasswordCasing)
Parameters:
_bPasswordCasing - Whether or not both upper and lower case letters are required in the passwords.

SetPasswordIncludePunctuation

public void SetPasswordIncludePunctuation(boolean _bPasswordPunctuation)
Parameters:
_bPasswordPunctuation - Whether or not punctuation is required in the passwords.

SetPasswordNoUserIDs

public void SetPasswordNoUserIDs(boolean _bPasswordNoUserIDs)
Parameters:
_bPasswordNoUserIDs - Whether or not user IDs should be dissalowed in the passwords.

SetPasswordReuseHistory

public void SetPasswordReuseHistory(int _nPasswordReuseHistory)
Parameters:
_nPasswordReuseHistory - The number of passwords to keep in history to check for reuse.

SetPasswordExpiration

public void SetPasswordExpiration(int _nPasswordExpiration)
Parameters:
_nPasswordExpiration - The password expiration in days.

SetPasswordExpirationWarning

public void SetPasswordExpirationWarning(int _nPasswordExpirationWarning)
Parameters:
_nPasswordExpirationWarning - The password expiration warning in days.

SaveUserSettingsPage

protected int SaveUserSettingsPage(XPHashtable _htFormData)
Saves the data on the User Settings page.

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

SaveGeneralPage

protected int SaveGeneralPage(XPHashtable _htFormData)
Saves the data on the General Settings page.

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

SavePortalUrlsPage

protected int SavePortalUrlsPage(XPHashtable _htFormData)
Parameters:
_htFormData -

SetUIValidationError

protected void SetUIValidationError()

SetUIValidationError

protected void SetUIValidationError(java.lang.String _strError)

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 -

GetName

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

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



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