Examples of findIdentityByName()


Examples of org.olat.basesecurity.Manager.findIdentityByName()

  public void testUmFindCharsetPropertyByIdentity() throws Exception{
     UserManager um = UserManager.getInstance();
     User testuser = um.loadUserByKey(u1.getKey());
    
     Manager sm = ManagerFactory.getManager();
     Identity identity = sm.findIdentityByName(u1.getProperty(UserConstants.LASTNAME, null));
    
     um.setUserCharset(identity, WebappHelper.getDefaultCharset());

     DBFactory.getInstance().closeSession(); // simulate user clicks
     String charset = um.getUserCharset(identity);
View Full Code Here

Examples of org.olat.core.id.IdentityManager.findIdentityByName()

    String feedback = request.getParameter("textarea");
    String errorNr = feedback.substring(0, feedback.indexOf("\n") - 1);
    String username = request.getParameter("username");
    try {
            IdentityManager im = (IdentityManager)CoreSpringFactory.getBean("core.id.IdentityManager");
      Identity ident = im.findIdentityByName(username);
      //if null, user may crashed befor getting a valid session, try with guest user instead
      if (ident == null) ident = im.findIdentityByName("guest");
      Emailer emailer = new Emailer(ident, true);
      LogFile lf = new LogFile();
      Date d = new Date();
View Full Code Here

Examples of org.olat.core.id.IdentityManager.findIdentityByName()

    String username = request.getParameter("username");
    try {
            IdentityManager im = (IdentityManager)CoreSpringFactory.getBean("core.id.IdentityManager");
      Identity ident = im.findIdentityByName(username);
      //if null, user may crashed befor getting a valid session, try with guest user instead
      if (ident == null) ident = im.findIdentityByName("guest");
      Emailer emailer = new Emailer(ident, true);
      LogFile lf = new LogFile();
      Date d = new Date();
      SimpleDateFormat year = new SimpleDateFormat("yyyy");
      SimpleDateFormat month = new SimpleDateFormat("MM");
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.