source: extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/dao/TagDao.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: 814 bytes
Line 
1package fr.mael.jiwigo.dao;
2
3import java.util.List;
4
5import fr.mael.jiwigo.om.Image;
6import fr.mael.jiwigo.om.Tag;
7import fr.mael.jiwigo.transverse.exception.JiwigoException;
8
9public interface TagDao {
10    /**
11     * lists the tags
12     * @return the list of tags
13     * @throws JiwigoException
14     */
15    public List<Tag> list() throws JiwigoException;
16
17    /**
18     * Creation of a tag
19     * @param tag the tag to create
20     * @return true if the tag as been successfully created
21     * @throws JiwigoException
22     */
23    public boolean create(Tag tag) throws JiwigoException;
24
25    /**
26     * Function that returns the tags for an image
27     * @param image the image
28     * @return the tags list
29     * @throws JiwigoException
30     */
31    public List<Tag> tagsForImage(Image image) throws JiwigoException;
32}
Note: See TracBrowser for help on using the repository browser.