Examples of PasswordTracker


Examples of com.liferay.portal.model.PasswordTracker

      Date now = new Date();

      Iterator itr = PasswordTrackerUtil.findByUserId(userId).iterator();

      while (itr.hasNext()) {
        PasswordTracker passwordTracker = (PasswordTracker)itr.next();

        Date recycleDate = new Date(
          passwordTracker.getCreateDate().getTime() +
          Time.DAY * passwordsRecycle);

        if (recycleDate.after(now)) {
          if (passwordTracker.getPassword().equals(newEncPwd)) {
            return false;
          }
        }
      }
    }
View Full Code Here

Examples of com.liferay.portal.model.PasswordTracker

    throws PortalException, SystemException {

    String passwordTrackerId = Long.toString(CounterManagerUtil.increment(
      PasswordTracker.class.getName()));

    PasswordTracker passwordTracker =
      PasswordTrackerUtil.create(passwordTrackerId);

    passwordTracker.setUserId(userId);
    passwordTracker.setCreateDate(new Date());
    passwordTracker.setPassword(encPwd);

    PasswordTrackerUtil.update(passwordTracker);
  }
View Full Code Here

Examples of com.liferay.portal.model.PasswordTracker

    }
    else if (passwordTrackerId == null) {
      return null;
    }
    else {
      PasswordTracker obj = null;
      String key = passwordTrackerId.toString();

      if (Validator.isNull(key)) {
        return null;
      }
View Full Code Here

Examples of com.liferay.portal.model.PasswordTracker

    }
    else if (passwordTrackerId == null) {
      return null;
    }
    else {
      PasswordTracker obj = null;
      String key = passwordTrackerId.toString();

      if (Validator.isNull(key)) {
        return null;
      }
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.