org.riotfamily.riot.list.ui
Class ListServiceImpl
java.lang.Object
org.riotfamily.riot.list.ui.ListServiceImpl
- All Implemented Interfaces:
- ConfigurationEventListener, ListService, MessageSourceAware
public class ListServiceImpl
- extends Object
- implements ListService, MessageSourceAware, ConfigurationEventListener
- Since:
- 6.4
- Author:
- Felix Gnass [fgnass at neteye dot de]
Method Summary |
void |
beanReconfigured(ConfigurableBean bean)
|
CommandResult |
execCommand(String key,
List<ListItem> items,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
|
ListModel |
filter(String key,
Map<String,String> filter,
HttpServletRequest request)
|
ListModel |
getChildren(String key,
String parentId,
HttpServletRequest request)
|
String |
getFilterFormHtml(String key,
HttpServletRequest request)
|
List<CommandButton> |
getFormCommands(String key,
String objectId,
HttpServletRequest request)
|
List<CommandButton> |
getListCommands(String key,
HttpServletRequest request)
|
protected ListSession |
getListSession(String key,
HttpServletRequest request)
|
ListModel |
getModel(String key,
String expandedId,
HttpServletRequest request)
|
ListSession |
getOrCreateListSession(String editorId,
String parentId,
String parentEditorId,
String choose,
HttpServletRequest request)
|
ListModel |
gotoPage(String key,
int page,
HttpServletRequest request)
|
void |
setEditorRepository(EditorRepository editorRepository)
|
void |
setFormContextFactory(FormContextFactory formContextFactory)
|
void |
setMessageCodesResolver(AdvancedMessageCodesResolver codesResolver)
|
void |
setMessageSource(MessageSource messageSource)
|
void |
setTransactionManager(PlatformTransactionManager transactionManager)
|
ListModel |
sort(String key,
String property,
HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListServiceImpl
public ListServiceImpl()
setMessageCodesResolver
public void setMessageCodesResolver(AdvancedMessageCodesResolver codesResolver)
setEditorRepository
public void setEditorRepository(EditorRepository editorRepository)
setMessageSource
public void setMessageSource(MessageSource messageSource)
- Specified by:
setMessageSource
in interface MessageSourceAware
setFormContextFactory
public void setFormContextFactory(FormContextFactory formContextFactory)
setTransactionManager
public void setTransactionManager(PlatformTransactionManager transactionManager)
getOrCreateListSession
public ListSession getOrCreateListSession(String editorId,
String parentId,
String parentEditorId,
String choose,
HttpServletRequest request)
- Specified by:
getOrCreateListSession
in interface ListService
getListSession
protected ListSession getListSession(String key,
HttpServletRequest request)
throws ListSessionExpiredException
- Throws:
ListSessionExpiredException
beanReconfigured
public void beanReconfigured(ConfigurableBean bean)
- Specified by:
beanReconfigured
in interface ConfigurationEventListener
getModel
public ListModel getModel(String key,
String expandedId,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
getModel
in interface ListService
- Throws:
ListSessionExpiredException
getFilterFormHtml
public String getFilterFormHtml(String key,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
getFilterFormHtml
in interface ListService
- Throws:
ListSessionExpiredException
getListCommands
public List<CommandButton> getListCommands(String key,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
getListCommands
in interface ListService
- Throws:
ListSessionExpiredException
getFormCommands
public List<CommandButton> getFormCommands(String key,
String objectId,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
getFormCommands
in interface ListService
- Throws:
ListSessionExpiredException
execCommand
public CommandResult execCommand(String key,
List<ListItem> items,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
throws ListSessionExpiredException
- Specified by:
execCommand
in interface ListService
- Throws:
ListSessionExpiredException
filter
public ListModel filter(String key,
Map<String,String> filter,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
filter
in interface ListService
- Throws:
ListSessionExpiredException
gotoPage
public ListModel gotoPage(String key,
int page,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
gotoPage
in interface ListService
- Throws:
ListSessionExpiredException
sort
public ListModel sort(String key,
String property,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
sort
in interface ListService
- Throws:
ListSessionExpiredException
getChildren
public ListModel getChildren(String key,
String parentId,
HttpServletRequest request)
throws ListSessionExpiredException
- Specified by:
getChildren
in interface ListService
- Throws:
ListSessionExpiredException