UI changes to support resource type registry

UI changes to support resource type registry

In Sakai 2.4, webapps will be able to register new types of resources that will appear in the Resources tool. A registration for a new resource type provides information about how the resource is created and what actions can be taken on it. Some actions are handled by the Resources tool and others are handled (in whole or in part) by a helper specified in the registration.

Creating a new resource is an action done partially by the Resources tool and partially by a helper. An example of that interaction is shown in the following sequence of screenshots.

The first screenshot shows a temporary interface for the list-view of resources that enables selection of a resource (or folder) and then selection of an action from a drop-down menu. In this image, a folder named "Folder 1" is selected. The list of actions includes creation of several types of resources, including "Simple Text Document", which is selected. This temporary interface is for development only. We need a new interface that enables selection of one or more items and an action on the selected item(s). Click on the thumbnail to view the screenshot.

The second screenshot shows the first step in creation of a new "Simple Text Document". The user is invited to type in the "content" of the new resource. That part is handled by the helper. The user clicks "Continue" when done adding the content.

The third screenshopt shows the second step in creation of a new resource. The user is required to provide a "title" or name for the new item. The user may set other properties/attributes for the new item. This part is handled by the Resources tool. When done, the user clicks "Add". The Resources tool created the new resource containing the content provided by the helper.

The fourth screenshot shows that the new item (named "MyTextDoc") has been added to the folder (named "Folder 1").