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 | |
---|
1 | package fr.mael.jiwigo.dao; |
---|
2 | |
---|
3 | import java.io.IOException; |
---|
4 | import java.util.List; |
---|
5 | |
---|
6 | import fr.mael.jiwigo.om.Category; |
---|
7 | import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; |
---|
8 | |
---|
9 | public 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.