Examples of OLATUserfieldsMapper


Examples of org.olat.shibboleth.util.OLATUserfieldsMapper

    }

    if (shibbolethAttributesMap == null)
      throw new AssertException("ShibbolethRegistrationController was unable to fetch ShibbolethAttribuitesMap from session.");

    userMapping = new OLATUserfieldsMapper(shibbolethAttributesMap);
    hasEmailInShibAttr = (userMapping.getEMail() == null) ? false : true;
   
    Locale locale = (Locale)ureq.getUserSession().getEntry(LocaleNegotiator.NEGOTIATED_LOCALE);
    if(locale == null) {
      String preferedLanguage = userMapping.getPreferedLanguage();
View Full Code Here

Examples of org.olat.shibboleth.util.OLATUserfieldsMapper

   */
  private boolean checkAttributes(Map<String, String>  attributesMap) {
    if(attributesMap.keySet().size()==1) {
      return false;
    }
    OLATUserfieldsMapper userMapping = new OLATUserfieldsMapper(attributesMap);
    String lastname = userMapping.getLastName();
    String firstname = userMapping.getFirstName();
    String email = userMapping.getEMail();
    String institutionalEMail = userMapping.getInstitutionalEMail();
    String institutionalName = userMapping.getInstitutionalName();
    //String institutionalUserIdentifier = userMapping.getInstitutionalUserIdentifier();
    if(lastname!=null && !lastname.equals("") && firstname!=null && !firstname.equals("") && email!=null && !email.equals("") &&
        institutionalEMail!=null && !institutionalEMail.equals("") && institutionalName!=null && !institutionalName.equals("")) {
      return true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.