For Babelfish Release 1.11.1.3

BaseUserProfileLookup Class

An in memory only implementation of the IUserProfileLookup interface. Intended for a) Unit testing b) Consumers that do not have access to the database that stores c) As a base class for a database implementatioon. the User Profile data.

Definition

Namespace: Scopos.BabelFish.DataActors.ResultListFormatter.UserProfile
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public class BaseUserProfileLookup : IUserProfileLookup
Inheritance
Object    BaseUserProfileLookup
Implements
IUserProfileLookup

Constructors

Methods

AccountURLLookUp Returns the passed in user's Account URL based on the passed in User Id. Returns null if the user doesn't have one, or if the Visibility is not public.
ClearCache Clears all records from the cache.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUserProfile Returns the complete User Profile Object, based on either the passed in Account URL or User ID (either values are accepted) Returns null if the user doesn't have one, or if the Visibility is not public.
HasPublicProfile Returns true, if the passed in id has a public profile page. User should call RefreshUserProfileVisibilityAsync() prior to calling this method to help ensure cache is udpated.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RefreshUserProfileVisibilityAsync Refreshes and updates the cache copy of the user_profile table. It is a best practice to call this method after constructing a UserProfileDB instance.
SetUserProfile Temporarily overrides the user profile values in the cache for the passed in user id. These values will remain active, until the next time the cache is updated from the database, which is every 15 mins or so.
ToStringReturns a string that represents the current object.
(Inherited from Object)
UserIdLookUp Returns the passed in user's User Id based on the passed in Account URL. Returns null if the user doesn't have one, or if the Visibility is not public.

Fields

See Also