Ejemplo n.º 1
0
        /// <summary>
        /// GetUserProfile retrieves the UserProfile information from the Data Store
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="user">The user whose Profile information we are retrieving.</param>
        /// <history>
        ///     [cnurse]	03/29/2006	Created
        /// </history>
        public override void GetUserProfile(ref UserInfo user)
        {
            int portalId;

            if (user.IsSuperUser)
            {
                portalId = Common.Globals.glbSuperUserAppName;
            }
            else
            {
                portalId = user.PortalID;
            }

            IDataReader dr = dataProvider.GetUserProfile(user.UserID);

            UserProfile objUserProfile = new UserProfile();

            GetProfileProperties(portalId, dr, objUserProfile);

            //Clear IsDirty Flag
            objUserProfile.ClearIsDirty();
            user.Profile = objUserProfile;
        }