Created
April 7, 2015 14:11
-
-
Save yuchi/81475124d4b274224247 to your computer and use it in GitHub Desktop.
Liferay Connector Snippet #3 (session data)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You know the company you’re working with: | |
session.companyId = 4567; | |
// You have full user object | |
session.user = {}; | |
// and that includes: | |
session.user.userId = 5432; | |
session.user.screenName = 'pierpaolo.ramon'; | |
session.user.emailAddress = 'pierpaolo.ramon@smc.it'; | |
session.user.portraitId = 8765; | |
session.user.firstName = 'Pier Paolo'; | |
session.user.lastName = 'Ramon'; | |
// You also have an array of ‘sites‘ of the user | |
session.sites | |
session.sites[ 0 ].firendlyURL = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment