Commit Graph

72 Commits (Voter-Registry)

Author SHA1 Message Date
Vladimir Eliezer Tokarev 7fc0af2b1f Added logging to Voter-Registry 2016-04-15 06:51:36 -07:00
Vladimir Eliezer Tokarev 47f68acae4 working version of VoterRegistry with localBulletinBoardServer. 2016-04-15 04:11:54 -07:00
Vladimir Eliezer Tokarev 630588ca5b Put some unused files into git ignore 2016-04-15 03:11:47 -07:00
Vladimir Eliezer Tokarev 14d6759803 The tests suing LocalBullteinBoardClient instead of the Cached one. 2016-04-01 04:12:21 -07:00
Vladimir Eliezer Tokarev 25781f40f7 Changed AsyncVoterRegistry to use CachedBulletinBoardClient
Instead of using ThreadedBulletinBoardClient.
The test have been changed to use LocalBulletinBoardClient.
2016-04-01 02:20:47 -07:00
Vladimir Eliezer Tokarev 01874f7d1c Removed alll the printStackTrace. 2016-03-26 04:16:08 -07:00
Vladimir Eliezer Tokarev 7f39badaf7 Removed the system.out.println. 2016-03-26 04:14:27 -07:00
Vladimir Eliezer Tokarev 259b4c2ae5 Anded return statment after onFailure for the object dont send onSucces. 2016-03-26 04:13:45 -07:00
Vladimir Eliezer Tokarev f3ec49acc7 Removed the usage of the collection of digital signers 2016-03-26 04:11:09 -07:00
Vladimir Eliezer Tokarev b8cc12dfc1 Removed serialization from the project (we have protobufs!). 2016-03-26 03:53:53 -07:00
Vladimir Eliezer Tokarev 8140dcd516 Changed the documentation of some files to document things that have changed since last commit. 2016-03-18 10:53:01 -07:00
Vladimir Eliezer Tokarev c767d8af58 Changed the writing of all the groups ids of one simple voter. 2016-03-18 10:42:07 -07:00
Vladimir Eliezer Tokarev 37002a7f1e Changed the getLatestMessage to be java 7 syntax 2016-03-12 05:50:42 -08:00
Vladimir Eliezer Tokarev b4661d0fed Splited LatestMessagesCallBack into number of callbacks according to their destanation. 2016-03-12 05:23:51 -08:00
Vladimir Eliezer Tokarev a9d96e59b2 Correcting arbel peled cr 2016-03-11 06:02:09 -08:00
Vladimir Eliezer Tokarev 4fac4bbb8c Changed the usage of test from (junit 3 to 4) from extend to @Test. 2016-03-05 06:38:12 -08:00
Vladimir Eliezer Tokarev 6d807cdd4d Added the option to check if some voter have voted already. 2016-03-05 06:33:07 -08:00
Vladimir Eliezer Tokarev 4d72d6083e Changed addVoterToGroup to setVotersGroup. 2016-03-05 03:20:07 -08:00
Vladimir Eliezer Tokarev da614c13ab Changed the signatures of methods according to java standarts (camelCaseConvention). 2016-03-05 02:36:35 -08:00
Vladimir Eliezer Tokarev 4b31e87d07 Changed the code according to Arbel Peled CR. 2016-03-04 08:53:42 -08:00
Vladimir Eliezer Tokarev 2d72822405 Changed the MessageCollectionUtils file and the files that affacted by this change. 2016-03-04 08:26:55 -08:00
Vladimir Eliezer Tokarev 9828832553 Changed the type of the message validator and reformated the classes in an appropriate way. 2016-03-04 07:22:34 -08:00
Vladimir Eliezer Tokarev d9272c9f94 Renamed SimpleRegistry to Registry. 2016-03-04 06:06:37 -08:00
Vladimir Eliezer Tokarev 9c52eff109 Updated the VoterRegistry.proto file according to the new timestamp of the unsingedBulletinBoardMessage. 2016-03-04 06:05:06 -08:00
Vladimir Eliezer Tokarev 6359f74a7b Updated the VoterRegistry.proto file according to the new timestamp of the unsingedBulletinBoardMessage. 2016-03-04 06:02:53 -08:00
Vladimir Eliezer Tokarev 843d50c276 changed the files according to the new futureInterface. 2016-03-04 05:36:48 -08:00
Vladimir Eliezer Tokarev 311d1e8e8e Removed the voterRegistryMessage and swaped the usage of it to BulletinBoardMessage 2016-02-27 03:55:45 -08:00
Vladimir Eliezer Tokarev 87420a9d7d Removed the voterRegistryMessage and swaped the usage of it to BulletinBoardMessage 2016-02-27 03:48:51 -08:00
Vladimir Eliezer Tokarev 5169c935bf Changed the usage of timestamp to miliseconds and removed the aqurate timestamp 2016-02-27 03:00:14 -08:00
Vladimir Eliezer Tokarev 097aad4e7b Changed the enumartion of RegistryTags to abstract class with static final strings as tags 2016-02-27 01:27:19 -08:00
Vladimir Eliezer Tokarev 64a9356dc2 Change part of the code (java 8 usage) for gralde to be able to run the test and not fail. 2016-02-26 05:52:03 -08:00
Vladimir Eliezer Tokarev 230dfe6d3f Realocated the VoterRegistry.proto file and changed the usage of it 2016-02-26 05:17:29 -08:00
Vladimir Eliezer Tokarev c8e747285c Added the verefication process to the receiving of messages from voter registry 2016-02-26 04:54:39 -08:00
Vladimir Eliezer Tokarev 16a3102ca4 Replaced part of the files according to Arbel Peled CR and remove unnessesry files 2016-02-25 21:56:46 -08:00
Vladimir Eliezer Tokarev 20d2b3e68c Ended the refactoring of the code acording to Arbel Peled first CR commit 2016-02-25 21:45:52 -08:00
Vladimir Eliezer Tokarev 6ec0d4a668 Changed the simple voter registry tests (all passes) to the new strcutrue of the registry 2016-02-20 08:54:22 -08:00
Vladimir Eliezer Tokarev 3347a6c42d Refactoring the code of voter-registry tests according to Arbel Peled CR 2016-02-20 07:48:10 -08:00
Vladimir Eliezer Tokarev 8c0e7f57bb Refactoring the code of voter-registry tests according to Arbel Peled CR 2016-02-19 08:41:02 -08:00
Vladimir Eliezer Tokarev 64ccaff508 Refactoring the code of voter-registry according to Arbel Peled CR 2016-02-19 06:33:32 -08:00
Vladimir Eliezer Tokarev 298dd5bf6e Refactoring the code of voter-registry according to Arbel Peled CR 2016-02-19 06:18:28 -08:00
Vladimir Eliezer Tokarev bb4cc5b087 Refactoring the code of voter-registry according to Arbel Peled CR 2016-02-19 06:17:43 -08:00
Vladimir Eliezer Tokarev 414452db84 Added The protobufs file and its java representation Those protobufs are representing the messages that the registry will use when communicating with the bulletin-board
Summary:
D:/Work/Wombat Working/voter-registry/comment-info.txt

Changed the location of the protobufs file The location have been changed to create order in the packages

Changed the location of the  ProtobufsMessages file so that the Registry file could use it freely

Changed the location of the Protobufs file and added the Registry class The protobufs files location was changed for the right location of the packages for Registry class be able to use the protobufs files

Changed the location of the ProtobufsMessages file for creating more organized project

Created the SimpleRegistry file SimpleRegistry expose the ability of manging voters information (their groups, and personal data)

Created RegistryTagTypes file this file have the different tags for registry messages

Changed the SimpleRegistry file started to implement the different methods of this class (such as created basic messages)

Changed the ProtobufMessages file now using only the basic registry messages

Changed the SimpleRegistry file Managed to create the signatory and add empty builder

Added the AccurateTimestamp file This file converts string timestamp to timestamp and the other way , its used for the SimpleRegistry tags

Moved the AccurateTimeStamp and the RegistryTagTypes to package called util This way the project files are more organized

Add the MessagesUtil file This file contain helpfull methods for working with messages (such as basicMessage and BulletinBoardMessage)

Created VoterRegistryMessage VoterRegistryMessage extending the abilities of the basic message also changed the name of  MessagesUtils  to CollectionMessagesUtils because its suits more this class destination

Changed the simpleRegistry file Edited the GetPersonIDDetails method , and refactored the basic methods of upload data to BulletinBoardServer

Added the SimpleRegistryTest This object tests the simple registry functionality

Added the SimpleRegistryTest This object tests the simple registry functionality

Changed the RegistryTagsType to RegistryTags The Name RegistryTags more indicative

Added The Wombat Code And Documentation This file describes the conventions of the wombat project

Changed the SimpleRegistry and VoterRegistryMessage Documentation The documentation was partial in part of the methods

Changed the SimpleRegistry to work with UnsignedBulletinBoardMessage The basicMessage is not needed

Changed the SimpleRegistry to work with UnsignedBulletinBoardMessage The basicMessage is not needed

Changed the VoterRegistryMessage to wrap UnsignedBulletinBoardMessage there is no need to wrap unused basic message when using UnsignedBulletinBoardMessage

Re-organized the voter-registry Since there no need for basicMessage i have removed it, and changed few methods to be in language level 7

Re-organized the voter-registry Since there no need for basicMessage i have removed it, and changed few methods to be in language level 7

added the RegistryInstance interface Which gives the basic registry functionality (because there going to be at least two registries)

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Added testing to the SimpleRegistryTest class The Test checking that SetVoter AddVoter AddToGroup RemoveFromGroup methods working.

Added testing to the SimpleRegistryTest class The Test checking that SetVoter AddVoter AddToGroup RemoveFromGroup methods working.

Test Plan: The idea is to create number of BulletinBoardMessage's that and post them, then ask from the server for message with relevant filter and check that all the messages that have been posted there.

Reviewers: arbel.peled

Differential Revision: https://proj-cs.idc.ac.il/D1
2016-02-12 07:37:32 -08:00
Vladimir Eliezer Tokarev 003720839c Added testing to the SimpleRegistryTest class
The Test checking that SetVoter AddVoter AddToGroup RemoveFromGroup methods working.
2016-01-30 02:30:12 -08:00
Vladimir Eliezer Tokarev 6020ed3ab8 Changed the SimpleRegistry
The new Simple Registry works according to the RegistryInstance interface
2016-01-23 09:16:57 -08:00
Vladimir Eliezer Tokarev 68caeee114 Changed the SimpleRegistry
The new Simple Registry works according to the RegistryInstance interface
2016-01-23 05:51:41 -08:00
Vladimir Eliezer Tokarev c30ea072f2 Changed the SimpleRegistry
The new Simple Registry works according to the RegistryInstance interface
2016-01-23 03:31:04 -08:00
Vladimir Eliezer Tokarev 7a167639db added the RegistryInstance interface
Which gives the basic registry functionality (because there going to be at least two registries)
2016-01-23 03:29:29 -08:00
Vladimir Eliezer Tokarev 01604d1acb Re-organized the voter-registry
Since there no need for basicMessage i have removed it,
and changed few methods to be in language level 7
2016-01-22 10:22:36 -08:00
Vladimir Eliezer Tokarev 89bac8d346 Re-organized the voter-registry
Since there no need for basicMessage i have removed it,
and changed few methods to be in language level 7
2016-01-22 08:14:13 -08:00
Vladimir Eliezer Tokarev dfc5bf4b24 Changed the VoterRegistryMessage to wrap UnsignedBulletinBoardMessage
there is no need to wrap unused basic message when using UnsignedBulletinBoardMessage
2016-01-22 08:03:52 -08:00