Skip to content

Feature 10786 #1403

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 2 commits into from
May 7, 2025
Merged

Feature 10786 #1403

merged 2 commits into from
May 7, 2025

Conversation

mmoqui
Copy link
Member

@mmoqui mmoqui commented Apr 30, 2025

In order to implement an automatic purger of removed contributions in the Kmelia instances, two new attributes related to the removal are added to the NodeDetail and PublicationDetail classes. Those properties, serializable, are set when a node or a publication is removed and unset once they are restored. Their management is left to the Silverpeas applications in which the contributions aren't directly deleted but just removed before a definitive deletion.

The feature in itself is done by the PR Silverpeas/Silverpeas-Components#901

mmoqui added 2 commits April 17, 2025 17:26
Rename the methods PublicationService#removePublication and
NodeService#removeNode to respectively
PublicationService#deletePublication and NodeService#deleteNode as these
methodds delete definitively the contribution. This is to introduce a
new state to these contribution types: the removal one.

Add a new business function for the publications and the nodes: the
removal. The function marks the publication or the node as being
removed; it is an intermediate state of the contribution before their
definitive deletion. This new state is dedicated to the applications
like Kmelia in which these contributions can be placed into a bin in
order to be either restored or deleted.

For doing add two new attributes in PublicationDetail and in NodeDetail
classes: removalDate and removerId for respectively the date of the
contribution removal and the unique identifier of the user invoking
this removal. Corresponding to these attributes, add the SQL fields.
Latter will drive to a new database migration step for the publications
and for the nodes.
Take into account the new properties, removalDate and removerId, in
NodeDetails and in PublicationDetails, in the persistence of these
objects.

Refactor PublicationDAO to be managed bean instead of a static class.

WAComponentRegistry is now the more priority initialization service; it
will be then executed (to load all the available Silverpeas apps) among
the first important initialization services.
Copy link

@mmoqui mmoqui merged commit 363b142 into master May 7, 2025
3 checks passed
@mmoqui mmoqui deleted the feature-10786 branch June 2, 2025 09:49
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