Sone.git
10 years agoInclude EMMA plugin for code coverage.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 17:12:51 +0000 (19:12 +0200)]
Include EMMA plugin for code coverage.

10 years agoRemove some very obvious javadoc comments.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:21:31 +0000 (07:21 +0200)]
Remove some very obvious javadoc comments.

10 years agoAdd more tests.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:18:30 +0000 (07:18 +0200)]
Add more tests.

10 years agoDon’t use the fingerprint of a field that has a null value.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:18:19 +0000 (07:18 +0200)]
Don’t use the fingerprint of a field that has a null value.

10 years agoTest setting a/no avatar.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:01:38 +0000 (07:01 +0200)]
Test setting a/no avatar.

10 years agoDon’t throw exception when removing a field that is not in the profile.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:01:26 +0000 (07:01 +0200)]
Don’t throw exception when removing a field that is not in the profile.

10 years agoAdd lots of tests for the profile.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 04:54:48 +0000 (06:54 +0200)]
Add lots of tests for the profile.

10 years agoDon’t throw exceptions when moving up/down the first/last profile field.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 04:54:30 +0000 (06:54 +0200)]
Don’t throw exceptions when moving up/down the first/last profile field.

10 years agoInclude hamcrest in dependencies.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:51:57 +0000 (07:51 +0200)]
Include hamcrest in dependencies.

10 years agoFix duplicate-field detection.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:51:44 +0000 (07:51 +0200)]
Fix duplicate-field detection.

10 years agoFix javadoc.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:49:31 +0000 (07:49 +0200)]
Fix javadoc.

10 years agoReturn optionals of fields.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:49:12 +0000 (07:49 +0200)]
Return optionals of fields.

10 years agoMake profile fields immutable.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:39:10 +0000 (07:39 +0200)]
Make profile fields immutable.

10 years agoUse helper method.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:08:27 +0000 (07:08 +0200)]
Use helper method.

10 years agoAdd method to set the value of a field.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:08:22 +0000 (07:08 +0200)]
Add method to set the value of a field.

10 years agoAdd test for adding a field.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:01:46 +0000 (07:01 +0200)]
Add test for adding a field.

10 years agoUse renameField method to rename fields.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:01:05 +0000 (07:01 +0200)]
Use renameField method to rename fields.

10 years agoRename FieldTest to ProfileTest.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 04:46:41 +0000 (06:46 +0200)]
Rename FieldTest to ProfileTest.

10 years agoAdd method to rename a field.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 21:06:32 +0000 (23:06 +0200)]
Add method to rename a field.

10 years agoAdd Field constructor that takes all values.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 21:05:43 +0000 (23:05 +0200)]
Add Field constructor that takes all values.

10 years agoUse XML file to test a complete Sone.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:12:59 +0000 (08:12 +0200)]
Use XML file to test a complete Sone.

10 years agoUse a real XML file for testing.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:11:07 +0000 (08:11 +0200)]
Use a real XML file for testing.

10 years agoStore all albums.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:10:32 +0000 (08:10 +0200)]
Store all albums.

10 years agoStore parent album ID in abstract album.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:10:20 +0000 (08:10 +0200)]
Store parent album ID in abstract album.

10 years agoTest that a missing timestamp causes the Sone not to be parsed.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:23:35 +0000 (22:23 +0200)]
Test that a missing timestamp causes the Sone not to be parsed.

10 years agoDon’t echo the HTML to stdout.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:17:21 +0000 (22:17 +0200)]
Don’t echo the HTML to stdout.

10 years agoDeactivate the logger for the test.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:17:06 +0000 (22:17 +0200)]
Deactivate the logger for the test.

10 years agoUse latest utils snapshot.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:16:48 +0000 (22:16 +0200)]
Use latest utils snapshot.

10 years agoReturn an optional from the Sone parser.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:13:21 +0000 (07:13 +0200)]
Return an optional from the Sone parser.

10 years agoRemove declared exception.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:11:12 +0000 (07:11 +0200)]
Remove declared exception.

