//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endregion #region Select Token User Update methods. // ================================================================================== /// <summary> /// This method gets generates the page object for the UniFORM client. /// </summary> /// <param name="TokenUserProfile">Evado.Model.EusTokenUserProfile object</param> /// <returns>String</returns> /// <remarks> /// This method consists of the following steps: /// /// 1. /// </remarks> // ---------------------------------------------------------------------------------- public EvEventCodes UpdateTokenUserProfile ( Evado.Model.EusTokenUserProfile TokenUserProfile ) { this.LogMethod ( "UpdateTokenUserProfile" ); this.LogValue ( "LoggingLevel: " + this.LoggingLevel ); try { // // Initialise the Evado clinical adapter object. // this._ApplicationAdapter = new Evado.Digital.Adapter.EuAdapter ( this._ClientVersion, this._GlobalObjects, this._ServiceUserProfile, this._ExitCommand, this._ApplicationPath, this._UniForm_BinaryFilePath, this._UniForm_BinaryServiceUrl ); this._ApplicationAdapter.LoggingLevel = this.LoggingLevel; this.LogValue ( "ApplicationAdapter.LoggingLevel: " + this._ApplicationAdapter.LoggingLevel ); // // Call the adapter token user update method. // EvEventCodes result = this._ApplicationAdapter.UpdateTokenUserProfile ( TokenUserProfile ); this.LogApplication ( this._ApplicationAdapter.AdapterLog ); this.LogMethodEnd ( "UpdateTokenUserProfile" ); return result; } catch ( Exception Ex ) { this.LogException ( Ex ); } this.LogMethodEnd ( "UpdateTokenUserProfile" ); return EvEventCodes.Token_User_Profile_Update_Error; }//END UpdateTokenUserProfile method
}//END getPageObject Method //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endregion #region Private class methods // ================================================================================== /// <summary> /// This method selects the application object to be be processed. /// </summary> /// <param name="PageCommand">ClientPageCommand object: containing the groupCommand that /// is called on web service</param> /// <returns>ClientApplicationData</returns> // ---------------------------------------------------------------------------------- private AppData getObjectData ( Command PageCommand ) { this.LogMethod ( "getDataObject method. " ); this.LogValue ( "ClientVersion: " + this._ClientVersion ); this.LogValue ( "PageCommand " + PageCommand.getAsString ( false, false ) ); this.LogValue ( "Exit Command: " + this._ExitCommand.getAsString ( false, false ) ); // // Initialise the methods variables and objects. // AppData clientDataObject = new AppData ( ); try { // // Initialise the Evado clinical adapter object. // this._ApplicationAdapter = new Evado.Digital.Adapter.EuAdapter ( this._ClientVersion, this._GlobalObjects, this._ServiceUserProfile, this._ExitCommand, this._ApplicationPath, this._UniForm_BinaryFilePath, this._UniForm_BinaryServiceUrl ); this._ApplicationAdapter.LoggingLevel = this.LoggingLevel; this.LogValue ( "ApplicationAdapter.LoggingLevel: " + this._ApplicationAdapter.LoggingLevel ); this.LogValue ( "PageCommand.Method: " + PageCommand.Method ); // // if the page is a custom groupCommand reset it to the customcommang parameter if it not null // if ( PageCommand.Method == ApplicationMethods.Custom_Method && PageCommand.getCustomMethod ( ) != ApplicationMethods.Null ) { PageCommand.Method = PageCommand.getCustomMethod ( ); this.LogValue ( "ApplicationMethod reset to " + PageCommand.Method.ToString ( ) ); } // // If not found create a new object and add it to the list then return it. // switch ( PageCommand.ApplicationId ) { case Evado.Digital.Adapter.EuAdapter.ADAPTER_ID: { this.LogValue ( "SELECTING APPLICATION AppId: '" + PageCommand.ApplicationId + "'" + " >> CALLING ECLINICAL APPLICATION" ); // // Call the get page method to generate the next page. // clientDataObject = this._ApplicationAdapter.getPageObject ( PageCommand ); if ( this._ErrorMessage != String.Empty ) { clientDataObject.Message = this._ErrorMessage; } this._GlobalObjects = this._ApplicationAdapter.GlobalObjectList; this.LogApplication ( this._ApplicationAdapter.AdapterLog ); this.LogValue ( "IntegrationServices.GlobalObject count: " + this._GlobalObjects.Count ); this.LogValue ( "RETURN APPLICATION DATA OBJECT " ); this.LogValue ( " - ID: " + clientDataObject.Id ); this.LogValue ( " - Title: " + clientDataObject.Title ); if ( clientDataObject.Page.Exit != null ) { this.LogValue ( " - ExitCommand: " + clientDataObject.Page.Exit.getAsString ( false, false ) ); } this.LogValue ( " - Message: " + clientDataObject.Message ); // // Return the instance to the list.initialisation method // return clientDataObject; } default: { this.LogValue ( ">> GETTING DEFAULT PAGE. " ); // // get the default page // return this.getDefaultPage ( PageCommand ); } } } catch ( Exception Ex ) { EvApplicationEvents.LogError ( this._EventLogSource, Evado.Model.EvStatics.getException ( Ex ) ); this._ErrorMessage = "UniFORM service application error."; } return getDefaultPage ( PageCommand ); }//END CallApplicationObject Method