- Timestamp:
- Feb 28, 2011, 7:40:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/dao/TagDao.java
r9392 r9430 12 12 import fr.mael.jiwigo.transverse.enumeration.MethodsEnum; 13 13 import fr.mael.jiwigo.transverse.enumeration.TagEnum; 14 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 14 15 import fr.mael.jiwigo.transverse.session.SessionManager; 15 16 import fr.mael.jiwigo.transverse.util.Tools; … … 53 54 * @return the list of tags 54 55 * @throws IOException 56 * @throws ProxyAuthenticationException 55 57 */ 56 public List<Tag> list() throws IOException {58 public List<Tag> list() throws IOException, ProxyAuthenticationException { 57 59 Document doc = sessionManager.executeReturnDocument(MethodsEnum.TAGS_ADMIN_LIST.getLabel()); 58 60 // System.out.println(Outil.documentToString(doc)); … … 84 86 * @param tag the tag to create 85 87 * @return true if the tag as been successfully created 88 * @throws ProxyAuthenticationException 86 89 */ 87 public boolean create(Tag tag) {90 public boolean create(Tag tag) throws ProxyAuthenticationException { 88 91 try { 89 92 return Tools.checkOk(sessionManager.executeReturnDocument(MethodsEnum.ADD_TAG.getLabel(), "name", tag … … 100 103 * @return the tags list 101 104 * @throws IOException 105 * @throws ProxyAuthenticationException 102 106 */ 103 public List<Tag> tagsForImage(Image image) throws IOException {107 public List<Tag> tagsForImage(Image image) throws IOException, ProxyAuthenticationException { 104 108 Document doc = sessionManager.executeReturnDocument(MethodsEnum.GET_INFO.getLabel(), "image_id", String 105 109 .valueOf(image.getIdentifier()));
Note: See TracChangeset
for help on using the changeset viewer.