CurrentUser
CurrentUser
Cross-platform class for current user data
current-user.js
This class is defined in the Flexmls namespace to provide
common client-side data needed to describe the current system
user. The initial implementation supports the MlsId
and Id attributes following the API's naming convention
for this data.
This code also defines a Flexmls.currentUser member
variable, initialized to null. It's the responsibility of the caller
to initialize the value to a new CurrentUser object, as
shown in the code sample below.
An initial use case of this setup is to support our WalkMe integration across platforms. In order to properly segment the availability of various WalkMe components based on MLS and user, there needs to be a common object from which WalkMe can derive user data.
Flexmls.currentUser = new Flexmls.CurrentUser({MlsId: serverSide.mlsTechId,
Id: serverSide.userTechId});