use of org.apereo.portal.layout.profile.IProfileMapper in project uPortal by Jasig.
the class ProfileEvaluator method isApplicable.
@Override
public boolean isApplicable(IPerson person) {
final ApplicationContext applicationContext = ApplicationContextLocator.getApplicationContext();
final IPortalRequestUtils portalRequestUtils = applicationContext.getBean(IPortalRequestUtils.class);
final IProfileMapper profileMapper = applicationContext.getBean("profileMapper", IProfileMapper.class);
final HttpServletRequest request = portalRequestUtils.getCurrentPortalRequest();
final String currentFname = profileMapper.getProfileFname(person, request);
return profileFname.equals(currentFname);
}
Aggregations