Skip to content
En échec

Changes

Summary

  1. Feature #10786 (details)
  2. Feature #10786 (details)
Commit acaceb7f692fdda527f87c9b5063dc0a418b0735 by Miguel Moquillon
Feature #10786

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.
The file was addedcore-configuration/src/main/config/migrations/db/oracle/publication/022/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/node/008/create_constraint.sql
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/model/NodeDetail.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/service/NodeService.java (diff)
The file was modifiedcore-library/src/integration-test/resources/node-create-database.sql (diff)
The file was addedcore-configuration/src/main/config/migrations/db/h2/publication/022/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/node/up007/alter_table.sql
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/dao/PublicationDAO.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/publication/up021/alter_table.sql
The file was modifiedcore-library/src/integration-test/java/org/silverpeas/core/contribution/tracking/ContributionModificationTrackingIT.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/node/008/create_table.sql
The file was modifiedcore-library/src/main/java/org/silverpeas/core/admin/component/model/WAComponent.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/h2/node/008/create_table.sql
The file was modifiedcore-web/src/integration-test/resources/org/silverpeas/core/webapi/selection/create-table.sql (diff)
The file was addedcore-configuration/src/main/config/migrations/db/h2/node/up007/alter_table.sql
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/service/DefaultPublicationService.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/oracle/publication/022/create_index.sql
The file was addedcore-configuration/src/main/config/migrations/db/oracle/node/up007/alter_table.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/publication/022/create_index.sql
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/admin/create-assign-rights-database.sql (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/service/DefaultNodeService.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/publication/022/create_table.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/publication/022/create_table.sql
The file was modifiedcore-configuration/src/main/config/migrations/modules/publication-migration.xml (diff)
The file was addedcore-configuration/src/main/config/migrations/db/oracle/publication/022/create_table.sql
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/dao/QueryStringFactory.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/dao/NodeDAO.java (diff)
The file was addedcore-configuration/src/main/config/migrations/db/h2/node/008/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/h2/publication/022/create_table.sql
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/node/up007/alter_table.sql
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/create-database.sql (diff)
The file was addedcore-configuration/src/main/config/migrations/db/h2/publication/up021/alter_table.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/node/008/create_table.sql
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/tracking/create-table.sql (diff)
The file was addedcore-configuration/src/main/config/migrations/db/oracle/node/008/create_table.sql
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/node/service/create-database.sql (diff)
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/publication/022/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/oracle/publication/up021/alter_table.sql
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/node/008/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/postgresql/publication/022/create_index.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/publication/022/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/oracle/node/008/create_constraint.sql
The file was addedcore-configuration/src/main/config/migrations/db/h2/publication/022/create_index.sql
The file was addedcore-configuration/src/main/config/migrations/db/mssql/publication/up021/alter_table.sql
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/admin/service/create-administration-database.sql (diff)
The file was modifiedcore-configuration/src/main/config/migrations/modules/node-migration.xml (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/model/PublicationDetail.java (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/create-table.sql (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/service/PublicationService.java (diff)
Commit 363b14243293672adfe780c424df4ec244d031c4 by Miguel Moquillon
Feature #10786

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.
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetSelectByFatherPK_true_userId.txt (diff)
The file was modifiedcore-library/src/integration-test/java/org/silverpeas/core/contribution/publication/service/LastPublicationDAOIT.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/service/DefaultNodeService.java (diff)
The file was modifiedcore-library/src/integration-test/java/org/silverpeas/core/contribution/tracking/TestContext.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/admin/component/WAComponentRegistry.java (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetLoadRow.txt (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetSelectByFatherPK_false.txt (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/util/ContributionPath.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/service/DefaultPublicationService.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/model/PublicationDetail.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/dao/PublicationDAO.java (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetSelectByFatherPK_true.txt (diff)
The file was modifiedcore-library/src/integration-test/java/org/silverpeas/core/contribution/publication/service/PublicationDAOIT.java (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetSelectByFatherPK_false_userId.txt (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/node/dao/NodeDAO.java (diff)
The file was modifiedcore-library/src/main/java/org/silverpeas/core/contribution/publication/dao/QueryStringFactory.java (diff)
The file was modifiedcore-library/src/integration-test/resources/org/silverpeas/core/contribution/publication/service/testGetSelectNotInFatherPK.txt (diff)

Summary

  1. Feature #10786 (details)
  2. Feature #10786 (details)
  3. Feature #10786 (details)
Commit d003d01e902957cfbc8e2d097a4f413562dfc572 by Miguel Moquillon
Feature #10786

Add the KmeliaBinsScheduledPurger to purge periodically the all the bins
of the different Kmelia instances of the items (both publications and
topics) that have been removed (place in the bin) at a date older than a
given delay in days. The recurrence of the task and the delay are set in
the org/silverpeas/kmelia/settings/kmeliaSettings.properties
configuration file.
The file was addedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/KmeliaDeleter.java
The file was modifiedkmelia/kmelia-configuration/src/main/config/properties/org/silverpeas/kmelia/settings/kmeliaSettings.properties (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/KmeliaService.java (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/DefaultKmeliaService.java (diff)
The file was addedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/KmeliaBinsScheduledPurger.java
Commit 443704c8cab03327047c72644da2a0cb359a8daf by Miguel Moquillon
Feature #10786

Take into account the PublicatonService#removePublication and
NodeService#removeNode are renamed to
PublicationService#deletePublication and NodeService#deleteNode.

Take use of the new removal state for publication and node when such a
contribution is put in the bin or restored from the bin in Kmelia.
The file was modifiedgallery/gallery-library/src/integration-test/resources/org/silverpeas/components/gallery/dao/create-media-database.sql (diff)
The file was modifiedgallery/gallery-library/src/main/java/org/silverpeas/components/gallery/process/GalleryProcessManagement.java (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/DefaultKmeliaService.java (diff)
The file was modifiedblog/blog-library/src/main/java/org/silverpeas/components/blog/service/DefaultBlogService.java (diff)
The file was modifiedwebSites/webSites-library/src/main/java/org/silverpeas/components/websites/service/DefaultWebSiteService.java (diff)
The file was modifiedcommunity/community-library/src/integration-test/resources/community-database.sql (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/KmeliaBinsScheduledPurger.java (diff)
The file was modifiedquickinfo/quickinfo-library/src/main/java/org/silverpeas/components/quickinfo/model/DefaultQuickInfoService.java (diff)
The file was modifiedforums/forums-library/src/main/java/org/silverpeas/components/forums/service/DefaultForumService.java (diff)
The file was modifiedyellowpages/yellowpages-library/src/main/java/org/silverpeas/components/yellowpages/service/DefaultYellowpagesService.java (diff)
The file was modifiedquestionReply/questionReply-war/src/main/java/org/silverpeas/components/questionreply/control/QuestionReplySessionController.java (diff)
Commit 6a76240464abf3d412c97c3448108f6783a942e8 by Miguel Moquillon
Feature #10786

In Kmelia, take into account topics and publications can be moved or
copied from/to bins in the same or in another Kmelia instances; their
removal status have to be modified consequently of the move or copy
operation.

In the Kmelia bin purger, take into account of the removal properties of
both NodeDetails and PublicationDetails. For all publications and nodes
previously removed (put in the bin) before this feature, the purger will
erase them automatically (we don't know their removal date so, as such,
we make the assumption their deletion are older than the purge delay
setting).
Fix a bug with the Kmelia instance ids: globalize them to be taken by
NodeService and PublicationService to identify the nodes and the
publications in the different Kmelia instances.
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/KmeliaBinsScheduledPurger.java (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/DefaultKmeliaService.java (diff)
The file was modifiedkmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/KmeliaPasteDetail.java (diff)