Sone.git
10 years agoDon’t store the insert URI in the information used to create the insert.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 14:58:18 +0000 (16:58 +0200)]
Don’t store the insert URI in the information used to create the insert.

10 years agoRestore the actual purpose of the code.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 14:43:58 +0000 (16:43 +0200)]
Restore the actual purpose of the code.

10 years agoRemove setIdentity() from Sone.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 14:14:10 +0000 (16:14 +0200)]
Remove setIdentity() from Sone.

10 years agoAssign an empty name as default.
David ‘Bombe’ Roden [Thu, 17 Oct 2013 19:51:07 +0000 (21:51 +0200)]
Assign an empty name as default.

10 years agoStore birth date in its own class, only update it via a modifier.
David ‘Bombe’ Roden [Thu, 17 Oct 2013 19:50:53 +0000 (21:50 +0200)]
Store birth date in its own class, only update it via a modifier.

10 years agoStore a Sone’s name in its own class, use a modifier to modify a Sone’s name.
David ‘Bombe’ Roden [Thu, 17 Oct 2013 19:37:15 +0000 (21:37 +0200)]
Store a Sone’s name in its own class, use a modifier to modify a Sone’s name.

10 years agoMove Sone parsing into its own class.
David ‘Bombe’ Roden [Thu, 17 Oct 2013 19:10:55 +0000 (21:10 +0200)]
Move Sone parsing into its own class.

10 years agoActually declare the abstract reply builder as abstract.
David ‘Bombe’ Roden [Thu, 17 Oct 2013 04:21:28 +0000 (06:21 +0200)]
Actually declare the abstract reply builder as abstract.

10 years agoRemove method to mark replies as known from the core.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:44:49 +0000 (21:44 +0200)]
Remove method to mark replies as known from the core.

10 years agoAdd callback when reply is updated.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:37:47 +0000 (21:37 +0200)]
Add callback when reply is updated.

10 years agoAdd modifier to post replies to mark them known.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:32:23 +0000 (21:32 +0200)]
Add modifier to post replies to mark them known.

10 years agoRemove PostReplyProvider methods from Core.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:05:02 +0000 (21:05 +0200)]
Remove PostReplyProvider methods from Core.

10 years agoAdd function that transforms a post into its replies.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:03:59 +0000 (21:03 +0200)]
Add function that transforms a post into its replies.

10 years agoAdd getReplies() method to Post.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 19:03:32 +0000 (21:03 +0200)]
Add getReplies() method to Post.

10 years agoMove PostReplyProvider and PostReplyStore into PostReplyDatabase.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:47:39 +0000 (20:47 +0200)]
Move PostReplyProvider and PostReplyStore into PostReplyDatabase.

10 years agoRemove PostReplyBuilderFactory.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:45:12 +0000 (20:45 +0200)]
Remove PostReplyBuilderFactory.

10 years agoRemove unused methods.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:43:55 +0000 (20:43 +0200)]
Remove unused methods.

10 years agoRemove PostProvider methods from Core.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:27:08 +0000 (20:27 +0200)]
Remove PostProvider methods from Core.

10 years agoRemove PostBuilderFactory.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:17:10 +0000 (20:17 +0200)]
Remove PostBuilderFactory.

10 years agoMove PostProvider and PostStore into PostDatabase.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 18:16:16 +0000 (20:16 +0200)]
Move PostProvider and PostStore into PostDatabase.

10 years agoRemove javadoc comments from overriding methods.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 06:15:57 +0000 (08:15 +0200)]
Remove javadoc comments from overriding methods.

10 years agoRemove MemoryPost and MemoryReply.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 06:14:47 +0000 (08:14 +0200)]
Remove MemoryPost and MemoryReply.

10 years agoAdd “image created” callback to ImageBuilder.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 05:35:51 +0000 (07:35 +0200)]
Add “image created” callback to ImageBuilder.

10 years agoRemove ImageBuilderFactory, move ImageStore and ImageProvider into ImageDatabase.
David ‘Bombe’ Roden [Wed, 16 Oct 2013 05:30:09 +0000 (07:30 +0200)]
Remove ImageBuilderFactory, move ImageStore and ImageProvider into ImageDatabase.

