org.riotfamily.components.editor
Interface ComponentEditor

All Known Implementing Classes:
ComponentEditorImpl

public interface ComponentEditor

Interface used by the Riot Toolbar to edit components. All methods defined by this interface are exposed to the JavaScript client via DWR.

Author:
Felix Gnass [fgnass at neteye dot de]

Method Summary
 void deleteComponent(Long componentId)
           
 void discard(Long[] containerIds)
           
 String[] getComponentLabels(String[] types, HttpServletRequest request)
           
 String getText(Long contentId, String property)
           
 Map<String,Map<String,Object>> getTinyMCEProfiles()
           
 String insertComponent(Long listId, int position, String type, String properties)
           
 void logout()
           
 void markAsDirty(Long containerId)
           
 void moveComponent(Long componentId, Long nextComponentId)
           
 void publish(Long[] containerIds)
           
 String renderComponent(Long componentId)
           
 String setType(Long componentId, String type, String properties)
           
 void updateText(Long contentId, String property, String text)
           
 String[] updateTextChunks(Long componentId, String property, String[] chunks)
           
 

Method Detail

getText

String getText(Long contentId,
               String property)

updateText

void updateText(Long contentId,
                String property,
                String text)

updateTextChunks

String[] updateTextChunks(Long componentId,
                          String property,
                          String[] chunks)

getComponentLabels

String[] getComponentLabels(String[] types,
                            HttpServletRequest request)

insertComponent

String insertComponent(Long listId,
                       int position,
                       String type,
                       String properties)

setType

String setType(Long componentId,
               String type,
               String properties)

renderComponent

String renderComponent(Long componentId)

moveComponent

void moveComponent(Long componentId,
                   Long nextComponentId)

deleteComponent

void deleteComponent(Long componentId)

markAsDirty

void markAsDirty(Long containerId)

publish

void publish(Long[] containerIds)

discard

void discard(Long[] containerIds)

logout

void logout()

getTinyMCEProfiles

Map<String,Map<String,Object>> getTinyMCEProfiles()