org.sakaiproject.importer.impl.handlers
Class ResourcesHandler

java.lang.Object
  extended by org.sakaiproject.importer.impl.handlers.ResourcesHandler
All Implemented Interfaces:
HandlesImportable

public class ResourcesHandler
extends Object
implements HandlesImportable


Constructor Summary
ResourcesHandler()
           
 
Method Summary
protected  void addAllResources(byte[] archive, String path, int notifyOption)
           
protected  void addContentCollection(String path, Map properties)
           
protected  org.sakaiproject.content.api.ContentResource addContentResource(String id, String contentType, byte[] contents, Map properties, int notifyOption)
           
 boolean canHandleType(String typeName)
           
protected  boolean existsDirectory(String path)
           
 org.sakaiproject.content.api.ContentHostingService getContentHostingService()
           
 org.sakaiproject.authz.api.SecurityService getSecurityService()
           
 org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
           
 org.sakaiproject.tool.api.SessionManager getSessionManager()
           
 void handle(Importable thing, String siteId)
           
 void setContentHostingService(org.sakaiproject.content.api.ContentHostingService chs)
           
 void setSecurityService(org.sakaiproject.authz.api.SecurityService securityService)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
           
 void setSessionManager(org.sakaiproject.tool.api.SessionManager sessionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesHandler

public ResourcesHandler()
Method Detail

canHandleType

public boolean canHandleType(String typeName)
Specified by:
canHandleType in interface HandlesImportable

handle

public void handle(Importable thing,
                   String siteId)
Specified by:
handle in interface HandlesImportable

addAllResources

protected void addAllResources(byte[] archive,
                               String path,
                               int notifyOption)

addContentResource

protected org.sakaiproject.content.api.ContentResource addContentResource(String id,
                                                                          String contentType,
                                                                          byte[] 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)


Copyright © 2005-2013 Sakai Foundation. All Rights Reserved.