org.olat.core.id.context
Interface ContextEntryControllerCreator

All Known Implementing Classes:
BusinessGroupContextEntryControllerCreator, CatalogContextEntryControllerCreator, IdentityContextEntryControllerCreator, RepositoryContextEntryControllerCreator, UserAdminContextEntryControllerCreator

public interface ContextEntryControllerCreator

Description:

Initial Date: 23.06.2006

Author:
Felix Jost

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
 

Method Detail

createController

Controller createController(ContextEntry ce,
                            UserRequest ureq,
                            WindowControl wControl)
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

Parameters:
ce -
ureq -
wControl -
Returns:
the controller or NULL if the context is an existing site

getTabName

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

Parameters:
ce -
Returns:
Return tab name for certain context entry or NULL if the target is the opeing of an existing site

getSiteClassName

java.lang.String getSiteClassName(ContextEntry ce)
The class name of the site that must be activated or NULL if opened as dTab

Parameters:
ce -
Returns:
Return the class name that is used to activate an existing site or NULL if the target is a new dtab