Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The default registered service that handles content in Sakai is the DbContentHostingServiceDbContentService, which extends the BaseContentHostingService. A modification to the path generation in the DbContentHostingService DbContentService will allow the path to be configured for proper content storage in AFS. Creating a UCDavisContentHostingServiceUCDavisContentService, which extends DbContentHostingServiceDbContentService, will enable custom configurations and "overrides" of methods which establish the file path used to store content. There are several considerations for this to be handled properly:

1. The site type must be determined, so the user's space may be used or that of CourseManagement.
2. The user's quota should be checked prior to storage?
3. The path must be customizable

A preliminary UCDavisDbContentHostingService UCDavisDbContentService file is provided, which will replace the DbContentHostingService DbContentService as the registered service for storing content. This is a Sakai 2.1 example.

...