public long getDateLastVisitedBy(CmsRequestContext context, String poolName, CmsUser user, CmsResource resource)
    throws CmsException {

        CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
        long result = 0;
        try {
            result = m_driverManager.getDateLastVisitedBy(dbc, poolName, user, resource);
        } catch (Exception e) {
            dbc.report(
                null,
                Messages.get().container(
                    Messages.ERR_GET_DATE_LASTVISITED_2,
                    user.getName(),
                    context.getSitePath(resource)),
                e);
        } finally {
            dbc.clear();
        }
        return result;
    }
public long getDateLastVisitedBy ( CmsRequestContext context , String poolName , CmsUser user , CmsResource resource ) throws CmsException { CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; long result = 0 ; try { result = m_driverManager . getDateLastVisitedBy ( dbc , poolName , user , resource ) ; } catch ( Exception e ) { dbc . report ( null , Messages . get ( ) . container ( Messages . ERR_GET_DATE_LASTVISITED_2 , user . getName ( ) , context . getSitePath ( resource ) ) , e ) ; } finally { dbc . clear ( ) ; } return result ; }
Returns the date when the resource was last visited by the user.<p>

@param context the request context
@param poolName the name of the database pool to use
@param user the user to check the date
@param resource the resource to check the date

@return the date when the resource was last visited by the user

@throws CmsException if something goes wrong