|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryHandler
Initial Date: Apr 5, 2004
| 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 repoEntry)
|
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<java.lang.String> |
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. |
| Method Detail |
|---|
java.util.List<java.lang.String> getSupportedTypes()
boolean supportsDownload()
boolean supportsLaunch()
boolean supportsEdit()
MainLayoutController getLaunchController(OLATResourceable res,
java.lang.String initialViewIdentifier,
UserRequest ureq,
WindowControl wControl)
res - initialViewIdentifier - if null the default view will be started, otherwise a controllerfactory type dependant view will be activated (subscription subtype)ureq - wControl -
Controller getEditorController(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
res - ureq - wControl -
WizardCloseResourceController getCloseResourceController(UserRequest ureq,
WindowControl wControl,
RepositoryEntry repositoryEntry)
ureq - wControl - repositoryEntry -
MediaResource getAsMediaResource(OLATResourceable res)
res -
boolean cleanupOnDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
res - ureq - wControl -
boolean readyToDelete(OLATResourceable res,
UserRequest ureq,
WindowControl wControl)
res - ureq - wControl -
OLATResourceable createCopy(OLATResourceable res,
UserRequest ureq)
res - ureq -
IAddController getAddController(RepositoryAddCallback callback,
java.lang.Object userObject,
UserRequest ureq,
WindowControl wControl)
callback - userObject - ureq - wControl -
Component getDetailsComponent(OLATResourceable res,
UserRequest ureq)
res - ureq -
java.lang.String archive(Identity archiveOnBehalfOf,
java.lang.String archivFilePath,
RepositoryEntry repoEntry)
LockResult acquireLock(OLATResourceable ores,
Identity identity)
ores - identity -
void releaseLock(LockResult lockResult)
lockResult - the LockResult received when lockingboolean isLocked(OLATResourceable ores)
ores -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||