|
|
|
@ -49,7 +49,6 @@ import net.yacy.kelondro.data.meta.DigestURI;
|
|
|
|
|
import net.yacy.kelondro.logging.Log;
|
|
|
|
|
import net.yacy.kelondro.order.NaturalOrder;
|
|
|
|
|
import net.yacy.kelondro.util.DateFormatter;
|
|
|
|
|
import net.yacy.kelondro.util.kelondroException;
|
|
|
|
|
import net.yacy.kelondro.workflow.BusyThread;
|
|
|
|
|
import net.yacy.kelondro.workflow.InstantBusyThread;
|
|
|
|
|
|
|
|
|
@ -102,7 +101,7 @@ public class bookmarksDB {
|
|
|
|
|
String[] tagArray;
|
|
|
|
|
while(it.hasNext()){
|
|
|
|
|
bookmark = it.next();
|
|
|
|
|
if (bookmark == null) continue;
|
|
|
|
|
// if (bookmark == null) continue;
|
|
|
|
|
tagArray = BookmarkHelper.cleanTagsString(bookmark.getTagsString() + bookmark.getFoldersString()).split(",");
|
|
|
|
|
tag = null;
|
|
|
|
|
for (final String element : tagArray) {
|
|
|
|
@ -374,7 +373,7 @@ public class bookmarksDB {
|
|
|
|
|
Bookmark bm;
|
|
|
|
|
while(it.hasNext()){
|
|
|
|
|
bm=it.next();
|
|
|
|
|
if (bm == null) continue;
|
|
|
|
|
// if (bm == null) continue;
|
|
|
|
|
if(priv || bm.getPublic()){
|
|
|
|
|
set.add(bm.getUrlHash());
|
|
|
|
|
}
|
|
|
|
@ -483,7 +482,7 @@ public class bookmarksDB {
|
|
|
|
|
it = tagSet.iterator();
|
|
|
|
|
while (it.hasNext()) {
|
|
|
|
|
tag=getTag(BookmarkHelper.tagHash(it.next()) );
|
|
|
|
|
if(priv ||tag.hasPublicItems()){
|
|
|
|
|
if((priv ||tag.hasPublicItems()) && tag != null){
|
|
|
|
|
set.add(tag);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -865,22 +864,11 @@ public class bookmarksDB {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean hasNext() {
|
|
|
|
|
try {
|
|
|
|
|
return this.bookmarkIter.hasNext();
|
|
|
|
|
} catch (final kelondroException e) {
|
|
|
|
|
Log.logException(e);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Bookmark next() {
|
|
|
|
|
try {
|
|
|
|
|
String s = new String(this.bookmarkIter.next());
|
|
|
|
|
return getBookmark(s);
|
|
|
|
|
} catch (final kelondroException e) {
|
|
|
|
|
Log.logException(e);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
return getBookmark(new String(this.bookmarkIter.next()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void remove() {
|
|
|
|
|