projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist compatibility mode in configuration
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Sone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
e64a388
..
7acdb7f
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-35,6
+35,7
@@
import net.pterodactylus.sone.freenet.wot.Identity;
import net.pterodactylus.sone.freenet.wot.OwnIdentity;
import net.pterodactylus.sone.template.SoneAccessor;
import net.pterodactylus.sone.freenet.wot.OwnIdentity;
import net.pterodactylus.sone.template.SoneAccessor;
+import com.google.common.base.Optional;
import freenet.keys.FreenetURI;
import com.google.common.base.Function;
import freenet.keys.FreenetURI;
import com.google.common.base.Function;
@@
-188,6
+189,13
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
}
};
}
};
+ Function<Sone, Collection<Post>> toAllPosts = new Function<Sone, Collection<Post>>() {
+ @Override
+ public Collection<Post> apply(@Nullable Sone sone) {
+ return (sone != null) ? sone.getPosts() : Collections.<Post>emptyList();
+ }
+ };
+
/**
* Returns the identity of this Sone.
*
/**
* Returns the identity of this Sone.
*
@@
-502,6
+510,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
* @return The root album of this Sone
*/
Album getRootAlbum();
* @return The root album of this Sone
*/
Album getRootAlbum();
+ Optional<Image> getImageByInternalId(final String internalId);
/**
* Returns Sone-specific options.
/**
* Returns Sone-specific options.