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:
802 bytes
|
Line | |
---|
1 | package fr.mael.jiwigo.service; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import fr.mael.jiwigo.om.Image; |
---|
6 | import fr.mael.jiwigo.om.Tag; |
---|
7 | import fr.mael.jiwigo.transverse.exception.JiwigoException; |
---|
8 | |
---|
9 | public interface TagService { |
---|
10 | |
---|
11 | /** |
---|
12 | * Lists all tags |
---|
13 | * @return le list of tags |
---|
14 | * @throws JiwigoException |
---|
15 | */ |
---|
16 | public List<Tag> list() throws JiwigoException; |
---|
17 | |
---|
18 | /** |
---|
19 | * Creates a tag |
---|
20 | * @param nom name of the tag |
---|
21 | * @return true if the tag is created |
---|
22 | * @throws JiwigoException |
---|
23 | */ |
---|
24 | public boolean create(String nom) throws JiwigoException; |
---|
25 | |
---|
26 | /** |
---|
27 | * Returns all the tag for an image |
---|
28 | * @param image the image to check |
---|
29 | * @return the list of tags |
---|
30 | * @throws JiwigoException |
---|
31 | */ |
---|
32 | public List<Tag> tagsForImage(Image image) throws JiwigoException; |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.