Commit Graph

32 Commits

Author SHA1 Message Date
Kai S. K. Engelbart 1f44d03934 Add strong salted password hashing using PBKDF2 2020-07-11 09:25:42 +02:00
Kai S. K. Engelbart 3660dec859 Shorten event names, refactor, prepare compatibility verification 2020-06-20 13:42:42 +02:00
Kai S. K. Engelbart 872b71fbe9 Fix JPA validator warnings with explicit column names
Due to a bug in the JPA validator columns with camel case names are
flagged as missing (probably due to the case-insensitive nature of SQL).
This has been circumvented by assigning every column with a camel case
name a new name with underscores.

The inheritance strategy of the Contacts class has been changed to
single table for performance reasons.
2020-06-15 11:59:48 +02:00
Kai S. K. Engelbart fd1d7e5473 Resolved JPA validation errors
These were partially caused by an old Hibernate validator which has now
been replaced by the EclipseLink validator for the current JPA standard.
Another error was caused by the use of non-standard JPQL in the user
search query which has now been replaced by a standardized one.
2020-06-11 11:17:22 +02:00
Kai S. K. Engelbart c2775af8cf Use constants as query names, joined inheritance for contacts 2020-04-24 21:24:19 +02:00
delvh 0704f9a5c3 Contact conversion does not result in endless recursion anymore 2020-04-09 21:01:19 +02:00
Kai S. K. Engelbart 53764f1bba Configured the project to use Hibernate validation
This requires the Hibernate Tools (a part of JBoss Tools) to be
installed in Eclipse.
2020-04-09 14:15:39 +02:00
delvh 4e385396ad fixes #129 - contacts are now sent as a part of the user
(if they were not already)...
Additionally renamed some methods named `...Id()` to `...ID()`
2020-04-06 22:55:27 +02:00
delvh e6cf3af745 Restored compatability with envoy-common
additionally added NameChangeProcessor
2020-04-02 16:32:23 +02:00
delvh 4742402d8a Merge remote-tracking branch 'origin/develop' into f/groups
Conflicts:
	src/main/java/envoy/server/data/User.java
	src/main/java/envoy/server/processors/IDGeneratorRequestProcessor.java
	src/main/java/envoy/server/processors/MessageProcessor.java
2020-03-26 17:18:27 +01:00
delvh cb8750bdbb restored functionality with envoy-common (#32) 2020-03-26 16:54:12 +01:00
DieGurke 1bedd5fb7f Updated database implementation
*Added a contact abstract class that serves as a superclass for user and
group
* Added a group class
* Updated persistenceManager to fit the new contact system.
* Updated all classes that used methods, that were updated.
2020-03-25 16:34:55 +01:00
DieGurke 47473e9c47 Removed funny joke (#31)
Small cleanup
2020-03-24 18:15:47 +01:00
delvh 9020598335 Added database support to forward messages (#30)
* Added server support for forwarding messages

* added newline at EOF for any file not having one at its end
2020-03-23 22:12:27 +01:00
Kai S. K. Engelbart c1dd4fa9fb Small cleanup 2020-03-22 11:23:56 +01:00
DieGurke 275ae328d9 Merge pull request #26 from informatik-ag-ngl/f/contacts
Contacts handling on the server
2020-02-11 18:25:45 +01:00
Kai S. K. Engelbart c5017e71fc Refactored contact search, added Javadoc 2020-02-10 22:29:34 +01:00
DieGurke a96199ccd7 Implemented contact adding mechanism + database update on both clients.
* Added filtering on searchRequest response (temporary: has to be done
in query not manually in ContactsRequestProcessor.)
2020-02-10 20:02:05 +01:00
DieGurke 37f1594989 Implemented AddContact mechanism on the server
(currently unfinished an not working see stack trace for current
problem)
2020-02-09 22:16:33 +01:00
Kai S. K. Engelbart 8d4de87dbb Fixed incorrect online status
User objects were created with the status ONLINE even if the actual
status in the database was a different one. This issue has been fixed.
2020-02-09 16:01:05 +01:00
Kai S. K. Engelbart 33dc6ba4ac Implemented user search response 2020-02-08 13:53:58 +01:00
Kai S. K. Engelbart 23c4fd8f67 Working on reading multiple messages at once
The ObjectMessageReader does function normally for single messages but
will deliver corrupted objects when a message consisting of multiple
objects is received.
2020-01-29 07:45:59 +01:00
Kai S. K. Engelbart 6fe322a866 Fixed typo 2020-01-28 19:57:40 +01:00
Kai S. K. Engelbart 6cd7964f9a Added IdGenerationRequestProcessor, fixed bugs in PersistenceManager
* Removed get*ById queries
* Removed src/test/resources from pom.xml
2020-01-28 19:25:30 +01:00
DieGurke ec315f870d Interface Communication Login Credentials 2020-01-21 17:51:50 +01:00
DieGurke 1e00930d4b implemented login and registration (unfinished) 2020-01-18 23:50:41 +01:00
delvh c5f8c3c6be Added method to get contacts, although as of now all Users are returned 2020-01-18 13:28:54 +01:00
delvh dc6199806f Added EventProcessor and methods to handle MessageStatus changes
additionally cleaned up whole project, fixed some Javadoc errors and
added a few database and connection options.

Sorry for the huge commit, there was almost no time inbetween where a
commit would have been possible, as to solve every problem, a new
problem arose.
However, as of now, f/message_handling should be ready to be merged into
develop, besides that it could not be tested yet.
2020-01-11 18:28:48 +01:00
Kai S. K. Engelbart 26fc4374ca Added writing capabilities to ObjectProcessor, completed db integration
At this moment the client is not able to receive to objects sent
consecutively. This will be worked on in a future commit and should be
fixed before merging this branch into develop.
2020-01-06 14:58:28 +02:00
delvh 0ecc9cf0e9 Added PersistenceManager and Namedqueries
In theory, this code is all we need for database integration
2020-01-03 18:17:26 +01:00
delvh b83ef8b4ef Updated Javadoc 2020-01-03 16:21:35 +01:00
Kai S. K. Engelbart 9318201fd5 Added ORM classes 2020-01-02 18:50:56 +02:00