Commit Graph

112 Commits

Author SHA1 Message Date
a1cfd728a5 Some refactorings based on suggestions from @delvh 2020-06-14 16:40:51 +02:00
f1c49f0b95
Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
2020-06-14 16:30:46 +02:00
a9de00371d Change default logging level to finest, rename a class 2020-06-12 10:56:02 +02:00
DieGurke
5ef46d80c3 Implemented suggestions from code review 2020-06-11 15:06:06 +02:00
DieGurke
638770c75f Added creationDate variable in Contact & added pendingGroups query 2020-06-11 13:22:48 +02:00
1fffb12423 Logging envoy messages only 2020-06-11 12:08:51 +02:00
bf60e9675d Replaces print statements by logger calls
Closes #34
2020-06-11 12:06:06 +02:00
2f0fccb536 Use EnvoyLog for all packages 2020-06-11 11:45:17 +02:00
744f55de58 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
DieGurke
135e9b7f76 Fixed issue regarding the sender of a message not getting an MSCEvent
Added messageStatusChangeEvent sending to online sender if recipient
logs in and sender is online at the same time
2020-06-11 10:44:49 +02:00
DieGurke
693ef0875d Fixed invalid MessageStatusChangeEvent sending
The sender got a messageStatusChangeEvent even if the status was still
sent from the server and couldn't process it.
The server does not send this unnecessary event even more
2020-06-11 10:44:49 +02:00
DieGurke
47e03dc4f4 Started implementing group message status handling
* Group creation works
2020-06-11 10:44:48 +02:00
delvh
90103d5c49 Added debugging statement when sending an object 2020-06-11 10:44:48 +02:00
f4301caba7 Send ContactOperationEvent to the added contact
+ Updated formatter
2020-06-11 10:44:48 +02:00
0c5645157b Remove illegal table declaration for single-table inheritance hierarchy 2020-06-11 10:44:47 +02:00
DieGurke
cffe9b936f Make GroupMessage extend Message, prepared GroupMessageStatus processing 2020-06-11 10:44:47 +02:00
673e2f74d8 Fix typo in JPQL query 2020-06-11 10:44:47 +02:00
DieGurke
ab789927eb Changed unimportant stuff 2020-06-11 10:44:46 +02:00
1b81b4b3d5 Use constants as query names, joined inheritance for contacts 2020-04-24 21:24:19 +02:00
DieGurke
743aa6bc2d Implemented the GroupMessage class 2020-04-18 16:28:38 +02:00
DieGurke
7716af678a MessageProcessor and GroupMessageProcessor
Moved groupMessage stuff form MessageProcessor to extra class and
finished both processors
2020-04-18 13:27:43 +02:00
delvh
a457261ee5 Improved Login security 2020-04-10 15:53:30 +02:00
delvh
551f83672e fixed bug using wrong id of message 2020-04-09 22:31:20 +02:00
delvh
97545fc285 Contact conversion does not result in endless recursion anymore 2020-04-09 21:01:19 +02:00
8096d3ff58 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
98632f97bb Fixed several errors in GroupResizeProcessor
* a common user was passed to the persistence manager instead of its ID
* a server group was sent to its members instead of the common group
2020-04-09 13:53:06 +02:00
delvh
c6f0bff957 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
DieGurke
2fbff47752 Implemented GroupCreationProcessor and GroupResizeProcessor 2020-04-03 19:35:39 +02:00
DieGurke
64bc34cf61 Implemented Groups on the database and implemented MSChange management 2020-04-02 20:41:05 +02:00
delvh
b3ee23cd8d Restored compatability with envoy-common
additionally added NameChangeProcessor
2020-04-02 16:32:23 +02:00
delvh
0057c66d99 Created method to extract all currently online members of a group
additionally, refactored every ".Id" to ".ID"
2020-03-26 20:14:09 +01:00
delvh
f91b193d59 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
DieGurke
1d4492b3d5 Implemented a GroupCreationProcessor and revised/added Javadoc 2020-03-26 17:09:52 +01:00
delvh
6d8294a96a
restored functionality with envoy-common (#32) 2020-03-26 16:54:12 +01:00
DieGurke
422d38f093 Refactored every identifier to fit the new naming convention, pom.xml 2020-03-26 16:06:55 +01:00
DieGurke
92ee3f0c13 Implemented groups support on server
Implemented support for group messages in MessageProcessor and adjusted
IdGeneratorRequestProcessor
2020-03-25 18:22:58 +01:00
DieGurke
8c6a8e160b 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
delvh
eba02422e3 Renamed classes with a two-letter initialism according to convention 2020-03-24 18:41:26 +01:00
DieGurke
a918284615
Removed funny joke (#31)
Small cleanup
2020-03-24 18:15:47 +01:00
delvh
722f91ba91
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
1a23490461 Small cleanup 2020-03-22 11:23:56 +01:00
delvh
3edb9876a8 Fixed bug concerning modularity 2020-03-14 15:08:58 +01:00
delvh
a8f15ec6be
Changed compiler compliance to 11, modularized all packages (#29)
* added package- and module-info.java, changed JRE from 8 to 11

* moved ObjectProcessor into the processors package

Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
2020-03-07 22:04:02 +01:00
delvh
ae9d2238b6 Added newline at the end of PersistenceManager 2020-02-18 16:36:31 +01:00
delvh
e673c4e242 Added null check to ObjectMessageProcessor 2020-02-18 16:28:32 +01:00
ea6d76757e Copying received and read dates in Message#toCommonMessage() 2020-02-16 10:31:17 +01:00
1279a8cd4e Added received and read dates to database message copy constructor
Fixes #24
2020-02-15 22:47:14 +01:00
06eba6cf6c Moved PersistenceManager into data package, refactored transaction use 2020-02-15 22:43:20 +01:00
9a06ed4a45 Fixed ConnectionManager#isOnline(long), moved ConnectionManager to net 2020-02-12 22:01:32 +01:00
98cbe81e14 Increased ID generation range to 200 2020-02-12 07:53:54 +01:00