com.plumtree.portalpages.ext.providers.rap.profilesource
Class RemoteProfileSourceModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
          extended by com.plumtree.portalpages.admin.editors.profilesource.ProfileSourceModel
              extended by com.plumtree.portalpages.ext.providers.rap.profilesource.RemoteProfileSourceModel
All Implemented Interfaces:
IProfileSourceModelRO, IDescriptionModelRO, IMigrationModelRO, IObjEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class RemoteProfileSourceModel
extends ProfileSourceModel

This class implements the model for the Remote Profile Source editor

Author:
Mike Jahr

Field Summary
static int PMODE_CREATE
           
static int PMODE_EDIT
           
static int PMODE_INVALID
          The following static members define the possible modes this editor can be in.
static java.lang.String RAP_PROVIDER_CLSID
          The CLSID associated with this object type
static java.lang.String STR_MVC_CLASS_NAME
          The unique identifier for this class
 
Fields inherited from class com.plumtree.portalpages.admin.editors.profilesource.ProfileSourceModel
m_arrOriginalPropMapInfo, m_arrPropMapInfo, m_asAuthPartners, m_nPartnerID, m_sProviderCLSID, m_strUniqueKeyPropertyName, m_sUniqueKeyTreePickerSpaceID, MAPLIST_NUMCOLUMNS, MAPLIST_PTOBJECTPOSITION
 
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
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
RemoteProfileSourceModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Retrieves the Web Service ID and initializes the Data Source.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskBeforeStore()
          Code executed before the object is stored.
 void DoTaskOnStartEditor(XPHashtable _htFormData)
          Code executed when the Editor is starting.
 int GetCreatorID()
          Returns the creatorID.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.Object[][] GetPartnerQueryFilter()
          Method for retrieving the partner query method
 int GetPMode()
          Returns the nPMode.
 java.lang.String GetPropertyMapInstructions()
           
 java.lang.String GetProviderCLSID()
          Returns the ProviderCLSID
 boolean IsPartnerMandatory()
          Returns true if the partner is mandatory
 boolean IsPartnerSupported()
          Returns true if Partner is supported
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetMemberVariablesFromQS(XPHashtable _htFormData)
          Helper method for the StartEditor method.
 
Methods inherited from class com.plumtree.portalpages.admin.editors.profilesource.ProfileSourceModel
ClearHistory, DoTaskAfterStore, DoTaskOnComeBackFromSubEditor, Error, GetPartnerList, GetPropName, GetSelectedPartner, GetUniqueKey, GetUniqueKeyPickerSpaceID, GetUniqueKeyPropertyName, GetUserProperties, GetUserProperties, InitAuthPartners, PopulateSelectPTObject, PropertyMapHasChanged, SaveMainPage, SavePropMapPage, SetSelectedPartner, SetUniqueKey, StartPropMapList, StartSelectPTObject
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
CheckEditorAccess, CheckFolderType, DisableSecurity, Finish, ForceSaveInFolder, GetClassID, GetFolderID, GetFolderName, GetIsSysAdmin, GetMigrationStatus, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession, Init, InitIsSysAdminFlag, InitPTObject, IsDescriptionDisabled, IsMigrationApproved, SaveMigrationStatus, SetDisableDescription, SetEditorToReadOnly, SetMigrationStatus, StartKeywords, StartLocNamesList, StartMigrationHistory, StartObjectProp, StartSecurityList, StoreObject
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskOnChangePage, 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.portaluiinfrastructure.editor.IObjEditorModelRO
GetClassID, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession
 
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
The unique identifier for this class

See Also:
Constant Field Values

RAP_PROVIDER_CLSID

public static final java.lang.String RAP_PROVIDER_CLSID
The CLSID associated with this object type

See Also:
Constant Field Values

PMODE_INVALID

public static final int PMODE_INVALID
The following static members define the possible modes this editor can be in.

See Also:
Constant Field Values

PMODE_CREATE

public static final int PMODE_CREATE
See Also:
Constant Field Values

PMODE_EDIT

public static final int PMODE_EDIT
See Also:
Constant Field Values
Constructor Detail

RemoteProfileSourceModel

public RemoteProfileSourceModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Retrieves the Web Service ID and initializes the Data Source.

Overrides:
CheckEditorAccessAndStart in class ObjEditorModel
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()

DoTaskBeforeStore

public void DoTaskBeforeStore()
Code executed before the object is stored.

Overrides:
DoTaskBeforeStore in class ProfileSourceModel

DoTaskOnStartEditor

public void DoTaskOnStartEditor(XPHashtable _htFormData)
Code executed when the Editor is starting.

Overrides:
DoTaskOnStartEditor in class ProfileSourceModel
Parameters:
_htFormData -

GetName

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

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

GetPartnerQueryFilter

public java.lang.Object[][] GetPartnerQueryFilter()
Description copied from class: ProfileSourceModel
Method for retrieving the partner query method

Specified by:
GetPartnerQueryFilter in interface IProfileSourceModelRO
Specified by:
GetPartnerQueryFilter in class ProfileSourceModel
Returns:

GetProviderCLSID

public java.lang.String GetProviderCLSID()
Description copied from class: ProfileSourceModel
Returns the ProviderCLSID

Specified by:
GetProviderCLSID in interface IProfileSourceModelRO
Specified by:
GetProviderCLSID in class ProfileSourceModel
Returns:

IsPartnerMandatory

public boolean IsPartnerMandatory()
Description copied from class: ProfileSourceModel
Returns true if the partner is mandatory

Specified by:
IsPartnerMandatory in class ProfileSourceModel
Returns:

IsPartnerSupported

public boolean IsPartnerSupported()
Description copied from class: ProfileSourceModel
Returns true if Partner is supported

Specified by:
IsPartnerSupported in interface IProfileSourceModelRO
Specified by:
IsPartnerSupported in class ProfileSourceModel
Returns:

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
Overrides:
SavePage in class ProfileSourceModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

GetPropertyMapInstructions

public java.lang.String GetPropertyMapInstructions()
Specified by:
GetPropertyMapInstructions in interface IProfileSourceModelRO
Specified by:
GetPropertyMapInstructions in class ProfileSourceModel
Returns:
See Also:
IProfileSourceModelRO.GetPropertyMapInstructions()

SetMemberVariablesFromQS

public void SetMemberVariablesFromQS(XPHashtable _htFormData)
Description copied from class: ObjEditorModel
Helper method for the StartEditor method. Fill out the member variables with data from QS.

Overrides:
SetMemberVariablesFromQS in class ObjEditorModel
See Also:
ObjEditorModel.SetMemberVariablesFromQS(XPHashtable)

GetPMode

public int GetPMode()
Returns the nPMode.

Returns:
int

GetCreatorID

public int GetCreatorID()
Returns the creatorID.

Returns:
int



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