org.olat.repository.controllers
Class RepositoryAddCallback

java.lang.Object
  extended by org.olat.repository.controllers.RepositoryAddCallback

public class RepositoryAddCallback
extends java.lang.Object

Initial Date: Apr 7, 2004

Author:
Mike Stock Comment:

Method Summary
 void canceled(UserRequest ureq)
          Call canceled upon user cancel.
 void failed(UserRequest ureq)
          Call failed upon failure.
 void finished(UserRequest ureq)
          Call finished() upon success.
 void setDisplayName(java.lang.String displayName)
          This is a display name, displayed as "name" in the repository entry.
 void setResourceable(OLATResourceable resourceable)
          Set handler specific resourceable.
 void setResourceName(java.lang.String resourceName)
          This is a resource specific name, displayed as "reference" in the repository entry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setResourceable

public void setResourceable(OLATResourceable resourceable)
Set handler specific resourceable. The resourceable does not necessarily have to be persited.

Parameters:
resourceable -

setResourceName

public void setResourceName(java.lang.String resourceName)
This is a resource specific name, displayed as "reference" in the repository entry. It is simply for displaying purposes and will not be provided on any further calls. It should provide a human readable name tag which identifies the resource referenced by this entry.

Parameters:
resourceName -

setDisplayName

public void setDisplayName(java.lang.String displayName)
This is a display name, displayed as "name" in the repository entry. It is simply for displaying purposes and will not be provided on any further calls. It should provide a human readable name for the resource.

Parameters:
displayName -

finished

public void finished(UserRequest ureq)
Call finished() upon success. Must have set all data before calling finished. This will return to the calling controller.

Parameters:
ureq -

canceled

public void canceled(UserRequest ureq)
Call canceled upon user cancel. You must do all cleanup work since this will return to the calling controller immediately.

Parameters:
ureq -

failed

public void failed(UserRequest ureq)
Call failed upon failure. Do all cleanup work, since this will return to the calling controller. Any errors or warnings must be set before, the calling controller will not provide any feedback to the user by itself.

Parameters:
ureq -