org.olat.group
Class BusinessGroupContextEntryControllerCreator

java.lang.Object
  extended by org.olat.group.BusinessGroupContextEntryControllerCreator
All Implemented Interfaces:
ContextEntryControllerCreator

public class BusinessGroupContextEntryControllerCreator
extends java.lang.Object
implements ContextEntryControllerCreator

Description:

This class can create run controllers for business groups for a given context entry

Initial Date: 19.08.2009

Author:
gnaegi, gnaegi@frentix.com, www.frentix.com

Constructor Summary
BusinessGroupContextEntryControllerCreator()
           
 
Method Summary
 Controller createController(ContextEntry ce, UserRequest ureq, WindowControl wControl)
          Factory method to create the run controller for this contex.
 java.lang.String getSiteClassName(ContextEntry ce)
          The class name of the site that must be activated or NULL if opened as dTab
 java.lang.String getTabName(ContextEntry ce)
          The name of the dynamic tab if such a tab should be created or NULL if opened as Site
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessGroupContextEntryControllerCreator

public BusinessGroupContextEntryControllerCreator()
Method Detail

createController

public Controller createController(ContextEntry ce,
                                   UserRequest ureq,
                                   WindowControl wControl)
Description copied from interface: ContextEntryControllerCreator
Factory method to create the run controller for this contex.

Just create the correct controller given the contextentry. Everthing else already done. (no need to advance pos in stack or such)

If context opens a site instead of creating a new dtab, the method can return NULL

Specified by:
createController in interface ContextEntryControllerCreator
Returns:
the controller or NULL if the context is an existing site
See Also:
ContextEntryControllerCreator.createController(org.olat.core.id.context.ContextEntry, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)

getTabName

public java.lang.String getTabName(ContextEntry ce)
Description copied from interface: ContextEntryControllerCreator
The name of the dynamic tab if such a tab should be created or NULL if opened as Site

Specified by:
getTabName in interface ContextEntryControllerCreator
Returns:
Return tab name for certain context entry or NULL if the target is the opeing of an existing site
See Also:
ContextEntryControllerCreator.getTabName(org.olat.core.id.context.ContextEntry)

getSiteClassName

public java.lang.String getSiteClassName(ContextEntry ce)
Description copied from interface: ContextEntryControllerCreator
The class name of the site that must be activated or NULL if opened as dTab

Specified by:
getSiteClassName in interface ContextEntryControllerCreator
Returns:
Return the class name that is used to activate an existing site or NULL if the target is a new dtab
See Also:
ContextEntryControllerCreator.getSiteClassName(org.olat.core.id.context.ContextEntry)