10 years agoRename post and reply implementations; use builder to create replies.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:49:14 +0000 (22:49 +0200)]
Rename post and reply implementations; use builder to create replies.

10 years agoReturn an optional from the Core already.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:34:36 +0000 (22:34 +0200)]
Return an optional from the Core already.

10 years agoRemove randomId() and currentTime() methods from ReplyBuilder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:21:07 +0000 (22:21 +0200)]
Remove randomId() and currentTime() methods from ReplyBuilder.

10 years agoRemove AlbumBuilderFactory interface.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:14:34 +0000 (22:14 +0200)]
Remove AlbumBuilderFactory interface.

10 years agoMove AlbumProvider and AlbumStore into AlbumDatabase.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:10:48 +0000 (22:10 +0200)]
Move AlbumProvider and AlbumStore into AlbumDatabase.

10 years agoRemove randomId() method from AlbumBuilder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:08:14 +0000 (22:08 +0200)]
Remove randomId() method from AlbumBuilder.

10 years agoRemove randomId() and currentTime() methods from ImageBuilder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 20:06:13 +0000 (22:06 +0200)]
Remove randomId() and currentTime() methods from ImageBuilder.

10 years agoRemove randomId() and currentTime() from post builder, it’s the default.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 19:58:22 +0000 (21:58 +0200)]
Remove randomId() and currentTime() from post builder, it’s the default.

10 years agoAdd callback interface to post build() method.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 19:51:23 +0000 (21:51 +0200)]
Add callback interface to post build() method.

10 years agoRemove createPost(*) methods from Core.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 19:15:28 +0000 (21:15 +0200)]
Remove createPost(*) methods from Core.

10 years agoRemove copy method from post builder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 17:06:47 +0000 (19:06 +0200)]
Remove copy method from post builder.

10 years agoMove post creation into Sone, remove memory-based post builder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 17:02:32 +0000 (19:02 +0200)]
Move post creation into Sone, remove memory-based post builder.

10 years agoUse database instead of separate providers.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 05:26:30 +0000 (07:26 +0200)]
Use database instead of separate providers.

10 years agoUse database instead of Sone provider in post and post builder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 05:23:08 +0000 (07:23 +0200)]
Use database instead of Sone provider in post and post builder.

10 years agoRemove image builder.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 05:19:58 +0000 (07:19 +0200)]
Remove image builder.

10 years agoMove memory album and image to default implementation.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 05:02:58 +0000 (07:02 +0200)]
Move memory album and image to default implementation.

10 years agoExpose the database.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 05:01:26 +0000 (07:01 +0200)]
Expose the database.

10 years agoRevert "Extract superclass out of default Sone implementation."
David ‘Bombe’ Roden [Tue, 15 Oct 2013 04:47:59 +0000 (06:47 +0200)]
Revert "Extract superclass out of default Sone implementation."

This reverts commit 25d06edd6a5264cd3cf6ac736df9672f59347188.

10 years agoExpose album moving methods in the album database.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 04:42:08 +0000 (06:42 +0200)]
Expose album moving methods in the album database.

10 years agoOnly rely on the database interface.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 04:38:14 +0000 (06:38 +0200)]
Only rely on the database interface.

10 years agoMake image moving methods publicly available in the database.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 04:19:12 +0000 (06:19 +0200)]
Make image moving methods publicly available in the database.

10 years agoRename default post builder implementation.
David ‘Bombe’ Roden [Tue, 15 Oct 2013 04:14:35 +0000 (06:14 +0200)]
Rename default post builder implementation.

10 years agoExtract superclass out of default Sone implementation.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 19:56:11 +0000 (21:56 +0200)]
Extract superclass out of default Sone implementation.

10 years agoFactor out some methods. working
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:45:31 +0000 (06:45 +0200)]
Factor out some methods.

10 years agoUse static import.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:39:29 +0000 (06:39 +0200)]
Use static import.

10 years agoUse AlbumBuilderFactory when creating a new album.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:39:01 +0000 (06:39 +0200)]
Use AlbumBuilderFactory when creating a new album.

10 years agoLet Sone and Album implement AlbumBuilderFactory.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:38:50 +0000 (06:38 +0200)]
Let Sone and Album implement AlbumBuilderFactory.

