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

Last change on this file since 9919 was 9919, checked in by mlg, 13 years ago

Complete rewriting of the api
The api now uses interfaces everywhere (for the dao, services and session manager). This allows the developer to use his own implementations if he wants.
Deletion of the singletons. There are now getters and setters. It allows to make dependency injection.
Use of sl4j in the api, instead of using log4j.

File size: 823 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.ProxyAuthenticationException;
8
9public interface CategoryDao {
10
11    /**
12     * Lists the categories
13     * @param recursive true : recursive listing of the categories
14     * @return the list of categories
15     * @throws IOException
16     * @throws ProxyAuthenticationException
17     */
18    public List<Category> list(boolean recursive) throws IOException, ProxyAuthenticationException;
19
20    /**
21     * Creation of a category
22     * @param category the category to create
23     * @return true if the category is successfully created
24     * @throws ProxyAuthenticationException
25     */
26    public boolean create(Category category) throws ProxyAuthenticationException;
27}
Note: See TracBrowser for help on using the repository browser.