private IStylesheetDescriptor getCurrentUserProfileStyleSheetDescriptor( IPerson person, HttpServletRequest currentPortalRequest) { final String currentFname = profileMapper.getProfileFname(person, currentPortalRequest); IUserProfile profile = userLayoutStore.getSystemProfileByFname(currentFname); int profileId = profile.getThemeStylesheetId(); return stylesheetDescriptorDao.getStylesheetDescriptor(profileId); }
private IStylesheetDescriptor getCurrentUserProfileStyleSheetDescriptor( IPerson person, HttpServletRequest currentPortalRequest) { final String currentFname = profileMapper.getProfileFname(person, currentPortalRequest); IUserProfile profile = userLayoutStore.getSystemProfileByFname(currentFname); int profileId = profile.getThemeStylesheetId(); return stylesheetDescriptorDao.getStylesheetDescriptor(profileId); }
protected IUserProfile getUserProfile( HttpServletRequest request, IPerson person, LocaleManager localeManager, String userAgent) { final String profileFname = profileMapper.getProfileFname(person, request); IUserProfile userProfile = userLayoutStore.getUserProfileByFname(person, profileFname); if (userProfile == null) { userProfile = userLayoutStore.getSystemProfileByFname(profileFname); } if (localeManager != null && localeManagerFactory.isLocaleAware()) { userProfile.setLocaleManager(localeManager); } return userProfile; }
profile = userLayoutStore.getSystemProfileByFname(profile.getProfileFname());