org.mmbase.module.gui.html
Class StateManager

java.lang.Object
  |
  +--org.mmbase.module.gui.html.StateManager
All Implemented Interfaces:
CommandHandlerInterface

public class StateManager
extends java.lang.Object
implements CommandHandlerInterface

The StateManager class is a utility object for the Generic Editor Structure wich connects to the MMEdit module.

Version:
26-2-2001
Author:
Daniel Ockeloen, Hans Speijer, Pierre van Rooden

Field Summary
 MMBase mmBase
           
 
Constructor Summary
StateManager(MMBase mmBase)
          Initialises the connection to mmBase and initialises the StateManager
 
Method Summary
 EditState getEditState(java.lang.String user)
          The EditState contains all the information an editor needs to configure the editing fields for a certain object.
 java.util.Vector getList(scanpage sp, StringTagger args, java.util.StringTokenizer command)
          List commands
 java.util.Vector getOpenBuilders(EditState state, StringTagger args)
           
 EditState getState(java.lang.String user)
          The EditState contains all the information an editor needs to configure the editing fields for a certain object.
 void initUserStates()
          Loads all previously pesistified editstates from the database
 boolean process(scanpage sp, java.util.StringTokenizer command, java.util.Hashtable cmds, java.util.Hashtable vars)
          The hook that passes all form related pages to the correct handler
 java.lang.String replace(scanpage sp, java.util.StringTokenizer commands)
          This method is the entry point for the mmEdit object to signal the statemanager that the user has gone to another section in an editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mmBase

public MMBase mmBase
Constructor Detail

StateManager

public StateManager(MMBase mmBase)
Initialises the connection to mmBase and initialises the StateManager
Method Detail

initUserStates

public void initUserStates()
Loads all previously pesistified editstates from the database

getEditState

public EditState getEditState(java.lang.String user)
The EditState contains all the information an editor needs to configure the editing fields for a certain object. A new EditState is created if the user is unknown.

replace

public java.lang.String replace(scanpage sp,
                                java.util.StringTokenizer commands)
This method is the entry point for the mmEdit object to signal the statemanager that the user has gone to another section in an editor.
Specified by:
replace in interface CommandHandlerInterface

getList

public java.util.Vector getList(scanpage sp,
                                StringTagger args,
                                java.util.StringTokenizer command)
                         throws ParseException
List commands
Specified by:
getList in interface CommandHandlerInterface

process

public boolean process(scanpage sp,
                       java.util.StringTokenizer command,
                       java.util.Hashtable cmds,
                       java.util.Hashtable vars)
The hook that passes all form related pages to the correct handler
Specified by:
process in interface CommandHandlerInterface

getOpenBuilders

public java.util.Vector getOpenBuilders(EditState state,
                                        StringTagger args)

getState

public EditState getState(java.lang.String user)
The EditState contains all the information an editor needs to configure the editing fields for a certain object. A new EditState is created if the user is unknown.


MMBase 2002