com.plumtree.portalpages.admin.editors.remoteserver
Class RemoteServerModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
          extended by com.plumtree.portalpages.admin.editors.remoteserver.RemoteServerModel
All Implemented Interfaces:
IRemoteServerModelRO, IDescriptionModelRO, IMigrationModelRO, IObjEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class RemoteServerModel
extends ObjEditorModel
implements IRemoteServerModelRO

Author:
adolfoc

Field Summary
static int AUTHTYPE_ADMIN
           
static int AUTHTYPE_NONE
          The following statics are used by the Section as values returned by the Authentication Type radio buttons.
static int AUTHTYPE_USER
           
static java.lang.String NULL_PASSWORD
          This string is used in lieu of returning the actual password to the client.
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
EDITOR_CLASSID_UNKNOWN, EDITOR_FOLDERID_UNKNOWN, EDITOR_OBJECTID_UNKNOWN, EDITOR_QS_BOL_QS_FORCESAVEINFOLDER, EDITOR_QS_INT_CLASS_ID, EDITOR_QS_INT_QS_FOLDER_ID, EDITOR_QS_INT_QS_OBJECT_ID, m_bDisableDescription, m_bDisableSecurity, m_bForceSavedInSuppliedFolder, m_bIsSysAdmin, m_nClassID, m_nFolderID, m_nFolderType, m_nObjectID, m_ptObject, m_Session, m_sFolderName, OBJECT_NAME_TRUNCATE
 
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
RemoteServerModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskBeforeStore()
          That method contains the code that should be executed just before the object is stored in the DB.
 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.
 IASQueryResult GetAssocWebServices()
          Returns a QueryResult of all of the Associated Web Services
 int GetAuthType()
          Returns the strAuthTypeRadio.
 java.lang.String GetBaseURL()
          Returns the strBaseURL.
 java.lang.String GetLoginName()
          Returns the strLoginName.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetPublicKey()
          Returns the public key.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetAuthType(int intAuthTypeRadio)
          Sets the strAuthTypeRadio.
 void SetBaseURL(java.lang.String strBaseURL)
          Sets the strBaseURL.
 void SetLoginName(java.lang.String strLoginName)
          Sets the strLoginName.
 void SetPassword(java.lang.String strPassword)
          Sets the strPassword.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
CheckEditorAccess, CheckEditorAccessAndStart, CheckFolderType, DisableSecurity, DoTaskOnComeBackFromSubEditor, Finish, ForceSaveInFolder, GetClassID, GetFolderID, GetFolderName, GetIsSysAdmin, GetMigrationStatus, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession, Init, InitIsSysAdminFlag, InitPTObject, IsDescriptionDisabled, IsMigrationApproved, SaveMigrationStatus, SetDisableDescription, SetEditorToReadOnly, SetMemberVariablesFromQS, SetMigrationStatus, StartKeywords, StartLocNamesList, StartMigrationHistory, StartObjectProp, StartSecurityList, StoreObject
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskOnChangePage, 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.portaluiinfrastructure.editor.IObjEditorModelRO
GetClassID, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession
 
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

AUTHTYPE_NONE

public static final int AUTHTYPE_NONE
The following statics are used by the Section as values returned by the Authentication Type radio buttons. The HTMLRADIO_BASE_AUTH_TYPE input must return one and only one of these. The value of these is irrelevant - they merely must be unique and URL/HTML safe.

See Also:
Constant Field Values

AUTHTYPE_USER

public static final int AUTHTYPE_USER
See Also:
Constant Field Values

AUTHTYPE_ADMIN

public static final int AUTHTYPE_ADMIN
See Also:
Constant Field Values

NULL_PASSWORD

public static final java.lang.String NULL_PASSWORD
This string is used in lieu of returning the actual password to the client. If this string is unchanged - we will assume that the client has not changed the password and not reset it.

See Also:
Constant Field Values
Constructor Detail

RemoteServerModel

public RemoteServerModel()
Method Detail

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

DoTaskBeforeStore

public void DoTaskBeforeStore()
Description copied from class: EditorModel
That method contains the code that should be executed just before the object is stored in the DB.

Overrides:
DoTaskBeforeStore in class EditorModel
See Also:
EditorModel.DoTaskBeforeStore()

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
See Also:
com.plumtree.uiinfrastructure.editor.EditorModel#DoTaskOnStartEditor(_htFormData)

GetAssocWebServices

public IASQueryResult GetAssocWebServices()
Description copied from interface: IRemoteServerModelRO
Returns a QueryResult of all of the Associated Web Services

Specified by:
GetAssocWebServices in interface IRemoteServerModelRO
Returns:

GetAuthType

public int GetAuthType()
Returns the strAuthTypeRadio.

Specified by:
GetAuthType in interface IRemoteServerModelRO
Returns:
String

GetBaseURL

public java.lang.String GetBaseURL()
Returns the strBaseURL.

Specified by:
GetBaseURL in interface IRemoteServerModelRO
Returns:
String

GetLoginName

public java.lang.String GetLoginName()
Returns the strLoginName. Note that there is no getter for the Password (it is never sent back to the client).

Specified by:
GetLoginName in interface IRemoteServerModelRO
Returns:
String

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:
IMVCObject.GetName()

SavePage

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

Specified by:
SavePage in interface IRepostModel
Overrides:
SavePage in class ObjEditorModel
Returns:
int Page status for server side validation
See Also:
IRepostModel.SavePage(String, XPHashtable)

SetAuthType

public void SetAuthType(int intAuthTypeRadio)
Sets the strAuthTypeRadio.

Parameters:
strAuthTypeRadio - The strAuthTypeRadio to set

SetBaseURL

public void SetBaseURL(java.lang.String strBaseURL)
Sets the strBaseURL.

Parameters:
strBaseURL - The strBaseURL to set

SetLoginName

public void SetLoginName(java.lang.String strLoginName)
Sets the strLoginName.

Parameters:
strLoginName - The strLoginName to set

SetPassword

public void SetPassword(java.lang.String strPassword)
Sets the strPassword. Note that there is no getter for the Password.

Parameters:
strPassword - The strPassword to set

GetPublicKey

public java.lang.String GetPublicKey()
Description copied from interface: IRemoteServerModelRO
Returns the public key.

Specified by:
GetPublicKey in interface IRemoteServerModelRO
Returns:
String



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