org.riotfamily.riot.list.ui
Class ListSession
java.lang.Object
org.riotfamily.riot.list.ui.ListSession
- All Implemented Interfaces:
- RenderContext
public class ListSession
- extends Object
- implements RenderContext
- Since:
- 6.4
- Author:
- Felix Gnass [fgnass at neteye dot de]
Method Summary |
CommandResult |
execBatchCommand(List<ListItem> items,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
|
CommandResult |
execCommand(ListItem item,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
|
ListModel |
filter(Map<String,String> filter,
HttpServletRequest request)
|
Class<?> |
getBeanClass()
|
ListModel |
getChildren(String parentId,
HttpServletRequest request)
|
Command |
getCommand(String id)
|
String |
getContextPath()
|
String |
getFilterFormHtml()
|
List<CommandButton> |
getFormCommandButtons(String objectId,
HttpServletRequest request)
|
String |
getKey()
|
List<CommandButton> |
getListCommandButtons(HttpServletRequest request)
|
ListDefinition |
getListDefinition()
|
String |
getListId()
|
static ListSession |
getListSession(HttpServletRequest request,
String key)
|
MessageResolver |
getMessageResolver()
|
ListModel |
getModel(String expandedId,
HttpServletRequest request)
|
ListParamsImpl |
getParams()
|
String |
getParentId()
|
ListDefinition |
getParentListDefinition(String parentEditorId)
|
String[] |
getSearchProperties()
|
String |
getSearchQuery()
|
String |
getTitle()
|
ListModel |
gotoPage(int page,
HttpServletRequest request)
|
boolean |
isExpired()
|
Object |
loadParent()
|
void |
setChooserTarget(EditorDefinition target)
|
ListModel |
sort(String property,
HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListSession
public ListSession(String key,
ListDefinition listDefinition,
String parentId,
String parentEditorId,
MessageResolver messageResolver,
String contextPath,
FormRepository formRepository,
FormContextFactory formContextFactory,
PlatformTransactionManager transactionManager)
getListSession
public static ListSession getListSession(HttpServletRequest request,
String key)
getKey
public String getKey()
setChooserTarget
public void setChooserTarget(EditorDefinition target)
getTitle
public String getTitle()
getChildren
public ListModel getChildren(String parentId,
HttpServletRequest request)
getModel
public ListModel getModel(String expandedId,
HttpServletRequest request)
sort
public ListModel sort(String property,
HttpServletRequest request)
getSearchProperties
public String[] getSearchProperties()
getSearchQuery
public String getSearchQuery()
getFilterFormHtml
public String getFilterFormHtml()
filter
public ListModel filter(Map<String,String> filter,
HttpServletRequest request)
gotoPage
public ListModel gotoPage(int page,
HttpServletRequest request)
getFormCommandButtons
public List<CommandButton> getFormCommandButtons(String objectId,
HttpServletRequest request)
getListCommandButtons
public List<CommandButton> getListCommandButtons(HttpServletRequest request)
execCommand
public CommandResult execCommand(ListItem item,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
execBatchCommand
public CommandResult execBatchCommand(List<ListItem> items,
String commandId,
boolean confirmed,
HttpServletRequest request,
HttpServletResponse response)
getCommand
public Command getCommand(String id)
loadParent
public Object loadParent()
getListDefinition
public ListDefinition getListDefinition()
getParentListDefinition
public ListDefinition getParentListDefinition(String parentEditorId)
getListId
public String getListId()
getParams
public ListParamsImpl getParams()
getParentId
public String getParentId()
getBeanClass
public Class<?> getBeanClass()
isExpired
public boolean isExpired()
getMessageResolver
public MessageResolver getMessageResolver()
- Specified by:
getMessageResolver
in interface RenderContext
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interface RenderContext