Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
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
John Samuel Ako Deutesfeld
ARSnova Backend
Commits
8c9aedaf
Commit
8c9aedaf
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add missing interface for event handling
parent
88da4454
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/services/CommentServiceImpl.java
+7
-1
7 additions, 1 deletion
...main/java/de/thm/arsnova/services/CommentServiceImpl.java
with
7 additions
and
1 deletion
src/main/java/de/thm/arsnova/services/CommentServiceImpl.java
+
7
−
1
View file @
8c9aedaf
...
...
@@ -13,6 +13,7 @@ import de.thm.arsnova.persistance.CommentRepository;
import
de.thm.arsnova.persistance.SessionRepository
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisherAware
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.stereotype.Service
;
...
...
@@ -23,7 +24,7 @@ import java.util.List;
* Performs all comment related operations.
*/
@Service
public
class
CommentServiceImpl
extends
EntityService
<
Comment
>
implements
CommentService
{
public
class
CommentServiceImpl
extends
EntityService
<
Comment
>
implements
CommentService
,
ApplicationEventPublisherAware
{
private
UserService
userService
;
private
CommentRepository
commentRepository
;
...
...
@@ -43,6 +44,11 @@ public class CommentServiceImpl extends EntityService<Comment> implements Commen
this
.
userService
=
userService
;
}
@Override
public
void
setApplicationEventPublisher
(
ApplicationEventPublisher
applicationEventPublisher
)
{
this
.
publisher
=
applicationEventPublisher
;
}
@Override
@PreAuthorize
(
"isAuthenticated()"
)
public
boolean
save
(
final
Comment
comment
)
{
...
...
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