org.olat.ims.qti.editor
Class AddNewQTIDocumentController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.ims.qti.editor.AddNewQTIDocumentController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable, IAddController

public class AddNewQTIDocumentController
extends DefaultController
implements IAddController, ControllerEventListener

Initial Date: 14.01.2005

Author:
Mike Stock

Constructor Summary
AddNewQTIDocumentController(java.lang.String type, RepositoryAddCallback addCallback, UserRequest ureq, WindowControl wControl)
           
 
Method Summary
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 Component getTransactionComponent()
          The transaction component which will be invoked by the repository add controller.
 void repositoryEntryCreated(RepositoryEntry re)
          Called after the repository entry has been created.
 void transactionAborted()
          Called if the repository aborts the transaction.
 boolean transactionFinishBeforeCreate()
          Called just before the repository entry gets created.
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.control.ControllerEventListener
dispatchEvent
 

Constructor Detail

AddNewQTIDocumentController

public AddNewQTIDocumentController(java.lang.String type,
                                   RepositoryAddCallback addCallback,
                                   UserRequest ureq,
                                   WindowControl wControl)
Parameters:
type -
addCallback -
ureq -
wControl -
Method Detail

getTransactionComponent

public Component getTransactionComponent()
Description copied from interface: IAddController
The transaction component which will be invoked by the repository add controller. Controllers may return null here if the do not need a GUI-based workflow. However in such cases, they have to call addCallback.finished() at constructor time. (See AddCourseController for an example).

Specified by:
getTransactionComponent in interface IAddController
Returns:
Component implementing workflow.
See Also:
IAddController.getTransactionComponent()

transactionFinishBeforeCreate

public boolean transactionFinishBeforeCreate()
Description copied from interface: IAddController
Called just before the repository entry gets created.

Specified by:
transactionFinishBeforeCreate in interface IAddController
Returns:
true if transaction could successfully finished, false otherwise. I IAddController returns false, the repository entry will not be created.
See Also:
IAddController.transactionFinishBeforeCreate()

repositoryEntryCreated

public void repositoryEntryCreated(RepositoryEntry re)
Description copied from interface: IAddController
Called after the repository entry has been created.

Specified by:
repositoryEntryCreated in interface IAddController
See Also:
IAddController.repositoryEntryCreated(org.olat.repository.RepositoryEntry)

transactionAborted

public void transactionAborted()
Description copied from interface: IAddController
Called if the repository aborts the transaction. Do any cleanup work.

Specified by:
transactionAborted in interface IAddController
See Also:
IAddController.transactionAborted()

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)