com.jalios.jcms.tracking
Class ReaderTrackerEntry

java.lang.Object
  extended by com.jalios.jcms.tracking.ReaderTrackerEntry

public class ReaderTrackerEntry
extends Object

This class is used to display a list of merged ReaderTracker

Since:
jcms-8.0.0
Author:
bransard

Nested Class Summary
static class ReaderTrackerEntry.AccessCountComparator
          Sorts ReaderTrackerEntry by access count
static class ReaderTrackerEntry.FirstAccessDateComparator
          Sorts ReaderTrackerEntry by first access date Date
static class ReaderTrackerEntry.LastAccessDateComparator
          Sorts ReaderTrackerEntry by last access date Date
static class ReaderTrackerEntry.Sort
           
 
Field Summary
 int accessCount
           
 Date firstAccessDate
           
 Date lastAccessDate
           
 Member member
           
 
Constructor Summary
ReaderTrackerEntry(Member member, Date firstAccessDate, Date lastAccessDate, int accessCount)
           
ReaderTrackerEntry(ReaderTracker readerTracker)
          Builds a ReaderTrackerEntry from a ReaderTracker
 
Method Summary
static Comparator getComparator(Map map, ReaderTrackerEntry.Sort Sort, boolean isReverse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

member

public Member member

firstAccessDate

public Date firstAccessDate

lastAccessDate

public Date lastAccessDate

accessCount

public int accessCount
Constructor Detail

ReaderTrackerEntry

public ReaderTrackerEntry(Member member,
                          Date firstAccessDate,
                          Date lastAccessDate,
                          int accessCount)
Parameters:
member - the Member
firstAccessDate - the Date of first access
lastAccessDate - the Date of last access
accessCount - the count of access
Since:
jcms-8.0.0

ReaderTrackerEntry

public ReaderTrackerEntry(ReaderTracker readerTracker)
Builds a ReaderTrackerEntry from a ReaderTracker

Parameters:
readerTracker - the ReaderTracker
Since:
jcms-8.0.0
Method Detail

getComparator

public static Comparator getComparator(Map map,
                                       ReaderTrackerEntry.Sort Sort,
                                       boolean isReverse)
Parameters:
map - the Map of ReaderTrackerEntry
Sort - the ReaderTrackerEntry.Sort Enum
isReverse - true to reverse results
Returns:
the comparator to sort ReaderTrackerEntry


Copyright © 2001-2010 Jalios SA. All Rights Reserved.