org.olat.repository.handlers
Class FileHandler

java.lang.Object
  extended by org.olat.repository.handlers.FileHandler
Direct Known Subclasses:
ImsCPHandler, QTIHandler, SCORMCPHandler, WebDocumentHandler

public abstract class FileHandler
extends java.lang.Object

Common super class for all file-based handlers.

Author:
Christian Guretzki

Constructor Summary
FileHandler()
           
 
Method Summary
 java.lang.String archive(Identity archiveOnBehalfOf, java.lang.String archivFilePath, RepositoryEntry repoEntry)
           
 boolean cleanupOnDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl)
           
 OLATResourceable createCopy(OLATResourceable res, UserRequest ureq)
           
 IAddController getAddController(RepositoryAddCallback callback, java.lang.Object userObject, UserRequest ureq, WindowControl wControl)
           
 MediaResource getAsMediaResource(OLATResourceable res)
           
 Component getDetailsComponent(OLATResourceable res, UserRequest ureq)
           
 boolean readyToDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandler

public FileHandler()
Method Detail

getAsMediaResource

public MediaResource getAsMediaResource(OLATResourceable res)
See Also:
org.olat.repository.handlers.RepositoryHandler#getAsMediaResource(org.olat.core.id.OLATResourceable

getAddController

public IAddController getAddController(RepositoryAddCallback callback,
                                       java.lang.Object userObject,
                                       UserRequest ureq,
                                       WindowControl wControl)
See Also:
RepositoryHandler.getAddController(org.olat.repository.controllers.RepositoryAddCallback, java.lang.Object, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)

getDetailsComponent

public Component getDetailsComponent(OLATResourceable res,
                                     UserRequest ureq)
See Also:
org.olat.repository.handlers.RepositoryHandler#getDetailsComponent(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest)

cleanupOnDelete

public boolean cleanupOnDelete(OLATResourceable res,
                               UserRequest ureq,
                               WindowControl wControl)
See Also:
org.olat.repository.handlers.RepositoryHandler#cleanupOnDelete(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)

readyToDelete

public boolean readyToDelete(OLATResourceable res,
                             UserRequest ureq,
                             WindowControl wControl)
See Also:
org.olat.repository.handlers.RepositoryHandler#readyToDelete(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)

createCopy

public OLATResourceable createCopy(OLATResourceable res,
                                   UserRequest ureq)
See Also:
org.olat.repository.handlers.RepositoryHandler#createCopy(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest)

archive

public java.lang.String archive(Identity archiveOnBehalfOf,
                                java.lang.String archivFilePath,
                                RepositoryEntry repoEntry)