|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.repository.handlers.CourseHandler
public class CourseHandler
Initial Date: Apr 15, 2004
| Field Summary | |
|---|---|
static java.lang.String |
PROCESS_CREATENEW
Command to create a new course. |
static java.lang.String |
PROCESS_IMPORT
Command to add (i.e. |
| Constructor Summary | |
|---|---|
CourseHandler()
|
|
| Method Summary | |
|---|---|
LockResult |
acquireLock(OLATResourceable ores,
Identity identity)
Acquires lock for the input ores and identity. |
java.lang.String |
archive(Identity archiveOnBehalfOf,
java.lang.String archivFilePath,
RepositoryEntry entry)
Archive the hole course with runtime-data and course-structure-data. |
boolean |
cleanupOnDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
Called if the repository entry referencing the given Resourceable will be deleted from the repository. |
OLATResourceable |
createCopy(OLATResourceable res,
UserRequest ureq)
Create a copy of the given resourceable. |
IAddController |
getAddController(RepositoryAddCallback callback,
java.lang.Object userObject,
UserRequest ureq,
WindowControl wControl)
Called the repository wants to add a new resourceable of this handler's type. |
MediaResource |
getAsMediaResource(OLATResourceable res)
Called if a user downloads a Resourceable that this handler can handle. |
WizardCloseResourceController |
getCloseResourceController(UserRequest ureq,
WindowControl wControl,
RepositoryEntry repositoryEntry)
|
Component |
getDetailsComponent(OLATResourceable res,
UserRequest ureq)
If a handler likes to provied any details on a resourceable in the repository's details view, he may do so by providing a component that renders the details. |
Controller |
getEditorController(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
Called if a user wants to edit a Resourceable that this handler can provide an editor for. |
MainLayoutController |
getLaunchController(OLATResourceable res,
java.lang.String initialViewIdentifier,
UserRequest ureq,
WindowControl wControl)
Called if a user launches a Resourceable that this handler can handle. |
java.util.List |
getSupportedTypes()
Return the typeNames of OLATResourceable this Handler can handle. |
boolean |
isLocked(OLATResourceable ores)
|
boolean |
readyToDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
Called if the repository entry referencing the given Resourceable will be deleted from the repository. |
void |
releaseLock(LockResult lockResult)
Releases the lock. |
boolean |
supportsDownload()
Return true if this handler supports donwloading Resourceables of its type. |
boolean |
supportsEdit()
Return true if this handler supports an editor for Resourceables of its type. |
boolean |
supportsLaunch()
Return true if this handler supports launching Resourceables of its type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROCESS_IMPORT
public static final java.lang.String PROCESS_CREATENEW
| Constructor Detail |
|---|
public CourseHandler()
| Method Detail |
|---|
public java.util.List getSupportedTypes()
RepositoryHandler
getSupportedTypes in interface RepositoryHandlerRepositoryHandler.getSupportedTypes()public boolean supportsDownload()
RepositoryHandler
supportsDownload in interface RepositoryHandlerRepositoryHandler.supportsDownload()public boolean supportsLaunch()
RepositoryHandler
supportsLaunch in interface RepositoryHandlerRepositoryHandler.supportsLaunch()public boolean supportsEdit()
RepositoryHandler
supportsEdit in interface RepositoryHandlerRepositoryHandler.supportsEdit()
public MainLayoutController getLaunchController(OLATResourceable res,
java.lang.String initialViewIdentifier,
UserRequest ureq,
WindowControl wControl)
RepositoryHandler
getLaunchController in interface RepositoryHandlerinitialViewIdentifier - if null the default view will be started, otherwise a controllerfactory type dependant view will be activated (subscription subtype)
org.olat.repository.handlers.RepositoryHandler#getLaunchController(org.olat.core.id.OLATResourceable java.lang.String, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)public MediaResource getAsMediaResource(OLATResourceable res)
RepositoryHandler
getAsMediaResource in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#getAsMediaResource(org.olat.core.id.OLATResourceable
public Controller getEditorController(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
RepositoryHandler
getEditorController in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#getEditorController(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
public IAddController getAddController(RepositoryAddCallback callback,
java.lang.Object userObject,
UserRequest ureq,
WindowControl wControl)
RepositoryHandler
getAddController in interface RepositoryHandlerRepositoryHandler.getAddController(org.olat.repository.controllers.RepositoryAddCallback, java.lang.Object, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
public Component getDetailsComponent(OLATResourceable res,
UserRequest ureq)
RepositoryHandler
getDetailsComponent in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#getDetailsComponent(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest)
public boolean cleanupOnDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
RepositoryHandler
cleanupOnDelete in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#cleanupOnDelete(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
public boolean readyToDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
RepositoryHandler
readyToDelete in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#readyToDelete(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
public OLATResourceable createCopy(OLATResourceable res,
UserRequest ureq)
RepositoryHandler
createCopy in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#createCopy(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest)
public java.lang.String archive(Identity archiveOnBehalfOf,
java.lang.String archivFilePath,
RepositoryEntry entry)
archive in interface RepositoryHandlerorg.olat.repository.handlers.RepositoryHandler#archive(java.lang.String, org.olat.repository.RepositoryEntry)
public LockResult acquireLock(OLATResourceable ores,
Identity identity)
RepositoryHandler
acquireLock in interface RepositoryHandlerRepositoryHandler.acquireLock(org.olat.core.id.OLATResourceable, org.olat.core.id.Identity)public void releaseLock(LockResult lockResult)
RepositoryHandler
releaseLock in interface RepositoryHandlerlockResult - the LockResult received when lockingRepositoryHandler.releaseLock(org.olat.core.util.coordinate.LockResult)public boolean isLocked(OLATResourceable ores)
isLocked in interface RepositoryHandlerRepositoryHandler.isLocked(org.olat.core.id.OLATResourceable)
public WizardCloseResourceController getCloseResourceController(UserRequest ureq,
WindowControl wControl,
RepositoryEntry repositoryEntry)
getCloseResourceController in interface RepositoryHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||