com.plumtree.portalpages.admin.editors.webservice.plugins
Class AWSSettingsPluginModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.admin.editors.webservice.plugins.AWSSettingsPluginModel
All Implemented Interfaces:
IWSSubModel, IAWSSettingsPluginModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class AWSSettingsPluginModel
extends EditorHelperModel
implements IAWSSettingsPluginModelRO, IWSSubModel

Author:
adolfoc

Field Summary
static long DEFAULT_AUTH_SOAP_TIMEOUT
          This is the default soap timeout for Authentication - 30 seconds.
static long DEFAULT_SYNC_SOAP_TIMEOUT
          This is the default soap timeout for Synchronization - 5 minutes.
protected  PTDuration m_ptdAuthSOAPTimeout
          Timeout information for Authentication.
protected  PTDuration m_ptdSyncSOAPTimeout
          Timeout information for Synchronization.
static int NMASK_SUPPORTED_UNITS
          This mask is used by our view to send time data to us in units that we support.
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
AWSSettingsPluginModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskBeforeWSStore()
          Sub models are expected to store themselves to the ptWebService object passed in in InitWSModel during this call.
 void DoTaskOnRemoteServerUpdate(java.lang.String strRemoteServerID, java.lang.String strRemoteServerName, java.lang.String strRemoteServerBaseURL)
          Called when the Remote Server is changed.
 void DoTaskOnWSModeUpdate(int nNewWSMode)
          Called when the Web Service type is changed.
 PTDuration GetAuthDuration()
          Returns timeout setting for Authentication.
 java.lang.String GetAuthURL()
          The location of the Authentication URL for this Web Service.
 java.lang.String GetBaseURL()
           
 java.lang.String GetName()
          Returns the Class name.
 PTDuration GetSyncDuration()
          Returns timeout setting for Synchronization.
 java.lang.String GetSyncURL()
          The location of the Synchronization URL for this Web Service.
 java.lang.String GetValidationFunction()
          This returns the name of the client-side validation function that the model wants added to the page-level validation funtion.
 void InitWSModel(IPTWebService ptWebService)
          Initializes the sub-model.
 int SaveSection(XPHashtable _htFormData)
          Code to save the section represented by this Model.
 void SetAuthURL(java.lang.String strAuthURL)
          The location of the Authentication URL for this Web Service.
 void SetSyncURL(java.lang.String strSyncURL)
          The location of the Synchronization URL for this Web Service.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
CleanupAllData, CleanupTempData, Init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

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

NMASK_SUPPORTED_UNITS

public static final int NMASK_SUPPORTED_UNITS
This mask is used by our view to send time data to us in units that we support.

See Also:
Constant Field Values

DEFAULT_AUTH_SOAP_TIMEOUT

public static final long DEFAULT_AUTH_SOAP_TIMEOUT
This is the default soap timeout for Authentication - 30 seconds.

See Also:
Constant Field Values

DEFAULT_SYNC_SOAP_TIMEOUT

public static final long DEFAULT_SYNC_SOAP_TIMEOUT
This is the default soap timeout for Synchronization - 5 minutes.

See Also:
Constant Field Values

m_ptdAuthSOAPTimeout

protected PTDuration m_ptdAuthSOAPTimeout
Timeout information for Authentication.


m_ptdSyncSOAPTimeout

protected PTDuration m_ptdSyncSOAPTimeout
Timeout information for Synchronization.

Constructor Detail

AWSSettingsPluginModel

public AWSSettingsPluginModel()
Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorHelperModel
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 EditorHelperModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

DoTaskBeforeWSStore

public void DoTaskBeforeWSStore()
Description copied from interface: IWSSubModel
Sub models are expected to store themselves to the ptWebService object passed in in InitWSModel during this call.

Specified by:
DoTaskBeforeWSStore in interface IWSSubModel
See Also:
IWSSubModel.DoTaskBeforeWSStore()

DoTaskOnRemoteServerUpdate

public void DoTaskOnRemoteServerUpdate(java.lang.String strRemoteServerID,
                                       java.lang.String strRemoteServerName,
                                       java.lang.String strRemoteServerBaseURL)
Description copied from interface: IWSSubModel
Called when the Remote Server is changed. This is mostly used to update the base-url displayed before URL edit boxes.

Specified by:
DoTaskOnRemoteServerUpdate in interface IWSSubModel
See Also:
IWSSubModel.DoTaskOnRemoteServerUpdate(String, String, String)

DoTaskOnWSModeUpdate

public void DoTaskOnWSModeUpdate(int nNewWSMode)
Description copied from interface: IWSSubModel
Called when the Web Service type is changed.

Specified by:
DoTaskOnWSModeUpdate in interface IWSSubModel
See Also:
IWSSubModel.DoTaskOnWSModeUpdate(int)

GetAuthURL

public java.lang.String GetAuthURL()
The location of the Authentication URL for this Web Service.

Specified by:
GetAuthURL in interface IAWSSettingsPluginModelRO
Returns:

GetBaseURL

public java.lang.String GetBaseURL()
Specified by:
GetBaseURL in interface IAWSSettingsPluginModelRO
Returns:
See Also:
com.plumtree.portalpages.admin.editors.webservice.plugins.IAdminPrefsPluginModelRO#GetBaseURL()

GetAuthDuration

public PTDuration GetAuthDuration()
Returns timeout setting for Authentication.

Specified by:
GetAuthDuration in interface IAWSSettingsPluginModelRO
Returns:
PTDuration

GetSyncDuration

public PTDuration GetSyncDuration()
Returns timeout setting for Synchronization.

Specified by:
GetSyncDuration in interface IAWSSettingsPluginModelRO
Returns:
PTDuration

GetName

public java.lang.String GetName()
Description copied from class: EditorHelperModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorHelperModel
Returns:
String
See Also:
IMVCObject.GetName()

GetSyncURL

public java.lang.String GetSyncURL()
The location of the Synchronization URL for this Web Service.

Specified by:
GetSyncURL in interface IAWSSettingsPluginModelRO
Returns:

GetValidationFunction

public java.lang.String GetValidationFunction()
Description copied from interface: IWSSubModel
This returns the name of the client-side validation function that the model wants added to the page-level validation funtion. Models return null or "" if they don't have a validation function.

Specified by:
GetValidationFunction in interface IWSSubModel
See Also:
IWSSubModel.GetValidationFunction()

InitWSModel

public void InitWSModel(IPTWebService ptWebService)
Description copied from interface: IWSSubModel
Initializes the sub-model. Provides an opportunity for the submodel to load it's state from the WebService.

Specified by:
InitWSModel in interface IWSSubModel
See Also:
com.plumtree.portalpages.admin.editors.webservice.IWSSubModel#InitWSModel()

SaveSection

public int SaveSection(XPHashtable _htFormData)
Description copied from class: EditorHelperModel
Code to save the section represented by this Model.

Specified by:
SaveSection in class EditorHelperModel
Parameters:
_htFormData - Form posted data.
Returns:
int Status for server side validation
See Also:
EditorHelperModel.SaveSection(XPHashtable)

SetAuthURL

public void SetAuthURL(java.lang.String strAuthURL)
The location of the Authentication URL for this Web Service.


SetSyncURL

public void SetSyncURL(java.lang.String strSyncURL)
The location of the Synchronization URL for this Web Service.




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