org.riotfamily.riot.editor.ui
Class PathController

java.lang.Object
  extended by org.riotfamily.riot.editor.ui.PathController
All Implemented Interfaces:
MessageSourceAware, Controller
Direct Known Subclasses:
ChooserPathController

public class PathController
extends Object
implements Controller, MessageSourceAware

Controller that displays a breadcrumb navigation for an editor.


Constructor Summary
PathController(EditorRepository repository)
           
 
Method Summary
protected  EditorReference createLastPathComponent(EditorDefinition editor, String objectId, String parentId, String parentEditorId, MessageResolver messageResolver)
           
 String getModelKey()
           
protected  String getViewName()
           
 ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
           
protected  void processPath(EditorPath path, HttpServletRequest request)
           
 void setMessageCodesResolver(AdvancedMessageCodesResolver messageCodesResolver)
           
 void setMessageSource(MessageSource messageSource)
           
 void setModelKey(String modelKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathController

public PathController(EditorRepository repository)
Method Detail

setMessageSource

public void setMessageSource(MessageSource messageSource)
Specified by:
setMessageSource in interface MessageSourceAware

setMessageCodesResolver

public void setMessageCodesResolver(AdvancedMessageCodesResolver messageCodesResolver)

getModelKey

public String getModelKey()

setModelKey

public void setModelKey(String modelKey)

getViewName

protected String getViewName()

handleRequest

public ModelAndView handleRequest(HttpServletRequest request,
                                  HttpServletResponse response)
                           throws Exception
Specified by:
handleRequest in interface Controller
Throws:
Exception

createLastPathComponent

protected EditorReference createLastPathComponent(EditorDefinition editor,
                                                  String objectId,
                                                  String parentId,
                                                  String parentEditorId,
                                                  MessageResolver messageResolver)

processPath

protected void processPath(EditorPath path,
                           HttpServletRequest request)