Changeset 10505 for extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/impl/ImageServiceImpl.java
- Timestamp:
- Apr 20, 2011, 5:17:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/impl/ImageServiceImpl.java
r10494 r10505 13 13 import fr.mael.jiwigo.service.ImageService; 14 14 import fr.mael.jiwigo.transverse.exception.FileAlreadyExistsException; 15 import fr.mael.jiwigo.transverse.exception.JiwigoException; 15 16 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 16 17 import fr.mael.jiwigo.transverse.exception.WrongChunkSizeException; … … 51 52 * @throws ProxyAuthenticationException 52 53 */ 53 public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws IOException, 54 ProxyAuthenticationException { 54 public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws JiwigoException { 55 55 return dao.listByCategory(categoryId, rafraichir); 56 56 } … … 68 68 * @throws FileAlreadyExistsException 69 69 * @throws NoSuchAlgorithmException 70 * @throws JiwigoException 70 71 * @throws Exception 71 72 */ 72 73 public boolean create(String filePath, Integer idCategory, Integer originalWidth, Integer originalHeight, 73 74 Double chunckSize, Integer privacyLevel) throws IOException, NoSuchAlgorithmException, 74 FileAlreadyExistsException, ProxyAuthenticationException, WrongChunkSizeException { 75 FileAlreadyExistsException, ProxyAuthenticationException, WrongChunkSizeException, 76 JiwigoException { 75 77 File originalFile = new File(filePath); 76 78 //get the byte array of the original file, to keep metadata … … 117 119 * @throws ProxyAuthenticationException 118 120 */ 119 public boolean addTags(Image image, String tagId) throws IOException, ProxyAuthenticationException {121 public boolean addTags(Image image, String tagId) throws JiwigoException { 120 122 return dao.addTags(image.getIdentifier(), tagId); 121 123 } … … 128 130 * @throws ProxyAuthenticationException 129 131 */ 130 public List<Image> search(String queryString) throws IOException, ProxyAuthenticationException {132 public List<Image> search(String queryString) throws JiwigoException { 131 133 return dao.search(queryString); 132 134 } … … 144 146 } 145 147 146 public void addSimple(File file, Integer category, String title) throws IOException {148 public void addSimple(File file, Integer category, String title) throws JiwigoException { 147 149 dao.addSimple(file, category, title); 148 150
Note: See TracChangeset
for help on using the changeset viewer.