Package com.centraview.administration.user

Examples of com.centraview.administration.user.User


      {
        typeOfSave = request.getParameter("buttonpress");
      }

      UserHome uhome = (UserHome)CVUtility.getHomeObject("com.centraview.administration.user.UserHome", "User");
      User uRemote = (User)uhome.create();
      uRemote.setDataSource(dataSource);
      String oldPassword = "", newPassword = "";
      // TODO integrate password change with RememberMe functionallity.
      if (uRemote != null)
      {
        oldPassword = (String)request.getParameter("oldpassword");
        newPassword = (String)request.getParameter("newpassword");
      }

      if (newPassword != null && newPassword.length() != 0)
      {
        try
        {
          uRemote.changePassword(individualId, oldPassword, newPassword);
        } catch (UserException ue) {
          if (ue.getExceptionId() == UserException.COULDNOT_CHANGE_PASSWORD)
          {
            allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm",
                "Error while updating login information, " + ue.getExceptionDescription()));
View Full Code Here


          "application. We suggest you change your password as\n" +
          "soon as you log in, and save it in a safe location";

          UserHome ab = (UserHome) CVUtility.getHomeObject(
          "com.centraview.administration.user.UserHome", "User");
          User remoteUser = (User) ab.create();
          remoteUser.setDataSource(dataSource);
          remoteUser.setNewPassword(individualID, rand);

          EmailSettingsHome emailSettingsHome = (EmailSettingsHome)CVUtility.getHomeObject("com.centraview.administration.emailsettings.EmailSettingsHome","EmailSettings");
          EmailSettings emailSettingsRemote = (EmailSettings)emailSettingsHome.create();
          emailSettingsRemote.setDataSource(dataSource);
View Full Code Here

        // the int representation for use in the code below
        userID = formUserID.intValue();
      }

      UserHome home = (UserHome)CVUtility.getHomeObject("com.centraview.administration.user.UserHome", "User");
      User remote = (User)home.create();
      remote.setDataSource(dataSource);

      UserVO userVO = remote.getCustomerUserFull(userID);

      String fullName = userVO.getFirstName() + " " + userVO.getLastName();
      userForm.set("individualName", fullName);
      userForm.set("username", userVO.getLoginName());
      userForm.set("title", userVO.getTitle());
View Full Code Here

        HashMap listMap = null;

        try {
          UserHome aa = (UserHome)CVUtility.getHomeObject(
              "com.centraview.administration.user.UserHome", "User");
          User remote = (User)aa.create();
          remote.setDataSource(this.dataSource);

          returnDL = remote.getUserList(userID, hm);
        } catch (Exception e) {
          System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
        }

        returnDL.setListType("USER");
View Full Code Here

    hm.put("sortType", new Character(paramDL.getSortType()));

    try {
      UserHome aa = (UserHome)CVUtility.getHomeObject(
          "com.centraview.administration.user.UserHome", "User");
      User remote = (User)aa.create();
      remote.setDataSource(this.dataSource);

      returnDL = remote.getUserList(userid, hm);
    } catch (Exception e) {
      System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
    }

    returnDL.setListType("USER");
View Full Code Here

TOP

Related Classes of com.centraview.administration.user.User

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.