}// Close GetUserByEmail method // ===================================================================================== /// <summary> /// GetUser method /// /// Description: /// Get the information for a user from ADS /// /// </summary> /// <param name="UserId">string</param> /// <returns>EvAdsUserProfile</returns> // ------------------------------------------------------------------------------------- public EvAdsUserProfile GetUserByPasswordResetToken(string token) { this.LogMethod("GetUserByPasswordResetToken method."); this.LogValue("token: " + token); this._evAdFacade.LogLevel = this._LogLevel; EvAdsUserProfile evUser; EvAdsCallResult callResult = this._evAdFacade.FindAdUserByPasswordResetToken(token, out evUser); if (callResult == EvAdsCallResult.Success) { return(evUser); } return(null); }// Close GetUserByEmail method
}// Close GetUser method // ===================================================================================== /// <summary> /// GetUser method /// /// Description: /// Get the information for a user from ADS /// /// </summary> /// <param name="UserId">string</param> /// <returns>EvAdsUserProfile</returns> // ------------------------------------------------------------------------------------- public EvAdsUserProfile GetUserByEmail(string Email) { this.LogMethod("GetUserByEmail method."); this.LogValue("Email: " + Email); EvAdsUserProfile evUser; this._evAdFacade.LogLevel = this._LogLevel; EvAdsCallResult callResult = this._evAdFacade.FindAdUserByEmail(Email, out evUser); if (callResult == EvAdsCallResult.Success) { return(evUser); } return(null); }// Close GetUserByEmail method
// ===================================================================================== /// <summary> /// GetUser method /// /// Description: /// Get the information for a user from ADS /// /// </summary> /// <param name="UserId">string</param> /// <returns>EvAdsUserProfile</returns> // ------------------------------------------------------------------------------------- public EvAdsUserProfile GetUser(string UserId) { this.LogMethod("GetUser method."); this.LogValue("UserId: " + UserId); EvAdsUserProfile evUser; this._evAdFacade.LogLevel = this._LogLevel; EvAdsCallResult callResult = this._evAdFacade.FindAdUserById(UserId, out evUser); if (callResult == EvAdsCallResult.Success) { return(evUser); } return(null); }// Close GetUser method
// ===================================================================================== /// <summary> /// saveItem method /// /// Description: /// Creates or Updates the user profile in the ADS. /// /// </summary> /// <param name="UserToSave">EvAdsUserProfile</param> /// <param name="UserToSave">EvAdsUserProfile</param> /// <param name="OutEvUser">EvAdsUserProfile</param> // ------------------------------------------------------------------------------------- public EvAdsCallResult setPassword( String SamAccountName, String Password) { this.LogMethod("setPassword method."); this.LogValue("SamAccountName: " + SamAccountName); this.LogValue("Password: "******"setPassword"); return(callResult); }