org.olat.core.id.context
Class StackedBusinessControl

java.lang.Object
  extended by org.olat.core.id.context.StackedBusinessControl
All Implemented Interfaces:
BusinessControl

public class StackedBusinessControl
extends java.lang.Object
implements BusinessControl

Description:
Part of a linked list of (Stacked)BusinessControls which represent the BusinessPath for a certain created Controller or Controllerstate.

Initial Date: 14.06.2006

Author:
Felix Jost

Field Summary
 
Fields inherited from interface org.olat.core.id.context.BusinessControl
DELIMITER_TAG, END_TAG, START_TAG
 
Constructor Summary
StackedBusinessControl(ContextEntry contextEntry, BusinessControl origBusinessControl)
          internal use only! REVIEW:PB:2009-31-05: better way?
 
Method Summary
 void dropLauncherEntries()
          used when the current contextentry cannot be resolved (e.g.
 java.lang.String getAsString()
          Get String represation of BusinessControl.
 java.util.List<ContextEntry> getBusinessControls()
           
 java.util.List<ContextEntry> getContextEntryStack()
           
 boolean hasContextEntry()
          if still some more context entries for spawning are available
 ContextEntry popLauncherContextEntry()
          pop context entry for further processing, this is used for spawning controllers
 void setCurrentContextEntry(ContextEntry ce)
          set new context entry which reflects latest state of a controller, which can be reactivated
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StackedBusinessControl

public StackedBusinessControl(ContextEntry contextEntry,
                              BusinessControl origBusinessControl)
internal use only! REVIEW:PB:2009-31-05: better way?

Parameters:
contextEntry -
origBusinessControl -
Method Detail

getBusinessControls

public java.util.List<ContextEntry> getBusinessControls()

getContextEntryStack

public java.util.List<ContextEntry> getContextEntryStack()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAsString

public java.lang.String getAsString()
Description copied from interface: BusinessControl
Get String represation of BusinessControl. Used to save it as string (serializing)

Specified by:
getAsString in interface BusinessControl
Returns:

popLauncherContextEntry

public ContextEntry popLauncherContextEntry()
Description copied from interface: BusinessControl
pop context entry for further processing, this is used for spawning controllers

Specified by:
popLauncherContextEntry in interface BusinessControl
Returns:

dropLauncherEntries

public void dropLauncherEntries()
Description copied from interface: BusinessControl
used when the current contextentry cannot be resolved (e.g. a coursenode that no longer is accessible or existing)

Specified by:
dropLauncherEntries in interface BusinessControl

hasContextEntry

public boolean hasContextEntry()
Description copied from interface: BusinessControl
if still some more context entries for spawning are available

Specified by:
hasContextEntry in interface BusinessControl
Returns:

setCurrentContextEntry

public void setCurrentContextEntry(ContextEntry ce)
Description copied from interface: BusinessControl
set new context entry which reflects latest state of a controller, which can be reactivated

Specified by:
setCurrentContextEntry in interface BusinessControl