Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
d3d54050
Commit
d3d54050
authored
6 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Publish correct event for deletion
parent
ae9db0ad
Branches
Branches containing commit
No related merge requests found
Pipeline
#20560
passed with warnings with stages
in 1 minute and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/service/DefaultEntityServiceImpl.java
+2
-1
2 additions, 1 deletion
...java/de/thm/arsnova/service/DefaultEntityServiceImpl.java
with
2 additions
and
1 deletion
src/main/java/de/thm/arsnova/service/DefaultEntityServiceImpl.java
+
2
−
1
View file @
d3d54050
...
...
@@ -21,6 +21,7 @@ import com.fasterxml.jackson.databind.JsonNode;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectReader
;
import
de.thm.arsnova.event.AfterCreationEvent
;
import
de.thm.arsnova.event.AfterDeletionEvent
;
import
de.thm.arsnova.event.AfterPatchEvent
;
import
de.thm.arsnova.event.AfterUpdateEvent
;
import
de.thm.arsnova.event.BeforeCreationEvent
;
...
...
@@ -214,7 +215,7 @@ public class DefaultEntityServiceImpl<T extends Entity> implements EntityService
public
void
delete
(
final
T
entity
)
{
eventPublisher
.
publishEvent
(
new
BeforeDeletionEvent
<>(
this
,
entity
));
repository
.
delete
(
entity
);
eventPublisher
.
publishEvent
(
new
After
Update
Event
<>(
this
,
entity
));
eventPublisher
.
publishEvent
(
new
After
Deletion
Event
<>(
this
,
entity
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment