com.jalios.jcmsplugin.toppublications
Class TopPublicationsManager

java.lang.Object
  extended by com.jalios.jcmsplugin.toppublications.TopPublicationsManager
All Implemented Interfaces:
JPropertiesListener

public class TopPublicationsManager
extends Object
implements JPropertiesListener


Field Summary
static String REVISION
           
 
Method Summary
static TopPublicationsManager getInstance()
           
 int getReaderCountFrom(List<ReaderTracker> readerTrackerList, Date date)
          Returns the count of readers for a given publication from a given date.
 Set<Publication> getTrackedPublicationSet(Workspace ws)
          Returns all the tracked publications of the given workspace sorted by reader count.
 boolean isTracked(Class pubClass)
          Returns true if the given class is tracked.
 void propertiesChange(JProperties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Method Detail

getInstance

public static TopPublicationsManager getInstance()

getTrackedPublicationSet

public Set<Publication> getTrackedPublicationSet(Workspace ws)
Returns all the tracked publications of the given workspace sorted by reader count.

Parameters:
ws - the workspace
Returns:
all the tracked publications of the given workspace sorted by reader count.
Since:
TopPublications-1.2

getReaderCountFrom

public int getReaderCountFrom(List<ReaderTracker> readerTrackerList,
                              Date date)
Returns the count of readers for a given publication from a given date.

Parameters:
readerTrackerList - the list of readerTracker for this publication
date - The start date
Returns:
the count of readers for a given publication from a given date.
Since:
TopPublications-1.2

isTracked

public boolean isTracked(Class pubClass)
Returns true if the given class is tracked.

Parameters:
pubClass - the publication class.
Returns:
true if the given class is tracked.
Since:
TopPublications-1.2

propertiesChange

public void propertiesChange(JProperties properties)
Specified by:
propertiesChange in interface JPropertiesListener


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