Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DATAREST-836 Provide ability to handle 'after' Http findOne event #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
varpa89 wants to merge 1 commit into spring-projects:main
base: main
Choose a base branch
Loading
from varpa89:issue/DATAREST-836

Conversation

@varpa89
Copy link

@varpa89 varpa89 commented Jun 5, 2016
edited
Loading

At the moment to read item resource by ID spring data rest uses JPA repository 'findOne' method.
There are some different use cases to use this method:

  1. Custom jackson deserializer (via RepositoryInvoker.invokeFindOne())
  2. Spring data rest RepositoryEntityController (via RepositoryInvoker.invokeFindOne())
  3. Another application business logic (via JPA repository)
    In some use cases we need
  4. To secure findOne
  5. To count usage of findOne from HTTP requests
    Provide security via findOne in some cases make different troubles (deserialization an entity to object by ID) and may be unnecessary.
    In this issue I suggest to implement HandleAfterFindOne annotation and AfterFindOneEvent event and publish them in RepositoryEntityController. So we could use annotated handlers

Copy link

@varpa89 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Copy link

@varpa89 Thank you for signing the Contributor License Agreement!

varpa89 reacted with thumbs up emoji

@gregturn gregturn changed the base branch from master to main April 16, 2021 17:56
@odrotbohm odrotbohm force-pushed the main branch 3 times, most recently from 63ac127 to cfb7079 Compare September 21, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /