com.fatwire.assetapi.site
Class UserLoggedInInfo

java.lang.Object
  extended by BaseTable
      extended by com.fatwire.assetapi.site.UserLoggedInInfo

public class UserLoggedInInfo
extends BaseTable

This class is used by the WEM framework to log the last logged in time for the user.This class uses the same table "UIUserLoggedInDetails" to log the time as the dash uses to log the last logged in time (to dash) and the last edited asset by the user. These two class differ in their functionality in terms of site which will always be 0 for WEM and will have value of pub id when logged by dash. Dash UI also logs the last edited asset id for the user in the logged in site which this class doesn't care about and always inserts null for asset id.


Constructor Summary
UserLoggedInInfo(ICS ics)
           
 
Method Summary
 void addlastLoggedIn(User user)
          Updates the last logged in time in the UIUserLoggedInDetails table for the first time.
 java.lang.String getUserColumnValue(User user, java.lang.String columnName)
          Get the column value from the UIUserLoggedInDetails table for the given user and the column name.
 void populateLastLoggedInDetails(User user)
          This method populates the last logged in time in the user object
 void updateLastLoggedIn(User user)
          Updates the last logged in time in the UIUserLoggedInDetails table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLoggedInInfo

public UserLoggedInInfo(ICS ics)
Method Detail

populateLastLoggedInDetails

public void populateLastLoggedInDetails(User user)
This method populates the last logged in time in the user object

Parameters:
user -

updateLastLoggedIn

public void updateLastLoggedIn(User user)
Updates the last logged in time in the UIUserLoggedInDetails table.

Parameters:
user -

addlastLoggedIn

public void addlastLoggedIn(User user)
Updates the last logged in time in the UIUserLoggedInDetails table for the first time.

Parameters:
user -

getUserColumnValue

public java.lang.String getUserColumnValue(User user,
                                           java.lang.String columnName)
Get the column value from the UIUserLoggedInDetails table for the given user and the column name.

Parameters:
user -
columnName -


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.