Class ResourcesHandler

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

    public class ResourcesHandler
    extends Object
    implements org.sakaiproject.importer.api.HandlesImportable
    • Constructor Detail

      • ResourcesHandler

        public ResourcesHandler()
    • Method Detail

      • 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
      • addAllResources

        protected void addAllResources​(InputStream archive,
                                       String path,
                                       int notifyOption)
      • addContentResource

        protected org.sakaiproject.content.api.ContentResource addContentResource​(String id,
                                                                                  String contentType,
                                                                                  InputStream contents,
                                                                                  Map properties,
                                                                                  int notifyOption)
      • existsDirectory

        protected boolean existsDirectory​(String path)
      • addContentCollection

        protected void addContentCollection​(String path,
                                            Map properties)
      • getContentHostingService

        public org.sakaiproject.content.api.ContentHostingService getContentHostingService()
      • setContentHostingService

        public void setContentHostingService​(org.sakaiproject.content.api.ContentHostingService chs)
      • getSessionManager

        public org.sakaiproject.tool.api.SessionManager getSessionManager()
      • setSessionManager

        public void setSessionManager​(org.sakaiproject.tool.api.SessionManager sessionManager)
      • getSecurityService

        public org.sakaiproject.authz.api.SecurityService getSecurityService()
      • setSecurityService

        public void setSecurityService​(org.sakaiproject.authz.api.SecurityService securityService)
      • getServerConfigurationService

        public org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
      • setServerConfigurationService

        public void setServerConfigurationService​(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)