|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcmsplugin.bookmarks.BookmarkManager
public class BookmarkManager
Field Summary |
---|
Fields inherited from interface com.jalios.util.JPropertiesListener |
---|
REVISION |
Method Summary | |
---|---|
Bookmark |
addBookmark(Member author,
Data data)
Adds the given bookmark. |
Bookmark |
addBookmark(Member author,
String title,
String url)
Adds the given bookmark. |
void |
deleteAllBookmarks(Data data)
Delete all the bookmarks for the given data. |
protected String |
extractFavIcon(String url)
|
protected String |
extractFavIconFromContent(String content,
String url)
|
List<Bookmark> |
getAllBookmarks(Data data)
Returns all the bookmarks for the given data. |
Bookmark |
getBookmark(Member author,
Data data)
Returns the bookmark of the given member for the given data. |
Bookmark |
getBookmark(Member author,
int index)
Returns the bookmark of the given member at the given index. |
int |
getBookmarkCount(Member author)
Counts the bookmarks of the given author. |
List<Bookmark> |
getBookmarkList(Member author)
Returns the bookmarks of the given member. |
String |
getIcon(String url)
Returns the bookmark icon (ie the favicon) of the given URL. |
static BookmarkManager |
getInstance()
|
int |
getMaxBookmark()
|
int |
getMaxIndex(Member author)
Return the greatest index of the bookmarks of the given member. |
boolean |
isBookmarked(Member author,
Data data)
Returns true if the given data has been bookmarked by the given author. |
void |
processAjaxRequest(JcmsJspContext jcmsContext)
Processes the given Ajax request (called by doPortletBookmarksFullDisplay.jsp) |
void |
propertiesChange(JProperties properties)
|
void |
removeBookmark(Member author,
Long rowId)
Remove the bookmark of the given member. |
void |
updateBookmark(Member author,
Long rowId,
String title,
String url)
Update the given bookmark |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BookmarkManager getInstance()
public void propertiesChange(JProperties properties)
propertiesChange
in interface JPropertiesListener
public int getMaxBookmark()
public List<Bookmark> getBookmarkList(Member author)
author
- the member
public Bookmark getBookmark(Member author, int index)
author
- the author of the bookmarkindex
- the index of the bookmark.
public Bookmark getBookmark(Member author, Data data)
author
- the author of the bookmarkdata
- the data.
public boolean isBookmarked(Member author, Data data)
author
- the author of the bookmarkdata
- the data.
public int getBookmarkCount(Member author)
author
- the author of the bookmarks
public Bookmark addBookmark(Member author, String title, String url)
author
- the author of the bookmarktitle
- the title of the bookmarkurl
- the url of the bookmark
public Bookmark addBookmark(Member author, Data data)
author
- the author of the bookmarkdata
- the data to be bookmarked
public void updateBookmark(Member author, Long rowId, String title, String url)
author
- the memberrowId
- the identifier of the bookmarkpublic void removeBookmark(Member author, Long rowId)
author
- the memberrowId
- the identifier of the bookmarkpublic int getMaxIndex(Member author)
author
- the member
public List<Bookmark> getAllBookmarks(Data data)
data
- the bookmarked data
public void deleteAllBookmarks(Data data)
data
- the bookmarked datapublic void processAjaxRequest(JcmsJspContext jcmsContext) throws IOException
jcmsContext
- the JCMS context
IOException
public String getIcon(String url)
url
- the URL to get the icon
protected String extractFavIcon(String url)
protected String extractFavIconFromContent(String content, String url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |