|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.components.editor.ComponentEditorImpl
@Transactional public class ComponentEditorImpl
Service bean to edit ComponentLists and ComponentVersions.
Constructor Summary | |
---|---|
ComponentEditorImpl(ComponentDao componentDao,
CacheService cacheService,
ComponentRenderer renderer,
ContentFormRepository formRepository)
|
Method Summary | |
---|---|
void |
deleteComponent(Long componentId)
|
void |
discard(Long[] containerIds)
|
String[] |
getComponentLabels(String[] types,
HttpServletRequest request)
|
String |
getText(Long contentId,
String property)
Returns the value of the given property. |
Map<String,Map<String,Object>> |
getTinyMCEProfiles()
|
String |
insertComponent(Long listId,
int position,
String type,
String properties)
Creates a new Component and inserts it in the list identified by the given id. |
void |
logout()
Performs a logout. |
void |
markAsDirty(Long containerId)
|
void |
moveComponent(Long componentId,
Long nextComponentId)
|
void |
publish(Long[] containerIds)
|
String |
renderComponent(Long componentId)
|
void |
setMessageSource(MessageSource messageSource)
|
void |
setServletContext(ServletContext servletContext)
|
void |
setTinyMCEProfiles(Map<String,Map<String,Object>> tinyMCEProfiles)
|
String |
setType(Long componentId,
String type,
String properties)
|
void |
updateText(Long contentId,
String property,
String text)
Sets the given property to a new value. |
String[] |
updateTextChunks(Long componentId,
String property,
String[] chunks)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentEditorImpl(ComponentDao componentDao, CacheService cacheService, ComponentRenderer renderer, ContentFormRepository formRepository)
Method Detail |
---|
public void setMessageSource(MessageSource messageSource)
setMessageSource
in interface MessageSourceAware
public void setServletContext(ServletContext servletContext)
setServletContext
in interface ServletContextAware
public Map<String,Map<String,Object>> getTinyMCEProfiles()
getTinyMCEProfiles
in interface ComponentEditor
public void setTinyMCEProfiles(Map<String,Map<String,Object>> tinyMCEProfiles)
public String getText(Long contentId, String property)
getText
in interface ComponentEditor
public void updateText(Long contentId, String property, String text)
updateText
in interface ComponentEditor
public String[] updateTextChunks(Long componentId, String property, String[] chunks)
updateTextChunks
in interface ComponentEditor
public String[] getComponentLabels(String[] types, HttpServletRequest request)
getComponentLabels
in interface ComponentEditor
public String insertComponent(Long listId, int position, String type, String properties)
insertComponent
in interface ComponentEditor
public String setType(Long componentId, String type, String properties)
setType
in interface ComponentEditor
public String renderComponent(Long componentId)
renderComponent
in interface ComponentEditor
public void moveComponent(Long componentId, Long nextComponentId)
moveComponent
in interface ComponentEditor
public void deleteComponent(Long componentId)
deleteComponent
in interface ComponentEditor
public void markAsDirty(Long containerId)
markAsDirty
in interface ComponentEditor
public void publish(Long[] containerIds)
publish
in interface ComponentEditor
public void discard(Long[] containerIds)
discard
in interface ComponentEditor
public void logout()
logout
in interface ComponentEditor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |