Sone.git
9 years agoAdd unit test for get-page plugin.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 11:49:02 +0000 (12:49 +0100)]
Add unit test for get-page plugin.

9 years agoAdd unit test for CSS class name filter.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 11:09:17 +0000 (12:09 +0100)]
Add unit test for CSS class name filter.

9 years agoRemove irrelevant code, the object will never be null.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 10:33:46 +0000 (11:33 +0100)]
Remove irrelevant code, the object will never be null.

9 years agoAdd unit test for collection accessor.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 10:33:27 +0000 (11:33 +0100)]
Add unit test for collection accessor.

9 years agoAdd test for album accessor.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 09:32:48 +0000 (10:32 +0100)]
Add test for album accessor.

9 years agoAdd method to call private or otherwise non-accessible getters.
David ‘Bombe’ Roden [Sun, 2 Nov 2014 09:32:41 +0000 (10:32 +0100)]
Add method to call private or otherwise non-accessible getters.

9 years agoRemove Sone from database correctly.
David ‘Bombe’ Roden [Sat, 1 Nov 2014 12:59:47 +0000 (13:59 +0100)]
Remove Sone from database correctly.

9 years agoAdd method to remove a Sone from the database.
David ‘Bombe’ Roden [Sat, 1 Nov 2014 12:57:48 +0000 (13:57 +0100)]
Add method to remove a Sone from the database.

9 years agoRemove unused fields.
David ‘Bombe’ Roden [Wed, 29 Oct 2014 17:52:22 +0000 (18:52 +0100)]
Remove unused fields.

9 years agoUse closer from freenet.
David ‘Bombe’ Roden [Sun, 12 Oct 2014 18:02:42 +0000 (20:02 +0200)]
Use closer from freenet.

9 years agoClean up imports.
David ‘Bombe’ Roden [Fri, 10 Oct 2014 20:24:20 +0000 (22:24 +0200)]
Clean up imports.

9 years agoUse statially imported valueOf().
David ‘Bombe’ Roden [Fri, 10 Oct 2014 20:24:14 +0000 (22:24 +0200)]
Use statially imported valueOf().

9 years agoDon’t use number parsing from the utils package anymore.
David ‘Bombe’ Roden [Fri, 10 Oct 2014 20:24:01 +0000 (22:24 +0200)]
Don’t use number parsing from the utils package anymore.

9 years agoDon’t use logging from utils package.
David ‘Bombe’ Roden [Sun, 5 Oct 2014 20:11:59 +0000 (22:11 +0200)]
Don’t use logging from utils package.

9 years agoParse numbers using Guice.
David ‘Bombe’ Roden [Sun, 5 Oct 2014 20:07:55 +0000 (22:07 +0200)]
Parse numbers using Guice.

9 years agoRemove obsolete import.
David ‘Bombe’ Roden [Sun, 5 Oct 2014 10:30:48 +0000 (12:30 +0200)]
Remove obsolete import.

9 years agoUse Guice to parse numbers.
David ‘Bombe’ Roden [Sun, 5 Oct 2014 10:30:39 +0000 (12:30 +0200)]
Use Guice to parse numbers.

9 years agoUse bookmark database in core.
David ‘Bombe’ Roden [Fri, 3 Oct 2014 21:09:29 +0000 (23:09 +0200)]
Use bookmark database in core.

9 years agoAdd bookmark database.
David ‘Bombe’ Roden [Fri, 3 Oct 2014 21:08:33 +0000 (23:08 +0200)]
Add bookmark database.

9 years agoExtract manifest element creation into its own class.
David ‘Bombe’ Roden [Fri, 3 Oct 2014 18:45:29 +0000 (20:45 +0200)]
Extract manifest element creation into its own class.

9 years agoMove Sone parser into its own class.
David ‘Bombe’ Roden [Fri, 3 Oct 2014 09:00:32 +0000 (11:00 +0200)]
Move Sone parser into its own class.

9 years agoRemove a TODO.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 19:45:05 +0000 (21:45 +0200)]
Remove a TODO.

9 years agoRemove all occurences of the FCP interface from the core.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 19:21:51 +0000 (21:21 +0200)]
Remove all occurences of the FCP interface from the core.

9 years agoAdd more tests for the Sone inserter.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 19:21:39 +0000 (21:21 +0200)]
Add more tests for the Sone inserter.

9 years agoMake method to change the insertion delay private.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 16:50:07 +0000 (18:50 +0200)]
Make method to change the insertion delay private.

9 years agoAdd unit test for integer range predicate.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 16:28:56 +0000 (18:28 +0200)]
Add unit test for integer range predicate.

9 years agoMove preferences loading and saving out of the core.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 05:12:43 +0000 (07:12 +0200)]
Move preferences loading and saving out of the core.

9 years agoClean up import.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 05:12:08 +0000 (07:12 +0200)]
Clean up import.

9 years agoMove test Value implementation to top-level class.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 05:11:58 +0000 (07:11 +0200)]
Move test Value implementation to top-level class.

9 years agoAdd static method to create range.
David ‘Bombe’ Roden [Tue, 30 Sep 2014 05:11:36 +0000 (07:11 +0200)]
Add static method to create range.

9 years agoMove option interface and default implementation to top-level classes.
David ‘Bombe’ Roden [Mon, 29 Sep 2014 16:28:27 +0000 (18:28 +0200)]
Move option interface and default implementation to top-level classes.

9 years agoRemove option watcher, it’s not used anymore.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 20:38:45 +0000 (22:38 +0200)]
Remove option watcher, it’s not used anymore.

9 years agoClean up some imports.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 20:36:51 +0000 (22:36 +0200)]
Clean up some imports.

9 years agoUse event bus to change FCP interface configuration.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 20:23:12 +0000 (22:23 +0200)]
Use event bus to change FCP interface configuration.

9 years agoUse event bus to activate and deactivate the FCP interface.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 18:47:00 +0000 (20:47 +0200)]
Use event bus to activate and deactivate the FCP interface.

9 years agoUse an atomic reference instead of volatile.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 18:21:57 +0000 (20:21 +0200)]
Use an atomic reference instead of volatile.

9 years agoUse an atomic boolean instead of a volatile boolean.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 18:19:56 +0000 (20:19 +0200)]
Use an atomic boolean instead of a volatile boolean.

9 years agoUse events to communicate changes to insertion delay configuration.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 14:00:59 +0000 (16:00 +0200)]
Use events to communicate changes to insertion delay configuration.

9 years agoClean imports.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 12:01:23 +0000 (14:01 +0200)]
Clean imports.

9 years agoSet latest edition on the insert URI, too.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 11:57:19 +0000 (13:57 +0200)]
Set latest edition on the insert URI, too.

This should prevent ridiculously large editions when creating insert
keys from the identity keys.

9 years agoDon’t set the request URI anymore, either.
David ‘Bombe’ Roden [Sun, 28 Sep 2014 11:56:36 +0000 (13:56 +0200)]
Don’t set the request URI anymore, either.

It can also be calculcated from the identity’s key, together with the
latest edition of the Sone.

9 years agoVerify that the insert URI is not null.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:40:48 +0000 (20:40 +0200)]
Verify that the insert URI is not null.

9 years agoReturn a copy of the Sones.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:40:38 +0000 (20:40 +0200)]
Return a copy of the Sones.

9 years agoStore Sones in database only.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:40:14 +0000 (20:40 +0200)]
Store Sones in database only.

9 years agoDon’t set insert URI of a Sone, let it be generated from the identity.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:31:57 +0000 (20:31 +0200)]
Don’t set insert URI of a Sone, let it be generated from the identity.

9 years agoDon't access the Sone in the constructor.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:25:51 +0000 (20:25 +0200)]
Don't access the Sone in the constructor.

Because of the initialization of a local Sone and its inserter the Sone
is currently not ready when the inserter and the modification detector
are being created. This needs to be fixed.

9 years agoRemove the possibility to create Sones from the getLocalSone() method.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:23:29 +0000 (20:23 +0200)]
Remove the possibility to create Sones from the getLocalSone() method.

NOTE: the code of this commit does not compile, it’s part of a larger
commit.

9 years agoUse a special Sone implementation that only stores the Sone ID.
David ‘Bombe’ Roden [Sat, 27 Sep 2014 18:16:19 +0000 (20:16 +0200)]
Use a special Sone implementation that only stores the Sone ID.

9 years agoDon’t store a Sone in the Sone inserter.
David ‘Bombe’ Roden [Fri, 26 Sep 2014 19:59:30 +0000 (21:59 +0200)]
Don’t store a Sone in the Sone inserter.

The information is readily available from the core, we just need the ID.

9 years agoSimply show the Sone ID instead of extracting parts of the request URI.
David ‘Bombe’ Roden [Thu, 25 Sep 2014 20:35:59 +0000 (22:35 +0200)]
Simply show the Sone ID instead of extracting parts of the request URI.

9 years agoFix changed import.
David ‘Bombe’ Roden [Sun, 21 Sep 2014 11:21:51 +0000 (13:21 +0200)]
Fix changed import.

9 years agoUse database methods where possible.
David ‘Bombe’ Roden [Sun, 21 Sep 2014 10:26:21 +0000 (12:26 +0200)]
Use database methods where possible.

9 years agoStore Sones in the database, too.
David ‘Bombe’ Roden [Sun, 21 Sep 2014 10:18:34 +0000 (12:18 +0200)]
Store Sones in the database, too.

9 years agoFix parsing of latest edition when it’s not present.
David ‘Bombe’ Roden [Fri, 19 Sep 2014 20:35:37 +0000 (22:35 +0200)]
Fix parsing of latest edition when it’s not present.

9 years agoUse Sone change detector in core to send notifications.
David ‘Bombe’ Roden [Fri, 19 Sep 2014 05:47:41 +0000 (07:47 +0200)]
Use Sone change detector in core to send notifications.

9 years agoAdd sone change detector that finds new and removed elements.
David ‘Bombe’ Roden [Fri, 19 Sep 2014 05:46:42 +0000 (07:46 +0200)]
Add sone change detector that finds new and removed elements.

9 years agoAdd function that returns all images for a Sone.
David ‘Bombe’ Roden [Thu, 18 Sep 2014 19:41:20 +0000 (21:41 +0200)]
Add function that returns all images for a Sone.

9 years agoMove test builders to their own top-level classes.
David ‘Bombe’ Roden [Thu, 18 Sep 2014 16:45:48 +0000 (18:45 +0200)]
Move test builders to their own top-level classes.

9 years agoDon’t store post replies sorted by post.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 20:25:43 +0000 (22:25 +0200)]
Don’t store post replies sorted by post.

Yes, this will also reduce performance in the short run, which will
magically fix itself once a database retrieves all the data which will
then be accessed via an index.

9 years agoRefactor post mocking into its own method.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 20:24:37 +0000 (22:24 +0200)]
Refactor post mocking into its own method.

9 years agoDon’t store posts by recipient, generate them on the fly.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 20:02:19 +0000 (22:02 +0200)]
Don’t store posts by recipient, generate them on the fly.

Yes, this will result in worse performance of these methods as long as
there is no real database behind it. But there will be a database
behind all this. Some day.

9 years agoSmall optimization when an identity is removed.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 18:35:33 +0000 (20:35 +0200)]
Small optimization when an identity is removed.

9 years agoAdd more tests for FreenetInterface.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 18:35:13 +0000 (20:35 +0200)]
Add more tests for FreenetInterface.

9 years agoDisallow empty album titles, too.
David ‘Bombe’ Roden [Wed, 17 Sep 2014 16:56:22 +0000 (18:56 +0200)]
Disallow empty album titles, too.

9 years agoAbort editing an image if title is empty.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 19:46:31 +0000 (21:46 +0200)]
Abort editing an image if title is empty.

9 years agoDon’t allow changing an image’s title into an empty string.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 19:25:19 +0000 (21:25 +0200)]
Don’t allow changing an image’s title into an empty string.

9 years agoRedirect to “no permission” page if parent album or current Sone is incorrect.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 18:24:05 +0000 (20:24 +0200)]
Redirect to “no permission” page if parent album or current Sone is incorrect.

9 years agoUse real image parsing in Sone downloader test.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 16:26:53 +0000 (18:26 +0200)]
Use real image parsing in Sone downloader test.

9 years agoStore parsed images locally only, get avatar from local images.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 16:25:07 +0000 (18:25 +0200)]
Store parsed images locally only, get avatar from local images.

9 years agoCreate images using the core’s image builder.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 16:23:56 +0000 (18:23 +0200)]
Create images using the core’s image builder.

9 years agoStore all albums from configuration in database.
David ‘Bombe’ Roden [Mon, 15 Sep 2014 16:21:36 +0000 (18:21 +0200)]
Store all albums from configuration in database.

9 years agoStore all albums and images in the database after loading them from the configuration.
David ‘Bombe’ Roden [Sun, 14 Sep 2014 16:04:31 +0000 (18:04 +0200)]
Store all albums and images in the database after loading them from the configuration.

9 years agoLoad avatar image correctly.
David ‘Bombe’ Roden [Sun, 14 Sep 2014 16:03:56 +0000 (18:03 +0200)]
Load avatar image correctly.

9 years agoFurther reduce dependencies on a Sone for downloading.
David ‘Bombe’ Roden [Sat, 13 Sep 2014 17:00:57 +0000 (19:00 +0200)]
Further reduce dependencies on a Sone for downloading.

9 years agoRemove Sone instance from SoneUpdater interface.
David ‘Bombe’ Roden [Fri, 12 Sep 2014 20:54:26 +0000 (22:54 +0200)]
Remove Sone instance from SoneUpdater interface.

This will probably allow the Sone parameter in the registerUsk() method
in the FreenetInterface to be removed rather soonish.

9 years agoAdd interface between freenet interface and Sone downloader.
David ‘Bombe’ Roden [Fri, 12 Sep 2014 20:35:57 +0000 (22:35 +0200)]
Add interface between freenet interface and Sone downloader.

