Class CQ.shared.User
| Package: | CQ.shared |
| Class: | User |
| Extends: | Object |
| Clientlib: | cq.shared |
A helper class providing information about a CQ user.
This class is a singleton and cannot be created directly.
Public Properties
| |
User.PROXY_URI : String
<static> The URI to retrieve the user info from (defaults to "/libs/cq/security/userinfo.json").
|
User |
Public Methods
| |
getLanguage() : String
Returns the language selected by the user.
Returns the language selected by the user.
|
User |
| |
init( [Object infoData], Boolean force ) : Object
Instantly initializes the user via a request to server or the provided infoData if it has not already been initialized.
Instantly initializes the user via a request to server or the provided infoData if it has not already been initialized.
Parameters:
Returns:
ObjectThe initialization data
|
User |
| |
isInitialized() : Boolean
Returns if the user has been initialized.
Returns if the user has been initialized.
|
User |
| |
lazyInit() : void
Initializes the user via a request to server only when user is used for the first time.
Initializes the user via a request to server only when user is used for the first time.
|
User |
Public Events
This class has no public events.