Class ResourcesHandler
- java.lang.Object
-
- org.sakaiproject.importer.impl.handlers.ResourcesHandler
-
- All Implemented Interfaces:
HandlesImportable
public class ResourcesHandler extends Object implements 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 ContentResourceaddContentResource(String id, String contentType, InputStream contents, Map properties, int notifyOption)booleancanHandleType(String typeName)protected booleanexistsDirectory(String path)ContentHostingServicegetContentHostingService()SecurityServicegetSecurityService()ServerConfigurationServicegetServerConfigurationService()SessionManagergetSessionManager()voidhandle(Importable thing, String siteId)voidsetContentHostingService(ContentHostingService chs)voidsetSecurityService(SecurityService securityService)voidsetServerConfigurationService(ServerConfigurationService serverConfigurationService)voidsetSessionManager(SessionManager sessionManager)
-
-
-
Method Detail
-
canHandleType
public boolean canHandleType(String typeName)
- Specified by:
canHandleTypein interfaceHandlesImportable
-
handle
public void handle(Importable thing, String siteId)
- Specified by:
handlein interfaceHandlesImportable
-
addAllResources
protected void addAllResources(InputStream archive, String path, int notifyOption)
-
addContentResource
protected ContentResource addContentResource(String id, String contentType, InputStream contents, Map properties, int notifyOption)
-
existsDirectory
protected boolean existsDirectory(String path)
-
getContentHostingService
public ContentHostingService getContentHostingService()
-
setContentHostingService
public void setContentHostingService(ContentHostingService chs)
-
getSessionManager
public SessionManager getSessionManager()
-
setSessionManager
public void setSessionManager(SessionManager sessionManager)
-
getSecurityService
public SecurityService getSecurityService()
-
setSecurityService
public void setSecurityService(SecurityService securityService)
-
getServerConfigurationService
public ServerConfigurationService getServerConfigurationService()
-
setServerConfigurationService
public void setServerConfigurationService(ServerConfigurationService serverConfigurationService)
-
-