View Javadoc
1   package info.ejava.examples.jaxrs.todos.ejb;
2   
3   import javax.ejb.Remote;
4   
5   import info.ejava.examples.jaxrs.todos.dto.TodoItemDTO;
6   import info.ejava.examples.jaxrs.todos.dto.TodoListDTO;
7   import info.ejava.examples.jaxrs.todos.dto.TodoListListDTO;
8   
9   @Remote
10  public interface TodosMgmtRemote {
11      TodoListListDTO getTodoLists(int offset, int limit);
12      TodoListDTO createTodoList(TodoListDTO todoList) throws InvalidRequestException;
13      TodoListDTO getTodoList(String listName) throws ResourceNotFoundException;
14      TodoListDTO renameTodoList(String oldName, String newName) throws ResourceNotFoundException;
15      void deleteTodoList(String listName) throws ResourceNotFoundException;
16      
17      
18      void addTodoListItem(String listName, TodoItemDTO item) 
19              throws ResourceNotFoundException, InvalidRequestException;
20      TodoItemDTO updateTodoListItem(String listName, String itemName, TodoItemDTO item)
21              throws ResourceNotFoundException, InvalidRequestException;
22      void deleteTodoListItem(String listName, String itemName)
23              throws ResourceNotFoundException, InvalidRequestException;
24      
25      void deleteAll();
26  }