Class ResourcesHandler
- java.lang.Object
-
- org.sakaiproject.importer.impl.handlers.ResourcesHandler
-
- All Implemented Interfaces:
org.sakaiproject.importer.api.HandlesImportable
public class ResourcesHandler extends Object implements org.sakaiproject.importer.api.HandlesImportable
-
-
Constructor Summary
Constructors Constructor Description ResourcesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAllResources(InputStream archive, String path, int notifyOption)protected voidaddContentCollection(String path, Map properties)protected org.sakaiproject.content.api.ContentResourceaddContentResource(String id, String contentType, InputStream contents, Map properties, int notifyOption)booleancanHandleType(String typeName)protected booleanexistsDirectory(String path)org.sakaiproject.content.api.ContentHostingServicegetContentHostingService()org.sakaiproject.authz.api.SecurityServicegetSecurityService()org.sakaiproject.component.api.ServerConfigurationServicegetServerConfigurationService()org.sakaiproject.tool.api.SessionManagergetSessionManager()voidhandle(org.sakaiproject.importer.api.Importable thing, String siteId)voidsetContentHostingService(org.sakaiproject.content.api.ContentHostingService chs)voidsetSecurityService(org.sakaiproject.authz.api.SecurityService securityService)voidsetServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)voidsetSessionManager(org.sakaiproject.tool.api.SessionManager sessionManager)
-
-
-
Method Detail
-
canHandleType
public boolean canHandleType(String typeName)
- Specified by:
canHandleTypein interfaceorg.sakaiproject.importer.api.HandlesImportable
-
handle
public void handle(org.sakaiproject.importer.api.Importable thing, String siteId)- Specified by:
handlein interfaceorg.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)
-
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)
-
-