org.olat.core.id.context
Class BusinessControlFactory

java.lang.Object
  extended by org.olat.core.id.context.BusinessControlFactory

public class BusinessControlFactory
extends java.lang.Object

Description:

Initial Date: 14.06.2006

Author:
Felix Jost

Method Summary
 BusinessControl createBusinessControl(ContextEntry ce, BusinessControl origBC)
           
 WindowControl createBusinessWindowControl(BusinessControl businessControl, WindowControl origWControl)
           
 WindowControl createBusinessWindowControl(ContextEntry contextEntry, WindowControl origWControl)
          to be used when a new controller (but not in a new window) is opened (a controller with a contextual business id, that is, the parent opening the controller provides a id = how it will "call" the newly generated controller).
 WindowControl createBusinessWindowControl(ContextEntry contextEntry, WindowControl windowWControl, WindowControl businessWControl)
          to be used when a new window is opened (see references to this method as an example)
 WindowControl createBusinessWindowControl(java.lang.String type, java.lang.Long id, WindowControl origWControl)
           
 java.util.List<ContextEntry> createCEListFromString(java.lang.String businessControlString)
           
 ContextEntry createContextEntry(Identity identity)
           
 ContextEntry createContextEntry(OLATResourceable ores)
           
 BusinessControl createFromString(java.lang.String businessControlString)
           
 java.lang.String getAsString(BusinessControl bc)
           
 BusinessControl getEmptyBusinessControl()
           
static BusinessControlFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BusinessControlFactory getInstance()

createBusinessWindowControl

public WindowControl createBusinessWindowControl(ContextEntry contextEntry,
                                                 WindowControl windowWControl,
                                                 WindowControl businessWControl)
to be used when a new window is opened (see references to this method as an example)

Parameters:
contextEntry -
windowWControl -
businessWControl -
Returns:

createBusinessControl

public BusinessControl createBusinessControl(ContextEntry ce,
                                             BusinessControl origBC)

createBusinessWindowControl

public WindowControl createBusinessWindowControl(ContextEntry contextEntry,
                                                 WindowControl origWControl)
to be used when a new controller (but not in a new window) is opened (a controller with a contextual business id, that is, the parent opening the controller provides a id = how it will "call" the newly generated controller). it needs to be able to reopen the same controller upon e.g. request by the search engine when a user clicks on a search result.

Parameters:
contextEntry -
origWControl -
Returns:

createBusinessWindowControl

public WindowControl createBusinessWindowControl(java.lang.String type,
                                                 java.lang.Long id,
                                                 WindowControl origWControl)

createBusinessWindowControl

public WindowControl createBusinessWindowControl(BusinessControl businessControl,
                                                 WindowControl origWControl)

getEmptyBusinessControl

public BusinessControl getEmptyBusinessControl()

createContextEntry

public ContextEntry createContextEntry(OLATResourceable ores)

createContextEntry

public ContextEntry createContextEntry(Identity identity)

getAsString

public java.lang.String getAsString(BusinessControl bc)

createFromString

public BusinessControl createFromString(java.lang.String businessControlString)

createCEListFromString

public java.util.List<ContextEntry> createCEListFromString(java.lang.String businessControlString)