10 years agoAdd method to create a new album to Sone.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:33:01 +0000 (06:33 +0200)]
Add method to create a new album to Sone.

10 years agoAdd in-memory Album implementation.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:28:23 +0000 (06:28 +0200)]
Add in-memory Album implementation.

10 years agoAdd method to get all images of an album to ImageProvider.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:26:20 +0000 (06:26 +0200)]
Add method to get all images of an album to ImageProvider.

10 years agoUse static import.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:23:35 +0000 (06:23 +0200)]
Use static import.

10 years agoAdd method to get child albums of an album to AlbumProvider.
David ‘Bombe’ Roden [Mon, 14 Oct 2013 04:23:30 +0000 (06:23 +0200)]
Add method to get child albums of an album to AlbumProvider.

10 years agoRename SoneImpl to DefaultSone, implement SoneProvider in MemoryDatabase.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 20:34:00 +0000 (22:34 +0200)]
Rename SoneImpl to DefaultSone, implement SoneProvider in MemoryDatabase.

10 years agoCreate some additional members to allow for easier testing.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 20:11:18 +0000 (22:11 +0200)]
Create some additional members to allow for easier testing.

10 years agoDon’t store sone provider in abstract post builder.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 16:42:59 +0000 (18:42 +0200)]
Don’t store sone provider in abstract post builder.

10 years agoAdd Sone database interface.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 16:15:45 +0000 (18:15 +0200)]
Add Sone database interface.

10 years agoReturn an Optional for the album image.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 00:42:53 +0000 (02:42 +0200)]
Return an Optional for the album image.

10 years agoMove methods to move an image up and down to Image.
David ‘Bombe’ Roden [Sun, 13 Oct 2013 00:18:29 +0000 (02:18 +0200)]
Move methods to move an image up and down to Image.

10 years agoSimplify moving an album up and down in its parent.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 23:18:42 +0000 (01:18 +0200)]
Simplify moving an album up and down in its parent.

10 years agoSimplify album removal.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 19:57:30 +0000 (21:57 +0200)]
Simplify album removal.

10 years agoStore album relationships.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 19:57:05 +0000 (21:57 +0200)]
Store album relationships.

10 years agoMove method to remove image from Album to Image.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 15:36:06 +0000 (17:36 +0200)]
Move method to remove image from Album to Image.

10 years agoStore DefaultAlbum in DefaultImage.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 15:35:38 +0000 (17:35 +0200)]
Store DefaultAlbum in DefaultImage.

10 years agoStore album and image relationship.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 15:34:17 +0000 (17:34 +0200)]
Store album and image relationship.

10 years agoDon’t store image explicitely after adding it to an album.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 15:31:25 +0000 (17:31 +0200)]
Don’t store image explicitely after adding it to an album.

The album builder takes care of that.

10 years agoDon’t apply function to optionals.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 15:30:43 +0000 (17:30 +0200)]
Don’t apply function to optionals.

10 years agoReformat.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 14:59:39 +0000 (16:59 +0200)]
Reformat.

10 years agoSet Sone of an album in the album builder, use album builder to add albums.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 14:58:41 +0000 (16:58 +0200)]
Set Sone of an album in the album builder, use album builder to add albums.

10 years agoRemove for-now useless test.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 14:47:03 +0000 (16:47 +0200)]
Remove for-now useless test.

10 years agoExtract album baseclass that only stores the primitives.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 14:01:55 +0000 (16:01 +0200)]
Extract album baseclass that only stores the primitives.

10 years agoFix test.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 13:55:57 +0000 (15:55 +0200)]
Fix test.

10 years agoAdd in-memory implementation of an image and its builder.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 13:44:46 +0000 (15:44 +0200)]
Add in-memory implementation of an image and its builder.

10 years agoImage builders always need to know their Sones.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 13:27:57 +0000 (15:27 +0200)]
Image builders always need to know their Sones.

10 years agoExtract another super class that does not hold anything but primitives.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 13:14:57 +0000 (15:14 +0200)]
Extract another super class that does not hold anything but primitives.

10 years agoDon’t use albums in abstract image builders.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 13:12:45 +0000 (15:12 +0200)]
Don’t use albums in abstract image builders.

