|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.BookmarkManager
This class organizes all favorites.
| Constructor Summary | |
BookmarkManager(Config cfg,
UploadManager uplMgr,
UserManager usrMgr)
Constructor. |
|
| Method Summary | |
boolean |
addBookmark(int nUserID,
int nFileID,
int nType)
Add a bookmark to a file for a specific user. |
boolean |
addHit(int nUserID,
int nFileID)
Add a hit to a seen file for a specific user. |
boolean |
deleteBookmark(int nUserID,
int nFileID)
Delete a bookmark to a file for a specific user. |
BookmarkList |
getAllBookmarks(int nUserID)
Get all bookmarks. |
UserList |
getAllUsersByBookmark(int nFileID)
Get all users who read this file. |
BookmarkList |
getFilesByType(int nUserID,
int nBookmarkType)
Get all files by type. |
BookmarkList |
getLastSeenFiles(int nUserID,
int nLimit)
Get last seen files. |
BookmarkList |
getMostSeenFiles(int nLimit)
Get most seen files of all users. |
BookmarkList |
getMostSeenFiles(int nUserID,
int nLimit)
Get most seen files. |
BookmarkList |
getMostSeenFilesByEqualUsers(int nUserID,
int nUserLimit,
int nFileLimit)
Get most seen files of other users who have the same categories. |
BookmarkList |
getSelfAddedBookmarks(int nUserID)
Get all bookmarks. |
boolean |
isUpdateNotifierEnabled(int nUserID,
int nFileID)
Is update notifier enabled or not. |
boolean |
setUpdateNotifier(int nUserID,
int nFileID)
Set or remove an update notifier. |
boolean |
setUpdateNotifier(int nUserID,
int nFileID,
boolean bEnabled)
Set or remove an update notifier. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BookmarkManager(Config cfg,
UploadManager uplMgr,
UserManager usrMgr)
cfg - Config| Method Detail |
public boolean addBookmark(int nUserID,
int nFileID,
int nType)
nUserID - UsernFileID - UploadnType - Type of bookmark
public boolean addHit(int nUserID,
int nFileID)
nUserID - UsernFileID - Upload
public boolean deleteBookmark(int nUserID,
int nFileID)
nUserID - UsernFileID - Upload
public BookmarkList getAllBookmarks(int nUserID)
nUserID - User
public BookmarkList getSelfAddedBookmarks(int nUserID)
nUserID - User
public UserList getAllUsersByBookmark(int nFileID)
nFileID -
public BookmarkList getFilesByType(int nUserID,
int nBookmarkType)
nUserID - UsernBookmarkType - Bookmarktype
public BookmarkList getMostSeenFiles(int nLimit)
nLimit - Limit
public BookmarkList getMostSeenFiles(int nUserID,
int nLimit)
nUserID - UsernLimit - Limit
public BookmarkList getMostSeenFilesByEqualUsers(int nUserID,
int nUserLimit,
int nFileLimit)
nUserID - UsernUserLimit - Limit of usersnFileLimit - Limit of files
public BookmarkList getLastSeenFiles(int nUserID,
int nLimit)
nUserID - UsernLimit - Limit
public boolean isUpdateNotifierEnabled(int nUserID,
int nFileID)
nUserID - UsernFileID - Upload
public boolean setUpdateNotifier(int nUserID,
int nFileID)
nUserID - UsernFileID - Upload
public boolean setUpdateNotifier(int nUserID,
int nFileID,
boolean bEnabled)
nUserID - UsernFileID - UploadbEnabled - Should this be setted or deleted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||