org.olat
Class ControllerFactory

java.lang.Object
  extended by org.olat.ControllerFactory

public class ControllerFactory
extends java.lang.Object

Initial Date: May 6, 2004

Author:
gnaegi

Constructor Summary
ControllerFactory()
           
 
Method Summary
static MainLayoutController createLaunchController(OLATResourceable olatResourceable, java.lang.String initialViewIdentifier, UserRequest ureq, WindowControl wControl, boolean exceptIfNoneFound)
          Create a controller for a specific OLAT resource
static java.lang.String translateResourceableTypeName(java.lang.String resourceableTypeName, java.util.Locale locale)
          Translate a resourceableTypeName.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerFactory

public ControllerFactory()
Method Detail

createLaunchController

public static MainLayoutController createLaunchController(OLATResourceable olatResourceable,
                                                          java.lang.String initialViewIdentifier,
                                                          UserRequest ureq,
                                                          WindowControl wControl,
                                                          boolean exceptIfNoneFound)
Create a controller for a specific OLAT resource

Parameters:
olatResourceable - The OLAT resource
initialViewIdentifier - if null the default view will be started, otherwise a controllerfactory type dependant view will be activated (subscription subtype)
ureq -
wControl -
exceptIfNoneFound - if true, then an exception will be thrown if no controller could be created for whatever reason. if false, the call will just return null.
Returns:
the created controller

translateResourceableTypeName

public static java.lang.String translateResourceableTypeName(java.lang.String resourceableTypeName,
                                                             java.util.Locale locale)
Translate a resourceableTypeName.

Parameters:
resourceableTypeName -
locale -
Returns:
the String representing the type in the given locale