/** Sets the user login time to the current time */ public void setLoginTimeAndUpdate() { secondToLastLoginTime = lastLoginTime; lastLoginTime = DateUtil.now(); doUpdateAndRetry(); Logger.debug( getClass().getCanonicalName() + " " + pk + " login time updated to " + lastLoginTime); }
/** Sets the user last access time to the current time */ public void setLastAccessTimeAndUpdate() { lastAccessTime = DateUtil.now(); doUpdateAndRetry(); Logger.debug( getClass().getCanonicalName() + " " + pk + " last access time updated to " + lastAccessTime); }