org.olat
Class NewControllerFactory

java.lang.Object
  extended by org.olat.core.logging.LogDelegator
      extended by org.olat.NewControllerFactory

public class NewControllerFactory
extends LogDelegator

Description:
input: e.g. [repoentry:123] or [repoentry:123][CourseNode:456] or ...

Initial Date: 16.06.2006

Author:
Felix Jost

Method Summary
 void addContextEntryControllerCreator(java.lang.String key, ContextEntryControllerCreator controllerCreator)
          Add a context entry controller creator for a specific key.
 boolean canLaunch(java.lang.String key)
          Check if a context entry controller creator is available for the given key
static NewControllerFactory getInstance()
          Get an instance of the new controller factory
 void launch(UserRequest ureq, WindowControl wControl)
          Launch a controller in a tab or site in the given window from a user request url
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NewControllerFactory getInstance()
Get an instance of the new controller factory

Returns:

addContextEntryControllerCreator

public void addContextEntryControllerCreator(java.lang.String key,
                                             ContextEntryControllerCreator controllerCreator)
Add a context entry controller creator for a specific key. This is used to add new creators at runtime, e.g. from a self contained module. It is allowed to overwrite existing ContextEntryControllerCreator. Use the canLaunch() method to check if for a certain key something is already defined.

Parameters:
key -
controllerCreator -

canLaunch

public boolean canLaunch(java.lang.String key)
Check if a context entry controller creator is available for the given key

Parameters:
key -
Returns:
true: key is known; false: key can not be used

launch

public void launch(UserRequest ureq,
                   WindowControl wControl)
Launch a controller in a tab or site in the given window from a user request url

Parameters:
ureq -
wControl -