Class AnnouncementHandler

  • All Implemented Interfaces:
    org.sakaiproject.importer.api.HandlesImportable

    public class AnnouncementHandler
    extends Object
    implements org.sakaiproject.importer.api.HandlesImportable
    This handler takes the generic announcement objects created by the various translators and turns them into Sakai announcements in the current course (created by the current user)
    Author:
    Aaron Zeckoski (aaronz@vt.edu)
    • Field Detail

      • announcementService

        protected org.sakaiproject.announcement.api.AnnouncementService announcementService
    • Constructor Detail

      • AnnouncementHandler

        public AnnouncementHandler()
    • Method Detail

      • setAnnouncementService

        public void setAnnouncementService​(org.sakaiproject.announcement.api.AnnouncementService announcementService)
      • canHandleType

        public boolean canHandleType​(String typeName)
        Specified by:
        canHandleType in interface org.sakaiproject.importer.api.HandlesImportable
      • handle

        public void handle​(org.sakaiproject.importer.api.Importable thing,
                           String siteId)
        Specified by:
        handle in interface org.sakaiproject.importer.api.HandlesImportable