[sakai2-tcc] New feature - Soft deletion of sites

Steve Swinsburg steve.swinsburg at gmail.com
Tue Feb 1 14:26:29 PST 2011


Hi Nate,

The soft delete essentially just marks that site as being soft deleted, and then whenever requests are made for site lists etc (ie worksite setup, portal nav, show other resources etc), these sites are not included. The purge is then just the normal delete function. So it's more of a recycle bin than a new way of deleting things.

I think there is a JIRA out there for a deep delete of content?

cheers,
Steve




On 02/02/2011, at 2:43 AM, Nate Angell wrote:

> Steve:
> 
> A useful functionality. Would the soft delete purge content from ALL
> Sakai tools, even those that don't participate fully in standard site
> operations functions?
> 
> - Nate
> 
> On Tue, Feb 1, 2011 at 8:04 AM, Steve Swinsburg
> <steve.swinsburg at gmail.com> wrote:
>> Hi all,
>> 
>> I have just finished work on a set of patches that allow sites to be softly deleted, and then later purged from the system after a given grace time.
>> https://jira.sakaiproject.org/browse/SAK-19952
>> 
>> The way it works is thusly:
>> 
>> A maintainer of a site deletes that site. If soft deletes are 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.
>> 
>> Some screenshots are in the JIRA.
>> 
>> I invite you to review this and let me know if you think it is something that could be voted on for inclusion. It does touch a few areas, and part of it requires mods deep into the Kernel SQL, so feedback would be great.
>> 
>> regards,
>> Steve
>> 
>> N.B. The client I wrote this for has kindly allowed me to contribute this to the community.
>> _______________________________________________
>> sakai2-tcc mailing list
>> sakai2-tcc at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai2-tcc
>> 



More information about the sakai2-tcc mailing list