org.olat
Class ControllerFactory
java.lang.Object
org.olat.ControllerFactory
public class ControllerFactory
- extends java.lang.Object
Initial Date: May 6, 2004
- Author:
- gnaegi
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerFactory
public ControllerFactory()
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 resourceinitialViewIdentifier - 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