9 years agoUse fetch action instead of custom Runnable.
David ‘Bombe’ Roden [Fri, 12 Sep 2014 19:53:35 +0000 (21:53 +0200)]
Use fetch action instead of custom Runnable.

9 years agoMove parsing of latest edition out of the synchronized block.
David ‘Bombe’ Roden [Fri, 12 Sep 2014 19:42:11 +0000 (21:42 +0200)]
Move parsing of latest edition out of the synchronized block.

9 years agoStore albums and images per-Sone in database.
David ‘Bombe’ Roden [Tue, 9 Sep 2014 19:25:55 +0000 (21:25 +0200)]
Store albums and images per-Sone in database.

9 years agoMove image parsing to new configuration parser.
David ‘Bombe’ Roden [Tue, 9 Sep 2014 18:24:37 +0000 (20:24 +0200)]
Move image parsing to new configuration parser.

9 years agoMove album parsing to new configuration parser.
David ‘Bombe’ Roden [Tue, 9 Sep 2014 17:09:33 +0000 (19:09 +0200)]
Move album parsing to new configuration parser.

9 years agoSet Sone in album builder, remote getOrCreate method from core.
David ‘Bombe’ Roden [Mon, 8 Sep 2014 18:43:58 +0000 (20:43 +0200)]
Set Sone in album builder, remote getOrCreate method from core.

9 years agoMove friend parsing to new configuration parser.
David ‘Bombe’ Roden [Mon, 8 Sep 2014 17:09:56 +0000 (19:09 +0200)]
Move friend parsing to new configuration parser.

9 years agoMove liked post reply IDs to new configuration parser.
David ‘Bombe’ Roden [Mon, 8 Sep 2014 17:05:07 +0000 (19:05 +0200)]
Move liked post reply IDs to new configuration parser.

9 years agoReturn sets instead of collections for posts and replies.
David ‘Bombe’ Roden [Mon, 8 Sep 2014 16:59:44 +0000 (18:59 +0200)]
Return sets instead of collections for posts and replies.

9 years agoMove liked post IDs parsing to new configuration parser.
David ‘Bombe’ Roden [Mon, 8 Sep 2014 16:59:31 +0000 (18:59 +0200)]
Move liked post IDs parsing to new configuration parser.

9 years agoMove post reply parsing to new configuration parser.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 19:43:39 +0000 (21:43 +0200)]
Move post reply parsing to new configuration parser.

9 years agoStart moving parsing a Sone from a configuration to a specialized parser.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 17:16:27 +0000 (19:16 +0200)]
Start moving parsing a Sone from a configuration to a specialized parser.

9 years agoMove parsing the profile to its own method.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 13:12:13 +0000 (15:12 +0200)]
Move parsing the profile to its own method.

9 years agoRemove unused methods in core.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 12:48:57 +0000 (14:48 +0200)]
Remove unused methods in core.

9 years agoRename method that creates albums if they don’t exist.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 12:38:21 +0000 (14:38 +0200)]
Rename method that creates albums if they don’t exist.

9 years agoMove dependency injection configuration closer to where it’s useful.
David ‘Bombe’ Roden [Fri, 29 Aug 2014 16:26:20 +0000 (18:26 +0200)]
Move dependency injection configuration closer to where it’s useful.

9 years agoReturn own identities even if they don’t have the correct context.
David ‘Bombe’ Roden [Mon, 25 Aug 2014 18:56:27 +0000 (20:56 +0200)]
Return own identities even if they don’t have the correct context.

9 years agoAdd Sone-specific options object.
David ‘Bombe’ Roden [Mon, 25 Aug 2014 18:55:31 +0000 (20:55 +0200)]
Add Sone-specific options object.

9 years agoExtract identity manager interface.
David ‘Bombe’ Roden [Sun, 10 Aug 2014 10:35:35 +0000 (12:35 +0200)]
Extract identity manager interface.

9 years agoExtract interface for Sone downloader.
David ‘Bombe’ Roden [Sun, 10 Aug 2014 10:30:00 +0000 (12:30 +0200)]
Extract interface for Sone downloader.

9 years agoWhitespace.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 12:23:23 +0000 (14:23 +0200)]
Whitespace.

9 years agoRemove test that can not guarantee its success.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 12:23:18 +0000 (14:23 +0200)]
Remove test that can not guarantee its success.

9 years agoExtract interface from the web of trust updater.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 09:52:46 +0000 (11:52 +0200)]
Extract interface from the web of trust updater.

This allows way easier testing in CoreTest.

9 years agoFix own identities without trust identities from disappearing.
David ‘Bombe’ Roden [Thu, 7 Aug 2014 19:27:09 +0000 (21:27 +0200)]
Fix own identities without trust identities from disappearing.