You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
683 B
23 lines
683 B
/* © SRSoftware 2025 */ |
|
package de.srsoftware.umbrella.bookmarks; |
|
|
|
import de.srsoftware.umbrella.core.model.Bookmark; |
|
import java.time.LocalDateTime; |
|
import java.util.Collection; |
|
import java.util.Map; |
|
|
|
public interface BookmarkDb { |
|
Map<Long, Bookmark> findUrls(long userId, Collection<String> key); |
|
|
|
Map<Long, String> findUrls(String key); |
|
|
|
Map<Long, Bookmark> list(long userId, Long offset, Long limit); |
|
|
|
Bookmark load(long id, long userId); |
|
|
|
Bookmark save(String url, String comment, Collection<Long> userIds, LocalDateTime datetime); |
|
|
|
default Bookmark save(String url, String comment, Collection<Long> userIds){ |
|
return save(url,comment,userIds,LocalDateTime.now()); |
|
} |
|
}
|
|
|