IUserProfileLookup Interface
Interface class that describes functions that looks up and stores data
about if a user profile, identified by an ID (usually GUID), if they have
a public scopos profile.
Intended to fulfil the Dependency Injection pattern.
https://www.geeksforgeeks.org/dependency-injectiondi-design-pattern/#what-is-the-dependency-injection-method-design-pattern
| 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.
|
| 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.
|
| 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.
|
| 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.
|