10 years agoClean up imports.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:04:06 +0000 (07:04 +0200)]
Clean up imports.

10 years agoRemove declared exception, it's never thrown.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:04:02 +0000 (07:04 +0200)]
Remove declared exception, it's never thrown.

10 years agoVerify that a Sone with a too large protocol version will not be parsed.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:50:16 +0000 (06:50 +0200)]
Verify that a Sone with a too large protocol version will not be parsed.

10 years agoAdd unit test for the Sone parser.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:38:21 +0000 (06:38 +0200)]
Add unit test for the Sone parser.

10 years agoLog the content of the protocol version optionals.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:36:10 +0000 (06:36 +0200)]
Log the content of the protocol version optionals.

10 years agoOnly log the IDs of Sones.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:35:51 +0000 (06:35 +0200)]
Only log the IDs of Sones.

10 years agoStore the avatar ID differently in profile.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:35:23 +0000 (06:35 +0200)]
Store the avatar ID differently in profile.

10 years agoUse the given database instead of the core to load images.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:58:03 +0000 (02:58 +0200)]
Use the given database instead of the core to load images.

10 years agoFix synchronisation.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:32:09 +0000 (02:32 +0200)]
Fix synchronisation.

10 years agoAdd database parameter to Sone parser.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:31:56 +0000 (02:31 +0200)]
Add database parameter to Sone parser.

10 years agoClean up imports.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:09:49 +0000 (02:09 +0200)]
Clean up imports.

10 years agoActually return a Sone builder.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:09:43 +0000 (02:09 +0200)]
Actually return a Sone builder.

10 years agoStore replies to a post in a multimap.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:02:07 +0000 (02:02 +0200)]
Store replies to a post in a multimap.

10 years agoUse a multimap to store the posts directed at a Sone.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 23:48:27 +0000 (01:48 +0200)]
Use a multimap to store the posts directed at a Sone.

10 years agoUse a multimap to store the posts for a Sone.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 23:44:19 +0000 (01:44 +0200)]
Use a multimap to store the posts for a Sone.

10 years agoDon’t store/parse post ID as UUID.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 22:52:48 +0000 (00:52 +0200)]
Don’t store/parse post ID as UUID.

10 years agoRemove unnecessary parameter.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 19:14:13 +0000 (21:14 +0200)]
Remove unnecessary parameter.

10 years agoMove parsing of protocol version into its own method.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 18:43:12 +0000 (20:43 +0200)]
Move parsing of protocol version into its own method.

10 years agoMove parsing of Sone XML into its own method.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 18:17:16 +0000 (20:17 +0200)]
Move parsing of Sone XML into its own method.

10 years agoClean up imports.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 18:09:19 +0000 (20:09 +0200)]
Clean up imports.

10 years agoMove parsing of client information into its own method.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 18:09:08 +0000 (20:09 +0200)]
Move parsing of client information into its own method.

10 years agoSet client information in Sone builder.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 18:04:46 +0000 (20:04 +0200)]
Set client information in Sone builder.

10 years agoUse a modifier to set the latest edition of a Sone.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:23:25 +0000 (17:23 +0200)]
Use a modifier to set the latest edition of a Sone.

10 years agoRemove methods to manipulate a Sone’s request and insert URI.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:04:34 +0000 (17:04 +0200)]
Remove methods to manipulate a Sone’s request and insert URI.

10 years agoAdd function that converts a Sone into its request URI.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:02:27 +0000 (17:02 +0200)]
Add function that converts a Sone into its request URI.

10 years agoUse isLocal() instead of checking the insert URI.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:01:06 +0000 (17:01 +0200)]
Use isLocal() instead of checking the insert URI.

10 years agoDon’t copy the insert URI into the parsed Sone.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:00:35 +0000 (17:00 +0200)]
Don’t copy the insert URI into the parsed Sone.

10 years agoDon’t parse the (non-existing!) request URI from the Sone XML.
David ‘Bombe’ Roden [Sat, 19 Oct 2013 15:00:24 +0000 (17:00 +0200)]
Don’t parse the (non-existing!) request URI from the Sone XML.

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.