package au.com.subash.session;

import au.com.subash.entity.TodoItem;
import au.com.subash.entity.TodoList;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author subash
 */
@Remote
public interface ManageTodoListFacadeRemote {
    List<TodoList> getTodoLists();
    TodoList addTodoList(TodoList list);
    boolean removeTodoList(int id);
    boolean updateTodoList(TodoList list);
    boolean updateTodoItem(TodoItem item);
}

package au.com.subash.session;

import au.com.subash.entity.TodoItem;
import au.com.subash.entity.TodoList;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author subash
 */
@Remote
public interface ManageTodoListFacadeRemote {
    /**
     * Get all lists
     * @return All found lists
     */
    List<TodoList> getTodoLists();
    
    /**
     * Add a new list
     * 
     * @param list List to add
     * @return Added list
     */
    TodoList addTodoList(TodoList list);
    
    /**
     * Remove list
     * 
     * @param id Id of list to remove
     * @return Success and failure
     */
    boolean removeTodoList(int id);
    
    /**
     * Update list
     * 
     * @param list List to update
     * @return Success or failure
     */
    boolean updateTodoList(TodoList list);
    
    /**
     * Update Item
     * 
     * @param item Item to update
     * @return Success or failure
     */
    boolean updateTodoItem(TodoItem item);
}

add doc block