public class ImportBookmarksAction extends PreferenceBaseAction
PreferenceBaseAction.DefaultPrefix, PreferenceBaseAction.PreferenceType| Modifier and Type | Field and Description |
|---|---|
protected File |
upfile |
protected String |
upfileContentType |
protected String |
upfileFileName |
bookmarksHomePage, bookmarksImportDate, colors, confirmNewPassword, currentPassword, delete, email, favicon, labels, newLabel, newPassword, rename, screenshot, searchPrefix, selectedLabels, tagsNb, updateconfig, CONTEXT_ACTION_KEY, first, fullTextLine, order, possibleOrder, session, tagLine, UNTRANSLATED_MARKER| Constructor and Description |
|---|
ImportBookmarksAction() |
| Modifier and Type | Method and Description |
|---|---|
protected BowBookmark |
createBookmarkFromHtml(String html,
String name,
BowUser user) |
String |
execute() |
protected Date |
getDateFromHtml(String html) |
protected String |
getTagsFromHtml(String html) |
File |
getUpfile() |
String |
getUpfileContentType() |
String |
getUpfileFileName() |
protected String |
getUrlFromHtml(String html) |
protected void |
parseHtmlToBookmarks(org.htmlparser.util.NodeList list,
BowUser user,
Date date,
List<BowBookmark> bookmarks,
Set<String> tagList) |
void |
setUpfile(File upfile) |
void |
setUpfileContentType(String upfileContentType) |
void |
setUpfileFileName(String upfileFileName) |
getAction, getBookmarksHomePage, getBookmarksImportDate, getColors, getConfirmNewPassword, getCurrentPassword, getDelete, getEmail, getLabels, getNewLabel, getNewPassword, getRename, getSearchPrefix, getSelectedLabels, getTagsNb, getUpdate, input, isFavicon, isScreenshot, load, loadImport, loadLabels, loadSearchPrefixPref, loadSitePref, loadUserPref, setBookmarksHomePage, setBookmarksImportDate, setColors, setConfirmNewPassword, setCurrentPassword, setDelete, setEmail, setFavicon, setNewLabel, setNewPassword, setRename, setScreenshot, setSearchPrefix, setSelectedLabels, setTagsNb, setUpdate, stringToDategetBowProxy, getBowSession, getConfig, getFirst, getFullTextLine, getOrder, getPossibleOrder, getTagLine, setFirst, setFullTextLine, setOrder, setSession, setTagLineaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected File upfile
protected String upfileContentType
protected String upfileFileName
public File getUpfile()
public void setUpfile(File upfile)
upfile - the upfile to setpublic String getUpfileContentType()
public void setUpfileContentType(String upfileContentType)
upfileContentType - the upfileContentType to setpublic String getUpfileFileName()
public void setUpfileFileName(String upfileFileName)
upfileFileName - the upfileFileName to setprotected BowBookmark createBookmarkFromHtml(String html, String name, BowUser user)
html - String htmlname - String nameuser - User userprotected Date getDateFromHtml(String html)
html - String htmlprotected String getUrlFromHtml(String html)
html - String htmlprotected void parseHtmlToBookmarks(org.htmlparser.util.NodeList list,
BowUser user,
Date date,
List<BowBookmark> bookmarks,
Set<String> tagList)
throws org.htmlparser.util.ParserException
org.htmlparser.util.ParserExceptionpublic String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportCopyright © 2010–2014 CodeLutin. All rights reserved.