org.olat.repository.controllers
Interface IAddController

All Known Implementing Classes:
AddFileResourceController, AddNewQTIDocumentController, CreateBlogController, CreateNewCourseController, CreateNewCPController, CreateNewGlossaryController, CreateNewSharedFolderController, CreatePodcastController, ImportCourseController, WikiCreateController

public interface IAddController

Initial Date: May 25, 2004

Author:
Mike Stock Comment:

Method Summary
 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.
 

Method Detail

getTransactionComponent

Component getTransactionComponent()
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).

Returns:
Component implementing workflow.

transactionFinishBeforeCreate

boolean transactionFinishBeforeCreate()
Called just before the repository entry gets created.

Returns:
true if transaction could successfully finished, false otherwise. I IAddController returns false, the repository entry will not be created.

repositoryEntryCreated

void repositoryEntryCreated(RepositoryEntry re)
Called after the repository entry has been created.

Parameters:
re -

transactionAborted

void transactionAborted()
Called if the repository aborts the transaction. Do any cleanup work.