예제 #1
0
 /** 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);
 }
예제 #2
0
 /** 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);
 }