ContentHosting should post an event whenever a change is made in the availability of a resource

Description

Please add a new event "content.upd.visibility" that will be posted whenever a previously shown resource becomes hidden, whenever a previously hidden resource becomes shown, and whenever release and/or retract dates for a resource are added, changed or deleted.

Environment

None

Test Plan

None

Attachments

1

Activity

Show:

Hudson CI Server September 16, 2011 at 10:43 AM

Integrated in kernel-trunk #380 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/380/)

This adds a new event identifier in ContentHostingService for "content.upd.visibility".
Then in BaseContentService.java, it tracks changes to particular properties of entities before they are committed and posts the "content.upd.visibility" event if changes have occurred.

Jim Eng September 16, 2011 at 10:30 AM

This is needed for Sakai 2.9. It is fixed in trunk of kernel in rev 98218.

Jim Eng September 15, 2011 at 10:42 AM

Attaching patch for KNL-807. This adds a new event identifier in ContentHostingService.java. Then in BaseContentService.java, we track changes to particular properties of entities before they are committed and post the "content.upd.visibility" event if changes have occurred.

Jim Eng September 15, 2011 at 5:02 AM

Changing the identifier for the proposed new event to "content.upd.visibility" as suggested by Stephen in a comment on KNL-806. This distinguishes the new event more clearly from "content.available", which schedules delayed notifications for resources with release dates in the future.

Jim Eng September 14, 2011 at 3:38 PM

We hope to have this change available in kernel for the 2.9 release.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created September 14, 2011 at 12:48 PM
Updated April 25, 2018 at 3:34 PM
Resolved September 16, 2011 at 10:30 AM