org.riotfamily.components.view
Class InplaceMacroHelper

java.lang.Object
  extended by org.riotfamily.components.view.InplaceMacroHelper

public class InplaceMacroHelper
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
InplaceMacroHelper(HttpServletRequest request, HttpServletResponse response, List<String> toolbarScripts, List<DynamicToolbarScript> dynamicToolbarScripts, ComponentListRenderer componentListRenderer, RiotDaoService riotDaoService)
           
 
Method Summary
 String getDefaultListId(Object object)
           
 String getInitScript()
           
 String getObjectId(String listId, Object object)
           
 List<String> getToolbarScripts()
           
 boolean isEditGranted()
           
 boolean isEditMode()
           
 boolean isLiveModePreview()
           
 boolean isPublishGranted()
           
 String renderComponentList(ContentContainer container, String key, Integer minComponents, Integer maxComponents, List<String> initalComponentTypes, List<?> validComponentTypes)
           
 String renderNestedComponentList(Component parent, String key, Integer minComponents, Integer maxComponents, List<String> initalComponentTypes, List<?> validComponentTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InplaceMacroHelper

public InplaceMacroHelper(HttpServletRequest request,
                          HttpServletResponse response,
                          List<String> toolbarScripts,
                          List<DynamicToolbarScript> dynamicToolbarScripts,
                          ComponentListRenderer componentListRenderer,
                          RiotDaoService riotDaoService)
Method Detail

isEditMode

public boolean isEditMode()

isLiveModePreview

public boolean isLiveModePreview()

getToolbarScripts

public List<String> getToolbarScripts()

isEditGranted

public boolean isEditGranted()

isPublishGranted

public boolean isPublishGranted()

getInitScript

public String getInitScript()

getObjectId

public String getObjectId(String listId,
                          Object object)

getDefaultListId

public String getDefaultListId(Object object)

renderComponentList

public String renderComponentList(ContentContainer container,
                                  String key,
                                  Integer minComponents,
                                  Integer maxComponents,
                                  List<String> initalComponentTypes,
                                  List<?> validComponentTypes)
                           throws Exception
Throws:
Exception

renderNestedComponentList

public String renderNestedComponentList(Component parent,
                                        String key,
                                        Integer minComponents,
                                        Integer maxComponents,
                                        List<String> initalComponentTypes,
                                        List<?> validComponentTypes)
                                 throws Exception
Throws:
Exception