Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-19952

The ability to move a site to a recycle bin and then purge it after a set period of time

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0
    • Component/s: Sites (Admin) Tool
    • Labels:
    • Property addition/change required:
      Yes
    • CLE Team Issue:
      Yes

      Description

      This is a set of patches that add some interesting behaviour to site deletions.

      It adds the capability for sites to be softly deleted, and after a set period of time, purged from the system. The way it works is thusly:

      A maintainer of a site deletes that site. If this is enabled, the user receives a message about this instead of the normal message. The site is then, for all intents and purposes, deleted. It does not show in any lists and users cannot navigate to it. However the site still exists and is completely intact with all content and user lists. Users with the appropriate permission (site.visit.softly.deleted) can manually navigate to the url. They get a message that the site is due to be purged but can still act on the site, perhaps retrieving content.

      Normal users of a softly deleted site cannot access the site at all.

      After a configured grace period, a Quartz job purges softly deleted sites from the system.

      In addition, another permission is added, site.del.softly.deleted. This allows users with this permission to issue another removeSite call, perhaps from a webservice or similar, and that will manually purge the site from the system.

      The sakai.properties:

      1. enable soft site deletions when a site is deleted normally
      2. if true, they will be softly delete and then purged after 30 days
      3. if false, thet will be deleted immediately
      4. defaults to false.
        site.soft.deletion=true
      1. the number of days to keep softly deleted sites until they are purged.
      2. if not set and site.soft.deletion=true, defaults to 30 days.
        site.soft.deletion.gracetime=30

      There are a couple of components touched by this, and for trunk, there are two patches per component (I haven't merged the patches together sorry). Simply apply the -trunk patch, then the -trunk-2 patch.

        Gliffy Diagrams

          Attachments

          1. db-update-mysql.patch
            0.1 kB
            Steve Swinsburg
          2. jobs-2.6.x.patch
            0.5 kB
            Steve Swinsburg
          3. kernel-1.0.x-revised.patch
            58 kB
            Steve Swinsburg
          4. kernel-trunk.patch
            48 kB
            Steve Swinsburg
          5. kernel-trunk-2.patch
            11 kB
            Steve Swinsburg
          6. portal-2.6.x-revised.patch
            2 kB
            Steve Swinsburg
          7. portal-trunk.patch
            3 kB
            Steve Swinsburg
          8. portal-trunk-2.patch
            0.8 kB
            Steve Swinsburg
          9. reference-2.6.x-revised.patch
            0.9 kB
            Steve Swinsburg
          10. reference-trunk.patch
            1 kB
            Steve Swinsburg
          11. reference-trunk-2.patch
            0.4 kB
            Steve Swinsburg
          12. SAK-19952-jobscheduler.patch
            7 kB
            Matthew Buckett
          13. SAK-19952-kernel.patch
            69 kB
            Matthew Buckett
          14. SAK-19952-portal.patch
            2 kB
            Matthew Buckett
          15. SAK-19952-reference.patch
            0.8 kB
            Matthew Buckett
          16. SAK-19952-site.patch
            4 kB
            Matthew Buckett
          17. Screen shot 2011-02-01 at 11.49.35 PM.png
            28 kB
            Steve Swinsburg
          18. Screen shot 2011-02-01 at 11.50.05 PM.png
            30 kB
            Steve Swinsburg
          19. Screen shot 2011-03-30 at 10.23.33.png
            19 kB
            Matthew Buckett
          20. Screen shot 2011-03-30 at 10.24.02.png
            57 kB
            Matthew Buckett
          21. Screen shot 2011-03-30 at 10.24.15.png
            26 kB
            Matthew Buckett
          22. site-manage-2.6.x-revised.patch
            6 kB
            Steve Swinsburg
          23. site-manage-trunk.patch
            12 kB
            Steve Swinsburg
          24. site-manage-trunk-2.patch
            10 kB
            Steve Swinsburg
          25. SoftlyDeletedInstructorView.PNG
            54 kB
            Oliver Williams
          26. SoftlyDeletedInstructorViewPostPurge.PNG
            30 kB
            Oliver Williams
          27. SoftlyDeletedQuartztLog.PNG
            12 kB
            Oliver Williams
          28. SoftlyDeletedSite.PNG
            102 kB
            Oliver Williams
          29. SoftlyDeletedSiteQuartzJob.PNG
            31 kB
            Oliver Williams
          30. SoftlyDeletedStudentView.PNG
            24 kB
            Oliver Williams

            Issue Links

              Activity

                People

                • Assignee:
                  steve.swinsburg Steve Swinsburg
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code