source: extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/dao/CategoryDao.java @ 10505

Last change on this file since 10505 was 10505, checked in by anthony43, 13 years ago

huge refactoring to introduce JiwigoException : a generic exception encapsulating low level exceptions (IOException, ProxyAuthentication, etc...)
The aim is to have, on the consumer side, just one exception to catch them all.
this refactoring may need a code review to check the changes.

File size: 908 bytes
Line 
1package fr.mael.jiwigo.dao;
2
3import java.io.IOException;
4import java.util.List;
5
6import fr.mael.jiwigo.om.Category;
7import fr.mael.jiwigo.transverse.exception.JiwigoException;
8import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
9
10public interface CategoryDao {
11
12    /**
13     * Lists the categories
14     * @param recursive true : recursive listing of the categories
15     * @return the list of categories
16     * @throws IOException
17     * @throws ProxyAuthenticationException
18     * @throws JiwigoException
19     */
20    public List<Category> list(boolean recursive) throws JiwigoException;
21
22    /**
23     * Creation of a category
24     * @param category the category to create
25     * @return true if the category is successfully created
26     * @throws ProxyAuthenticationException
27     * @throws JiwigoException
28     */
29    public boolean create(Category category) throws JiwigoException;
30}
Note: See TracBrowser for help on using the repository browser.