Use local Sone for loading the Sone in the database.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / LocalSoneDatabase.java
1 package net.pterodactylus.sone.database;
2
3 import net.pterodactylus.sone.data.LocalSone;
4 import net.pterodactylus.sone.data.Sone;
5 import net.pterodactylus.sone.freenet.wot.OwnIdentity;
6
7 import com.google.common.base.Optional;
8
9 /**
10  * Database functions for local Sones.
11  *
12  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
13  */
14 public interface LocalSoneDatabase {
15
16         Optional<LocalSone> getLocalSone(String localSoneId);
17         LocalSone registerLocalSone(OwnIdentity ownIdentity);
18         String getLastInsertFingerprint(Sone sone);
19         void setLastInsertFingerprint(Sone sone, String lastInsertFingerprint);
20
21 }