- 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/ImageDao.java
r9394 r9430 13 13 import fr.mael.jiwigo.om.Image; 14 14 import fr.mael.jiwigo.transverse.enumeration.MethodsEnum; 15 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 15 16 import fr.mael.jiwigo.transverse.exception.WrongChunkSizeException; 16 17 import fr.mael.jiwigo.transverse.session.SessionManager; … … 98 99 * @return the list of images 99 100 * @throws IOException 100 */ 101 public List<Image> list(boolean refresh) throws IOException { 101 * @throws ProxyAuthenticationException 102 */ 103 public List<Image> list(boolean refresh) throws IOException, ProxyAuthenticationException { 102 104 return listByCategory(null, refresh); 103 105 } … … 108 110 * @return the list of images 109 111 * @throws IOException 110 */ 111 public List<Image> listByCategory(Integer categoryId, boolean refresh) throws IOException { 112 * @throws ProxyAuthenticationException 113 */ 114 public List<Image> listByCategory(Integer categoryId, boolean refresh) throws IOException, 115 ProxyAuthenticationException { 112 116 if (refresh || cache.get(categoryId) == null) { 113 117 Document doc = null; … … 207 211 * @param tagId ids of the tags 208 212 * @throws IOException 209 */ 210 public boolean addTags(Integer imageId, String tagId) throws IOException { 213 * @throws ProxyAuthenticationException 214 */ 215 public boolean addTags(Integer imageId, String tagId) throws IOException, ProxyAuthenticationException { 211 216 Document doc = sessionManager.executeReturnDocument(MethodsEnum.SET_INFO.getLabel(), "image_id", String 212 217 .valueOf(imageId), "tag_ids", tagId); … … 248 253 * @return the list of images matching the string 249 254 * @throws IOException 250 */ 251 public List<Image> search(String searchString) throws IOException { 255 * @throws ProxyAuthenticationException 256 */ 257 public List<Image> search(String searchString) throws IOException, ProxyAuthenticationException { 252 258 Document doc = sessionManager.executeReturnDocument(MethodsEnum.SEARCH.getLabel(), "query", searchString); 253 259 LOG.debug(doc);
Note: See TracChangeset
for help on using the changeset viewer.