Sone.git
11 years agoMerge commit 'c30ad3a3fcfc66d0c1757a50afe413d9942d7793' into less-critical
David ‘Bombe’ Roden [Fri, 25 Jan 2013 19:14:21 +0000 (20:14 +0100)]
Merge commit 'c30ad3a3fcfc66d0c1757a50afe413d9942d7793' into less-critical

11 years agoAvoid retaining multiple copies of elements.
David ‘Bombe’ Roden [Fri, 25 Jan 2013 19:13:58 +0000 (20:13 +0100)]
Avoid retaining multiple copies of elements.

11 years agoFix retrieval of post replies.
David ‘Bombe’ Roden [Fri, 25 Jan 2013 19:09:32 +0000 (20:09 +0100)]
Fix retrieval of post replies.

11 years agoMake constructor injectable.
David ‘Bombe’ Roden [Fri, 25 Jan 2013 18:18:43 +0000 (19:18 +0100)]
Make constructor injectable.

11 years agoMerge commit '173eb2df26ebc15a6aa5565ec15dfad37bfa61a1' into run
David ‘Bombe’ Roden [Fri, 25 Jan 2013 18:07:55 +0000 (19:07 +0100)]
Merge commit '173eb2df26ebc15a6aa5565ec15dfad37bfa61a1' into run

Conflicts:
src/main/java/net/pterodactylus/sone/core/Core.java

11 years agoOnly list replies whose posts exist.
David ‘Bombe’ Roden [Fri, 25 Jan 2013 17:19:33 +0000 (18:19 +0100)]
Only list replies whose posts exist.

11 years agoShut down downloader thread pool when stopping the core.
David ‘Bombe’ Roden [Fri, 25 Jan 2013 06:35:43 +0000 (07:35 +0100)]
Shut down downloader thread pool when stopping the core.

11 years agoMerge branch 'less-critical' into run
David ‘Bombe’ Roden [Fri, 25 Jan 2013 06:23:10 +0000 (07:23 +0100)]
Merge branch 'less-critical' into run

11 years agoOnly run a single core!
David ‘Bombe’ Roden [Thu, 24 Jan 2013 20:58:28 +0000 (21:58 +0100)]
Only run a single core!

11 years agoAdd filter for replies with posts.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 06:43:14 +0000 (07:43 +0100)]
Add filter for replies with posts.

11 years agoMake post returned by post reply optional.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 06:42:59 +0000 (07:42 +0100)]
Make post returned by post reply optional.

11 years agoReturn ID of the post from post reply.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 06:42:08 +0000 (07:42 +0100)]
Return ID of the post from post reply.

11 years agoMake post returned by post provider optional.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 05:41:29 +0000 (06:41 +0100)]
Make post returned by post provider optional.

11 years agoMake post reply returned by provider optional.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 05:22:59 +0000 (06:22 +0100)]
Make post reply returned by provider optional.

11 years agoMerge commit 'fcabe38e9b3abacc0d580bf0513600858aee2eca' into less-critical
David ‘Bombe’ Roden [Thu, 24 Jan 2013 05:10:32 +0000 (06:10 +0100)]
Merge commit 'fcabe38e9b3abacc0d580bf0513600858aee2eca' into less-critical

Conflicts:
src/main/java/net/pterodactylus/sone/core/Core.java

11 years agoUse different way to get replies for a post.
David ‘Bombe’ Roden [Thu, 24 Jan 2013 05:06:54 +0000 (06:06 +0100)]
Use different way to get replies for a post.

11 years agoFix checks for ID and time.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 06:57:29 +0000 (07:57 +0100)]
Fix checks for ID and time.

11 years agoUse convenience method to get post builder.
David ‘Bombe’ Roden [Wed, 23 Jan 2013 22:02:45 +0000 (23:02 +0100)]
Use convenience method to get post builder.

11 years agoMerge commit 'da609f721e54691f27113e877a19637bd332abc3' into less-critical
David ‘Bombe’ Roden [Wed, 23 Jan 2013 21:57:30 +0000 (22:57 +0100)]
Merge commit 'da609f721e54691f27113e877a19637bd332abc3' into less-critical

