Package de.iritgo.aktario.core.user

Examples of de.iritgo.aktario.core.user.AktarioUser


        user.setField("uid", new Integer(userId));

        if (user.find())
        {
          AktarioUser aktarioUser = aktarioUsers.getUserByName(user.getFieldString("name"));

          if (aktarioUser != null)
          {
            aktarioUserManager.delUser(aktarioUser);
          }
View Full Code Here


    String newEmail = event.getProperties().getProperty("newEmail");

    AktarioUserManager aktarioUserManager = (AktarioUserManager) Engine.instance().getManager("AktarioUserManager");
    AktarioUserRegistry aktarioUserRegistry = aktarioUserManager.getUserRegistry();

    AktarioUser aktarioUser = aktarioUserRegistry.getUserByName(oldName);

    if (aktarioUser != null)
    {
      aktarioUser.setAttribute("name", newName);

      if (StringTools.isNotTrimEmpty(newEmail))
      {
        aktarioUser.setEmail(newEmail);
      }

      if (StringTools.isNotTrimEmpty(newFirstName) || StringTools.isNotTrimEmpty(newLastName))
      {
        StringBuilder newFullName = new StringBuilder(StringTools.trim(newFirstName));

        StringTools.appendWithDelimiter(newFullName, StringTools.trim(newLastName), " ");
        aktarioUser.setFullName(newFullName.toString());
      }

      aktarioUserManager.modifyUser(aktarioUser, oldName);
    }
  }
View Full Code Here

TOP

Related Classes of de.iritgo.aktario.core.user.AktarioUser

Copyright © 2018 www.massapicom. 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.