com.jalios.jcms.tracking
Class ReaderTrackerManager

java.lang.Object
  extended by com.jalios.jcms.tracking.ReaderTrackerManager
All Implemented Interfaces:
DBConstants

public class ReaderTrackerManager
extends Object
implements DBConstants


Field Summary
static String REVISION
           
 
Fields inherited from interface com.jalios.jcms.db.DBConstants
AUTHOR_ID_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, DBDATA_URID, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_WORKSPACE_ID, MDATE_FIELD, ROW_ID_FIELD, WORKSPACE_ID_FIELD
 
Method Summary
 void anonymizeAllReaderTracker(Member mbr)
           
 int getAccessCount(List<ReaderTracker> list)
          Returns the sum of access count for the list of ReaderTracker.
 int getAccessCount(Publication pub)
          Returns the sum of access count for the given publication.
static ReaderTrackerManager getInstance()
           
 int getReaderCount(Publication pub)
          Returns the reader count for the given publication.
 ReaderTracker getReaderTracker(Publication pub, Member mbr)
          Returns the ReaderTracker for the given Publication and the given Member.
 List getReaderTrackerList(Publication pub)
          Returns the reader list for the given publication.
 boolean isReader(Publication pub, Member mbr)
          Returns true if the given publication has been read by the given member.
 void removeAllReaderTracker(Member mbr, boolean anonymize)
          Removes all the ReaderTracekr bound to the given member ; and optionally report all the access of this member as anonymous access.
 void removeAllReaderTracker(Publication pub)
          Removes all the ReaderTracker bound to the given publication.
 void track(Publication pub, Member mbr)
          Tracks the given member for the given publication.
 
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 ReaderTrackerManager getInstance()

getReaderCount

public int getReaderCount(Publication pub)
Returns the reader count for the given publication.

Parameters:
pub - the publication
Returns:
the reader count for the given publication.
Since:
jcms-6.0.0

getReaderTrackerList

public List getReaderTrackerList(Publication pub)
Returns the reader list for the given publication.

Parameters:
pub - the publication
Returns:
the reader list for the given publication.
Since:
jcms-6.0.0

getReaderTracker

public ReaderTracker getReaderTracker(Publication pub,
                                      Member mbr)
Returns the ReaderTracker for the given Publication and the given Member.

Parameters:
pub - the publication
mbr - the member
Returns:
the ReaderTracker for the given Publication and the given Member.
Since:
jcms-6.0.0

getAccessCount

public int getAccessCount(Publication pub)
Returns the sum of access count for the given publication.

Parameters:
pub - the publication.
Returns:
the sum of access count for the given publication.
Since:
jcms-6.0.0

getAccessCount

public int getAccessCount(List<ReaderTracker> list)
Returns the sum of access count for the list of ReaderTracker.

Parameters:
list - a list of ReaderTracker
Returns:
the sum of access count for the list of ReaderTracker.
Since:
jcms-6.0.0

isReader

public boolean isReader(Publication pub,
                        Member mbr)
Returns true if the given publication has been read by the given member.

Parameters:
pub - the publication
mbr - the member
Returns:
true if the given publication has been read by the given member.
Since:
jcms-6.0.0

track

public void track(Publication pub,
                  Member mbr)
Tracks the given member for the given publication.

Parameters:
pub - the publication
mbr - the reader to be tracked (may be null)
Since:
jcms-6.0.0

removeAllReaderTracker

public void removeAllReaderTracker(Publication pub)
Removes all the ReaderTracker bound to the given publication.

Parameters:
pub - the publication
Since:
jcms-6.0.0

removeAllReaderTracker

public void removeAllReaderTracker(Member mbr,
                                   boolean anonymize)
Removes all the ReaderTracekr bound to the given member ; and optionally report all the access of this member as anonymous access.

Parameters:
mbr - the member
anonymize - if true report all the access of this member as anonymous access.
Since:
jcms-6.0.0

anonymizeAllReaderTracker

public void anonymizeAllReaderTracker(Member mbr)


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