11 years agoDon’t remove ticker object when notification is shown.
David ‘Bombe’ Roden [Wed, 23 Jan 2013 06:02:35 +0000 (07:02 +0100)]
Don’t remove ticker object when notification is shown.

This will prevent an NPE if the Sone is unlocked.

11 years agoStore Sone IDs in with Sone following times.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 10:26:27 +0000 (11:26 +0100)]
Store Sone IDs in with Sone following times.

11 years agoOnly store IDs of Sones in replies.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 09:31:48 +0000 (10:31 +0100)]
Only store IDs of Sones in replies.

11 years agoOnly store sender and recipient IDs in a post.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 09:22:29 +0000 (10:22 +0100)]
Only store sender and recipient IDs in a post.

11 years agoMake posts (more or less) immutable.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 08:55:29 +0000 (09:55 +0100)]
Make posts (more or less) immutable.

11 years agoMake replies (more or less) immutable after creation.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 08:46:05 +0000 (09:46 +0100)]
Make replies (more or less) immutable after creation.

11 years agoOnly store the post ID in the reply.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 08:38:18 +0000 (09:38 +0100)]
Only store the post ID in the reply.

11 years agoRemove method to create Sone URIs.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 08:31:53 +0000 (09:31 +0100)]
Remove method to create Sone URIs.

11 years agoFix checks for ID and time.
David ‘Bombe’ Roden [Tue, 22 Jan 2013 06:57:29 +0000 (07:57 +0100)]
Fix checks for ID and time.

11 years agoAdd helper for Sone URIs.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 21:56:42 +0000 (22:56 +0100)]
Add helper for Sone URIs.

11 years agoImplement post reply provider interface in core.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 15:48:42 +0000 (16:48 +0100)]
Implement post reply provider interface in core.

11 years agoAdd post reply provider interface.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 15:48:28 +0000 (16:48 +0100)]
Add post reply provider interface.

11 years agoRemove unnecessary type parameter.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 14:14:17 +0000 (15:14 +0100)]
Remove unnecessary type parameter.

11 years agoAdd builder for post replies.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 13:36:37 +0000 (14:36 +0100)]
Add builder for post replies.

11 years agoRemove possibility to create new replies from core interface.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 13:36:06 +0000 (14:36 +0100)]
Remove possibility to create new replies from core interface.

11 years agoAdd post builder.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 10:14:13 +0000 (11:14 +0100)]
Add post builder.

11 years agoRemove possibility to create new posts from post provider interface.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 10:01:30 +0000 (11:01 +0100)]
Remove possibility to create new posts from post provider interface.

11 years agoReplace utils’ Ticker by Java’s ScheduledExecutorService.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 05:54:21 +0000 (06:54 +0100)]
Replace utils’ Ticker by Java’s ScheduledExecutorService.

11 years agoRevert "Replace utils’ Numbers by Guava’s Optional and Ints/Longs.tryParse."
David ‘Bombe’ Roden [Fri, 18 Jan 2013 05:27:52 +0000 (06:27 +0100)]
Revert "Replace utils’ Numbers by Guava’s Optional and Ints/Longs.tryParse."

This reverts commit d5efb086bee8f103cbe90c7a953ffbb7ff27b689 because Ints/
Longs.tryParse() throws an NPE if the given String is null.

11 years agoHelp the compile find the right constructor.
David ‘Bombe’ Roden [Fri, 18 Jan 2013 05:27:39 +0000 (06:27 +0100)]
Help the compile find the right constructor.

11 years agoReplace utils’ Hex by Guava’s BaseEncoding.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 16:19:55 +0000 (17:19 +0100)]
Replace utils’ Hex by Guava’s BaseEncoding.

11 years agoSuppress warning about synthetic accessors.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 16:00:29 +0000 (17:00 +0100)]
Suppress warning about synthetic accessors.

11 years agoReplace utils’ Numbers by Guava’s Optional and Ints/Longs.tryParse.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 16:00:12 +0000 (17:00 +0100)]
Replace utils’ Numbers by Guava’s Optional and Ints/Longs.tryParse.

11 years agoReplace utils’ Digits and custom time constants by Java’s TimeUnit.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 15:05:42 +0000 (16:05 +0100)]
Replace utils’ Digits and custom time constants by Java’s TimeUnit.

11 years agoReplace utils’ HashCode by Java’s hashCode().
David ‘Bombe’ Roden [Thu, 17 Jan 2013 14:41:50 +0000 (15:41 +0100)]
Replace utils’ HashCode by Java’s hashCode().

Actually, Collection.hashCode() is already required to calculate a “good” hashcode
to fulfill the contract of equals() and hashCode().

11 years agoReplace utils’ Default with Guava’s Optional.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 14:29:23 +0000 (15:29 +0100)]
Replace utils’ Default with Guava’s Optional.

11 years agoReplace utils’ StreamCopier by Guava’s ByteStreams.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 14:21:13 +0000 (15:21 +0100)]
Replace utils’ StreamCopier by Guava’s ByteStreams.

11 years agoReplace utils’ Validator with Guava’s Predicate.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 14:17:48 +0000 (15:17 +0100)]
Replace utils’ Validator with Guava’s Predicate.

11 years agoDon’t declare exceptions that are never thrown.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 13:31:25 +0000 (14:31 +0100)]
Don’t declare exceptions that are never thrown.

11 years agoUpdate copyright headers.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 13:23:16 +0000 (14:23 +0100)]
Update copyright headers.

11 years agoFix header comments.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 13:12:14 +0000 (14:12 +0100)]
Fix header comments.

11 years agoFormatting.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 13:14:10 +0000 (14:14 +0100)]
Formatting.

11 years agoExtract Reply and PostReply interfaces.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 13:13:49 +0000 (14:13 +0100)]
Extract Reply and PostReply interfaces.

11 years agoMove the core’s preferences into their own type.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 12:12:44 +0000 (13:12 +0100)]
Move the core’s preferences into their own type.

11 years agoFormatting fixes.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 12:00:02 +0000 (13:00 +0100)]
Formatting fixes.

11 years agoTrim texts of posts and replies before posting.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 11:59:49 +0000 (12:59 +0100)]
Trim texts of posts and replies before posting.

11 years agoReplace utils’ Validation by Guava’s Preconditions.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 11:59:30 +0000 (12:59 +0100)]
Replace utils’ Validation by Guava’s Preconditions.

11 years agoShow all javadoc information, after all it’s for developers.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 09:26:58 +0000 (10:26 +0100)]
Show all javadoc information, after all it’s for developers.

11 years agoAdd javadoc overview file.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 09:23:31 +0000 (10:23 +0100)]
Add javadoc overview file.

11 years agoChange visibility of hit mapper.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 09:23:16 +0000 (10:23 +0100)]
Change visibility of hit mapper.

11 years agoFix javadoc plugin configuration.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 09:23:02 +0000 (10:23 +0100)]
Fix javadoc plugin configuration.

11 years agoFix javadoc tags.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 09:00:45 +0000 (10:00 +0100)]
Fix javadoc tags.

11 years agoConvert plugin replies to EventBus-based events.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 06:38:03 +0000 (07:38 +0100)]
Convert plugin replies to EventBus-based events.

11 years agoConvert identity events into EventBus-based events.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:59:16 +0000 (06:59 +0100)]
Convert identity events into EventBus-based events.

11 years agoConvert update events to EventBus-based events.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:36:17 +0000 (06:36 +0100)]
Convert update events to EventBus-based events.

11 years agoReformat.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:32:21 +0000 (06:32 +0100)]
Reformat.

11 years agoConvert Sone insert events to EventBus-based events.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:32:12 +0000 (06:32 +0100)]
Convert Sone insert events to EventBus-based events.

11 years agoConvert image insert events to EventBus-based events.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:17:47 +0000 (06:17 +0100)]
Convert image insert events to EventBus-based events.

11 years agoOnly create new Sones if create is true.
David ‘Bombe’ Roden [Thu, 17 Jan 2013 05:10:00 +0000 (06:10 +0100)]
Only create new Sones if create is true.

11 years agoAutomatically register all injected objects with the event bus.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 21:33:19 +0000 (22:33 +0100)]
Automatically register all injected objects with the event bus.

11 years agoRemove core listener.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 21:33:04 +0000 (22:33 +0100)]
Remove core listener.

11 years agoConvert “image insert failed” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 21:31:58 +0000 (22:31 +0100)]
Convert “image insert failed” into EventBus-based event.

11 years agoConvert “image insert finished” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 20:58:49 +0000 (21:58 +0100)]
Convert “image insert finished” into EventBus-based event.

11 years agoConvert “image insert aborted” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 20:56:11 +0000 (21:56 +0100)]
Convert “image insert aborted” into EventBus-based event.

11 years agoConvert “image is inserted” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:32:48 +0000 (19:32 +0100)]
Convert “image is inserted” into EventBus-based event.

11 years agoAdd base class for image events.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:32:24 +0000 (19:32 +0100)]
Add base class for image events.

11 years agoConvert “update found” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:27:47 +0000 (19:27 +0100)]
Convert “update found” into EventBus-based event.

11 years agoConvert “Sone insert was aborted” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:22:45 +0000 (19:22 +0100)]
Convert “Sone insert was aborted” into EventBus-based event.

11 years agoConvert “Sone was inserted” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:18:42 +0000 (19:18 +0100)]
Convert “Sone was inserted” into EventBus-based event.

11 years agoConvert “Sone is being inserted” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:14:56 +0000 (19:14 +0100)]
Convert “Sone is being inserted” into EventBus-based event.

11 years agoConvert “Sone unlocked” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:10:27 +0000 (19:10 +0100)]
Convert “Sone unlocked” into EventBus-based event.

11 years agoConvert “Sone locked” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:08:19 +0000 (19:08 +0100)]
Convert “Sone locked” into EventBus-based event.

11 years agoConvert “post reply removed” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 18:02:53 +0000 (19:02 +0100)]
Convert “post reply removed” into EventBus-based event.

11 years agoConvert “post removed” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 17:58:27 +0000 (18:58 +0100)]
Convert “post removed” into EventBus-based event.

11 years agoConvert “Sone removed” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 17:53:57 +0000 (18:53 +0100)]
Convert “Sone removed” into EventBus-based event.

11 years agoFix javadoc.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 17:51:45 +0000 (18:51 +0100)]
Fix javadoc.

11 years agoCreate a new set, the returned set is immutable.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 17:49:09 +0000 (18:49 +0100)]
Create a new set, the returned set is immutable.

11 years agoAdd javadoc.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 17:48:46 +0000 (18:48 +0100)]
Add javadoc.

11 years agoConvert “post reply marked as known” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 16:25:15 +0000 (17:25 +0100)]
Convert “post reply marked as known” into EventBus-based event.

11 years agoConvert “post marked as known” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 16:13:24 +0000 (17:13 +0100)]
Convert “post marked as known” into EventBus-based event.

11 years agoConvert “Sone marked as known” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 15:43:55 +0000 (16:43 +0100)]
Convert “Sone marked as known” into EventBus-based event.

11 years agoConvert “new post reply found” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 15:35:35 +0000 (16:35 +0100)]
Convert “new post reply found” into EventBus-based event.

11 years agoAdd base class for post reply events.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 15:35:24 +0000 (16:35 +0100)]
Add base class for post reply events.

11 years agoConvert “new post found” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 15:22:05 +0000 (16:22 +0100)]
Convert “new post found” into EventBus-based event.

11 years agoAdd base class for post events.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 15:21:36 +0000 (16:21 +0100)]
Add base class for post events.

11 years agoConvert “new Sound found” into EventBus-based event.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:27:57 +0000 (15:27 +0100)]
Convert “new Sound found” into EventBus-based event.

11 years agoAdd base class for Sone events.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:27:43 +0000 (15:27 +0100)]
Add base class for Sone events.

11 years agoAdd web interface as listener for event bus.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:29:00 +0000 (15:29 +0100)]
Add web interface as listener for event bus.

11 years agoAdd event bus to Core.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:28:34 +0000 (15:28 +0100)]
Add event bus to Core.

11 years agoUse Guava to sort the hits.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:15:53 +0000 (15:15 +0100)]
Use Guava to sort the hits.

11 years agoReplace utils’ Mapper(s) by Guava’s FluentIterable and Function.
David ‘Bombe’ Roden [Wed, 16 Jan 2013 14:15:33 +0000 (15:15 +0100)]
Replace utils’ Mapper(s) by Guava’s FluentIterable and Function.