API Questions on Kentico API.
Version 5.x > API > CMSContext data retrieval View modes: 
User avatar
Member
Member
bas.moises-accenture - 1/6/2012 3:14:00 AM
   
CMSContext data retrieval
Where does CMSContext pull its data from, specifically those which are related to a user's information?

User avatar
Member
Member
kentico_michal - 1/6/2012 3:58:04 AM
   
RE:CMSContext data retrieval
Hello,

If you mean the property CMSContext.CurrentUser then this property returns the CurrentUserInfo object based on the information about the current user that is stored in the session.

Best regards,
Michal Legen

User avatar
Member
Member
bas.moises-accenture - 1/6/2012 4:05:20 AM
   
RE:CMSContext data retrieval
My question was where exactly does it pull data. Is it from a system table, or cookies? Is there a way for us to see the code which actually pulls data for the CurrentUserInfo?

User avatar
Member
Member
kentico_michal - 1/6/2012 4:35:15 AM
   
RE:CMSContext data retrieval
Hello,

If you have s full source code of Kentico CMS you can take a look at the implementation of the CMSContext class.
The CurrentUserInfo class inherits from an UserInfo object that represent one record of CMS_User table. The API related to user's management can be found here: Managing users.The same API is used also to get the CurrentUserInfo - the UserInfoProvider.GetUserInfo method.

Best regards,
Michal Legen