org.chorem.bow
Class BookmarkUtils
java.lang.Object
org.chorem.bow.BookmarkUtils
public class BookmarkUtils
- extends Object
|
Field Summary |
static org.apache.commons.logging.Log |
log
Logger. |
|
Method Summary |
static void |
addTagsToBookmark(List<String> tagList,
BowBookmark bookmark)
|
static void |
addTagsToBookmark(String tags,
BowBookmark bookmark)
|
static void |
addUrlToBookmark(String url,
BowBookmark bookmark)
|
static BowBookmark |
createBookmark(String url,
String nameAndTags,
BowUser user)
|
static BowBookmark |
createBookmark(String url,
String name,
String tags,
BowUser user,
String privateAlias,
String publicAlias,
Date date)
Create new Bookmark |
static BookmarkActions |
createBookmarkActions(javax.servlet.http.HttpServletRequest request,
org.nuiton.wikitty.search.PagedResult<BowBookmark> result,
String searchLine)
|
static BowBookmark |
createBookmarkFromHtml(String html,
String name,
BowUser user)
|
static org.nuiton.wikitty.search.Criteria |
getBookmarkListCriteriaByUser(BowPreference user,
String searchLine)
|
static Map<String,Integer> |
getBookmarksByImportDate(javax.servlet.http.HttpServletRequest request,
BowUser user)
|
static String |
getBookmarkTagsString(BowBookmark bookmark)
|
static Date |
getDateFromHtml(String html)
|
static String |
getExportHtmlBookmark(List<BowBookmark> bookmarks)
|
static String |
getTagsFromHtml(String html)
|
static String |
getUrlFromHtml(String html)
|
static void |
updateBookmark(BowBookmark bookmark,
String name,
String link,
String tags,
String privateAlias,
String publicAlias)
|
static void |
updateBookmarkName(BowBookmark bookmark,
String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.apache.commons.logging.Log log
- Logger.
BookmarkUtils
public BookmarkUtils()
getBookmarkListCriteriaByUser
public static org.nuiton.wikitty.search.Criteria getBookmarkListCriteriaByUser(BowPreference user,
String searchLine)
createBookmarkActions
public static BookmarkActions createBookmarkActions(javax.servlet.http.HttpServletRequest request,
org.nuiton.wikitty.search.PagedResult<BowBookmark> result,
String searchLine)
getBookmarksByImportDate
public static Map<String,Integer> getBookmarksByImportDate(javax.servlet.http.HttpServletRequest request,
BowUser user)
throws ParseException
- Throws:
ParseException
createBookmarkFromHtml
public static BowBookmark createBookmarkFromHtml(String html,
String name,
BowUser user)
- Parameters:
html - String htmlname - String nameuser - User user
- Returns:
- Bookmark the bookmark filled
getDateFromHtml
public static Date getDateFromHtml(String html)
- Parameters:
html - String html
- Returns:
- Date from the html
getExportHtmlBookmark
public static String getExportHtmlBookmark(List<BowBookmark> bookmarks)
- Parameters:
bookmarks - List bookmarks
- Returns:
- String the html file
getUrlFromHtml
public static String getUrlFromHtml(String html)
- Parameters:
html - String html
- Returns:
- url
getTagsFromHtml
public static String getTagsFromHtml(String html)
createBookmark
public static BowBookmark createBookmark(String url,
String nameAndTags,
BowUser user)
- Parameters:
url - String which contains the bookmark urlnameAndTags - String which contains the name and the tags of the
bookmark separated by '|' ==> name|tag1 tag2...user - bookmark user
- Returns:
- Bookmark the website bookmark, null if all fields are not correctly filled
addUrlToBookmark
public static void addUrlToBookmark(String url,
BowBookmark bookmark)
addTagsToBookmark
public static void addTagsToBookmark(String tags,
BowBookmark bookmark)
addTagsToBookmark
public static void addTagsToBookmark(List<String> tagList,
BowBookmark bookmark)
createBookmark
public static BowBookmark createBookmark(String url,
String name,
String tags,
BowUser user,
String privateAlias,
String publicAlias,
Date date)
- Create new Bookmark
- Parameters:
url - of bookmarkname - of bookmarktags - of bookmarkuser - creating bookmarkprivateAlias - of bookmarkdate - of creation
- Returns:
- bookMarl created
updateBookmarkName
public static void updateBookmarkName(BowBookmark bookmark,
String name)
updateBookmark
public static void updateBookmark(BowBookmark bookmark,
String name,
String link,
String tags,
String privateAlias,
String publicAlias)
getBookmarkTagsString
public static String getBookmarkTagsString(BowBookmark bookmark)
Copyright © 2010-2011 CodeLutin. All Rights Reserved.