Skip to content

Bug #14595 #893

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

Merged
merged 1 commit into from
Mar 5, 2025
Merged

Bug #14595 #893

merged 1 commit into from
Mar 5, 2025

Conversation

mmoqui
Copy link
Member

@mmoqui mmoqui commented Feb 27, 2025

This PR is related to Silverpeas/Silverpeas-Core#1390

Adds specific lifecycle CDI stereotype to some beans in order to be able, in the futur, to enable the management of the beans by CDI for only those being annotated with CDI stereotype annotations.

Provide another solution to the fix of the bug based upon the system event notification mechanism. In ResourcesManager component:

  • Add listeners of events related to the remove (directly or not) of users from the Manager profile instance (role name 'responsable').
  • Add listeners of events related to the remove of a user from a group that is declared in the Manager profile (role name 'responsable').
  • To allow to update the validators list of the resources managed by the component according to the events received by the listeners, the ResourceRepository and the ResourceService classes have been updated.
  • Add integration tests to ensure the listeners work correctly.

Adds specific lifecycle CDI stereotype to some beans in order to be
able, in the futur, to enable the management of the beans by CDI for
only those being annotated with CDI stereotype annotations.

Provide another solution to the fix of the bug based upon the system
event notification mechanism. In ResourcesManager component:
- Add listeners of events related to the remove (directly or not) of
  users from the Manager profile instance (role name 'responsable').
- Add listeners of events related to the remove of a user from a group
  that is declared in the Manager profile (role name 'responsable').
- To allow to update the validators list of the resources managed by the
  component according to the events received by the listeners, the
  ResourceRepository and the ResourceService classes have been updated.
- Add integration tests to ensure the listeners work correctly.
Copy link

@mmoqui mmoqui merged commit b388f54 into master Mar 5, 2025
3 checks passed
@mmoqui mmoqui deleted the bug-14595-6.5 branch March 19, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant