1 24 package org.riotfamily.riot.list.ui; 25 26 import java.util.List ; 27 import java.util.Map ; 28 29 import javax.servlet.http.HttpServletRequest ; 30 import javax.servlet.http.HttpServletResponse ; 31 32 import org.riotfamily.riot.list.command.CommandResult; 33 34 38 public interface ListService { 39 40 public ListSession getOrCreateListSession(String editorId, String parentId, 41 String choose, HttpServletRequest request); 42 43 public ListModel getModel(String key, HttpServletRequest request) 44 throws ListSessionExpiredException; 45 46 public ListModel gotoPage(String key, int page, HttpServletRequest request) 47 throws ListSessionExpiredException; 48 49 public ListModel sort(String key, String property, 50 HttpServletRequest request) throws ListSessionExpiredException; 51 52 public ListModel filter(String key, Map filter, HttpServletRequest request) 53 throws ListSessionExpiredException; 54 55 public List getFormCommands(String key, String objectId, 56 HttpServletRequest request) throws ListSessionExpiredException; 57 58 public List getListCommands(String key, HttpServletRequest request) 59 throws ListSessionExpiredException; 60 61 public CommandResult execCommand(String key, ListItem item, 62 String commandId, boolean confirmed, 63 HttpServletRequest request, HttpServletResponse response) 64 throws ListSessionExpiredException; 65 66 public String getFilterFormHtml(String key, HttpServletRequest request) 67 throws ListSessionExpiredException; 68 69 } 70 | Popular Tags |