Last change
on this file since 10714 was
10714,
checked in by mlg, 13 years ago
|
Adds support for method pwg.categories.delete
(allows to delete a category).
|
File size:
1.1 KB
|
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.JiwigoException; |
---|
8 | import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; |
---|
9 | |
---|
10 | public 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 | |
---|
31 | /** |
---|
32 | * Function that deletes a given category |
---|
33 | * @param category the category to delete |
---|
34 | * @return true if the category is successfully deleted |
---|
35 | * @throws JiwigoException |
---|
36 | */ |
---|
37 | public boolean delete(Category category) throws JiwigoException; |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.