|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.tracking.ReaderTrackerManager
public class ReaderTrackerManager
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 |
---|
public static final String REVISION
Method Detail |
---|
public static ReaderTrackerManager getInstance()
public int getReaderCount(Publication pub)
pub
- the publication
public List getReaderTrackerList(Publication pub)
pub
- the publication
public ReaderTracker getReaderTracker(Publication pub, Member mbr)
pub
- the publicationmbr
- the member
public int getAccessCount(Publication pub)
pub
- the publication.
public int getAccessCount(List<ReaderTracker> list)
list
- a list of ReaderTracker
public boolean isReader(Publication pub, Member mbr)
pub
- the publicationmbr
- the member
public void track(Publication pub, Member mbr)
pub
- the publicationmbr
- the reader to be tracked (may be null)public void removeAllReaderTracker(Publication pub)
pub
- the publicationpublic void removeAllReaderTracker(Member mbr, boolean anonymize)
mbr
- the memberanonymize
- if true report all the access of this member as anonymous access.public void anonymizeAllReaderTracker(Member mbr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |