| java.lang.Object de.anomic.data.bookmarksDB
bookmarksDB | public class bookmarksDB (Code) | | |
Inner Class :public class Tag | |
Inner Class :public class bookmarksDate | |
Inner Class :public class tagIterator implements Iterator<Tag> | |
Inner Class :public class bookmarkIterator implements Iterator<Bookmark> | |
Inner Class :public class tagComparator implements Comparator<Tag> | |
Inner Class :public class tagSizeComparator implements Comparator<Tag> | |
Method Summary | |
public String | addBookmark(Bookmark bookmark) | public String | addTag(Tag tag) | public Iterator<Bookmark> | bookmarkIterator(boolean up) | public int | bookmarksSize() | public static String | cleanTagsString(String tagsString) | public void | close() | public Bookmark | createBookmark(String url, String user) | public void | flushTagCache() | public Bookmark | getBookmark(String urlHash) | public Iterator<String> | getBookmarksIterator(boolean priv) | public Iterator<String> | getBookmarksIterator(String tagName, boolean priv) | public bookmarksDate | getDate(String date) | public Iterator<String> | getFolderList(boolean priv) | public Tag | getTag(String hash) | public Iterator<Tag> | getTagIterator(boolean priv) | public Iterator<Tag> | getTagIterator(boolean priv, int c) | public Iterator<Tag> | getTagIterator(boolean priv, int comp, int max) | public Iterator<Tag> | getTagIterator(String tagName, boolean priv) | public Iterator<Tag> | getTagIterator(String tagName, boolean priv, int comp) | public Iterator<Tag> | getTagIterator(String tagName, boolean priv, int comp, int max) | public int | importFromBookmarks(yacyURL baseURL, String input, String tag, boolean importPublic) | public int | importFromBookmarks(yacyURL baseURL, InputStreamReader input, String tag, boolean importPublic) | public int | importFromXML(String input, boolean importPublic) | public int | importFromXML(InputStream input, boolean importPublic) | public Tag | loadTag(String hash) | public int | parseXMLimport(Node doc, boolean importPublic) | public void | rebuildDates() | public void | rebuildTags() | public boolean | removeBookmark(String urlHash) | public void | removeTag(String hash) | public boolean | renameTag(String oldName, String newName) | public void | saveBookmark(Bookmark bookmark) | public void | saveTag(Tag tag) | public void | storeTag(Tag tag) | public static String | tagHash(String tagName) returns an object of type String that contains a tagHash
Parameters: tagName - an object of type String with the name of the tag. | public static String | tagHash(String tagName, String user) | public Iterator<Tag> | tagIterator(boolean up) | public int | tagSize(boolean flushed) | public int | tagsSize() |
SHOW_ALL | final static int SHOW_ALL(Code) | | |
SORT_ALPHA | final static int SORT_ALPHA(Code) | | |
SORT_SIZE | final static int SORT_SIZE(Code) | | |
bookmarksDB | public bookmarksDB(File bookmarksFile, File tagsFile, File datesFile, long preloadTime)(Code) | | |
addBookmark | public String addBookmark(Bookmark bookmark)(Code) | | |
bookmarkIterator | public Iterator<Bookmark> bookmarkIterator(boolean up)(Code) | | |
bookmarksSize | public int bookmarksSize()(Code) | | |
close | public void close()(Code) | | |
flushTagCache | public void flushTagCache()(Code) | | |
getBookmark | public Bookmark getBookmark(String urlHash)(Code) | | |
getTag | public Tag getTag(String hash)(Code) | | retrieve an object of type Tag from the the tagCache, if object is not cached return loadTag(hash)
Parameters: hash - an object of type String, containing a tagHash |
getTagIterator | public Iterator<Tag> getTagIterator(boolean priv, int c)(Code) | | |
getTagIterator | public Iterator<Tag> getTagIterator(boolean priv, int comp, int max)(Code) | | |
getTagIterator | public Iterator<Tag> getTagIterator(String tagName, boolean priv, int comp, int max)(Code) | | |
importFromXML | public int importFromXML(String input, boolean importPublic)(Code) | | |
loadTag | public Tag loadTag(String hash)(Code) | | load/retrieve an object of type Tag from the tagsTable (also save it in tagCache)
Parameters: hash - an object of type String, containing a tagHash |
parseXMLimport | public int parseXMLimport(Node doc, boolean importPublic)(Code) | | |
rebuildDates | public void rebuildDates()(Code) | | |
rebuildTags | public void rebuildTags()(Code) | | |
removeBookmark | public boolean removeBookmark(String urlHash)(Code) | | |
saveBookmark | public void saveBookmark(Bookmark bookmark)(Code) | | |
saveTag | public void saveTag(Tag tag)(Code) | | save a Tag in tagCache; see also flushTagCache(), addTag(), loadTag()
Parameters: tag - an object of type Tag to be saved in tagCache |
storeTag | public void storeTag(Tag tag)(Code) | | store a Tag in tagsTable or remove an empty tag
Parameters: tag - an object of type Tag to be stored/removed |
tagHash | public static String tagHash(String tagName)(Code) | | returns an object of type String that contains a tagHash
Parameters: tagName - an object of type String with the name of the tag. tagName is converted to lower case before hash is generated! |
tagSize | public int tagSize(boolean flushed)(Code) | | |
tagsSize | public int tagsSize()(Code) | | |
|
|