10 years agoSimplify album builder.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 12:42:52 +0000 (14:42 +0200)]
Simplify album builder.

10 years agoRename album and builder implementations.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 12:41:16 +0000 (14:41 +0200)]
Rename album and builder implementations.

10 years agoMove temporary image-related classes to their final destinations.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 12:23:06 +0000 (14:23 +0200)]
Move temporary image-related classes to their final destinations.

10 years agoSimplify image builders.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 12:05:34 +0000 (14:05 +0200)]
Simplify image builders.

10 years agoExtract default Image implementation as base for all future image implementations.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 12:03:59 +0000 (14:03 +0200)]
Extract default Image implementation as base for all future image implementations.

10 years agoRemove the possibility to create images for unknown IDs.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 11:59:35 +0000 (13:59 +0200)]
Remove the possibility to create images for unknown IDs.

10 years agoAdd test for the default image builder.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 09:16:10 +0000 (11:16 +0200)]
Add test for the default image builder.

10 years agoMove required parameters for image into the image builder.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 09:16:01 +0000 (11:16 +0200)]
Move required parameters for image into the image builder.

10 years agoDetermine image dimensions correctly.
David ‘Bombe’ Roden [Fri, 28 Feb 2014 21:17:12 +0000 (22:17 +0100)]
Determine image dimensions correctly.

10 years agoMake all members of TemporaryImage final, store width and height, too.
David ‘Bombe’ Roden [Sat, 12 Oct 2013 09:09:31 +0000 (11:09 +0200)]
Make all members of TemporaryImage final, store width and height, too.

10 years agoOnly refuse to set creation time if it’s different from the current one.
David ‘Bombe’ Roden [Sun, 19 Jan 2014 13:14:57 +0000 (14:14 +0100)]
Only refuse to set creation time if it’s different from the current one.

10 years agoSet encoding in compiler plugin.
David ‘Bombe’ Roden [Fri, 13 Dec 2013 18:07:06 +0000 (19:07 +0100)]
Set encoding in compiler plugin.

11 years agoUse better check for whether the root album has been reached.
David ‘Bombe’ Roden [Fri, 22 Nov 2013 18:35:59 +0000 (19:35 +0100)]
Use better check for whether the root album has been reached.

11 years agoCopy insert URI of original Sone when parsing a new Sone.
David ‘Bombe’ Roden [Fri, 11 Oct 2013 06:22:03 +0000 (08:22 +0200)]
Copy insert URI of original Sone when parsing a new Sone.

This, once again, fixes the Rescue Mode.

11 years agoSet changed values differently.
David ‘Bombe’ Roden [Fri, 11 Oct 2013 06:21:43 +0000 (08:21 +0200)]
Set changed values differently.

11 years agoFix and relax checks.
David ‘Bombe’ Roden [Fri, 11 Oct 2013 06:21:34 +0000 (08:21 +0200)]
Fix and relax checks.

During loading most of the checks fail, effectively preventing loading.

11 years agoExtract an interface out of Sone.
David ‘Bombe’ Roden [Thu, 10 Oct 2013 19:36:46 +0000 (21:36 +0200)]
Extract an interface out of Sone.

11 years agoDon’t check for the presence of the album image in the album.
David ‘Bombe’ Roden [Thu, 10 Oct 2013 19:31:08 +0000 (21:31 +0200)]
Don’t check for the presence of the album image in the album.

As the albums are loaded and instantiated before the images are loaded,
this will inevitably fail during loading.

11 years agoAdd image builder that creates “old” images.
David ‘Bombe’ Roden [Thu, 10 Oct 2013 11:06:11 +0000 (13:06 +0200)]
Add image builder that creates “old” images.

11 years agoRemove obsolete import.
David ‘Bombe’ Roden [Thu, 10 Oct 2013 06:01:32 +0000 (08:01 +0200)]
Remove obsolete import.

11 years agoUse an album modifier for setting title, description, and album image.
David ‘Bombe’ Roden [Thu, 10 Oct 2013 06:01:27 +0000 (08:01 +0200)]
Use an album modifier for setting title, description, and album image.

The rest of modifications will follow.