- Timestamp:
- Feb 28, 2011, 7:40:53 PM (13 years ago)
- Location:
- extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/CategoryService.java
r9392 r9430 6 6 import fr.mael.jiwigo.dao.CategoryDao; 7 7 import fr.mael.jiwigo.om.Category; 8 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 8 9 import fr.mael.jiwigo.transverse.session.SessionManager; 9 10 … … 76 77 * @return the list of categories 77 78 * @throws IOException 79 * @throws ProxyAuthenticationException 78 80 */ 79 public List<Category> list(boolean recursive) throws IOException {81 public List<Category> list(boolean recursive) throws IOException, ProxyAuthenticationException { 80 82 return CategoryDao.getInstance(sessionManager).list(recursive); 81 83 } … … 85 87 * @return list of categories 86 88 * @throws IOException 89 * @throws ProxyAuthenticationException 87 90 */ 88 public List<Category> makeTree() throws IOException {91 public List<Category> makeTree() throws IOException, ProxyAuthenticationException { 89 92 List<Category> list = CategoryDao.getInstance(sessionManager).list(true); 90 93 for (Category category : list) { … … 109 112 * @param parent parent category 110 113 * @return true if successful 114 * @throws ProxyAuthenticationException 111 115 */ 112 public boolean create(String nom, Integer parent) {116 public boolean create(String nom, Integer parent) throws ProxyAuthenticationException { 113 117 Category category = new Category(); 114 118 category.setDirectParent(parent); … … 121 125 * @param nom name of the category 122 126 * @return true if successful 127 * @throws ProxyAuthenticationException 123 128 */ 124 public boolean create(String nom) {129 public boolean create(String nom) throws ProxyAuthenticationException { 125 130 Category category = new Category(); 126 131 category.setName(nom); -
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/CommentService.java
r9392 r9430 6 6 import fr.mael.jiwigo.dao.CommentDao; 7 7 import fr.mael.jiwigo.om.Comment; 8 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 8 9 import fr.mael.jiwigo.transverse.session.SessionManager; 9 10 … … 75 76 * @return the list of comments 76 77 * @throws IOException 78 * @throws ProxyAuthenticationException 77 79 */ 78 public List<Comment> list(Integer imageId) throws IOException {80 public List<Comment> list(Integer imageId) throws IOException, ProxyAuthenticationException { 79 81 return CommentDao.getInstance(sessionManager).list(imageId); 80 82 } … … 87 89 * @return true if successful 88 90 * @throws IOException 91 * @throws ProxyAuthenticationException 89 92 */ 90 public boolean create(String content, Integer imageId, String auteur) throws IOException { 93 public boolean create(String content, Integer imageId, String auteur) throws IOException, 94 ProxyAuthenticationException { 91 95 Comment comment = new Comment(); 92 96 comment.setContent(content); -
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/ImageService.java
r9394 r9430 7 7 import fr.mael.jiwigo.dao.ImageDao; 8 8 import fr.mael.jiwigo.om.Image; 9 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 9 10 import fr.mael.jiwigo.transverse.session.SessionManager; 10 11 import fr.mael.jiwigo.transverse.util.ImagesUtil; … … 80 81 * @return the list of images 81 82 * @throws IOException 83 * @throws ProxyAuthenticationException 82 84 */ 83 public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws IOException { 85 public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws IOException, 86 ProxyAuthenticationException { 84 87 return ImageDao.getInstance(sessionManager).listByCategory(categoryId, rafraichir); 85 88 } … … 139 142 * @return true if successful 140 143 * @throws IOException 144 * @throws ProxyAuthenticationException 141 145 */ 142 public boolean addTags(Image image, String tagId) throws IOException {146 public boolean addTags(Image image, String tagId) throws IOException, ProxyAuthenticationException { 143 147 return ImageDao.getInstance(sessionManager).addTags(image.getIdentifier(), tagId); 144 148 } … … 149 153 * @return images matching the string 150 154 * @throws IOException 155 * @throws ProxyAuthenticationException 151 156 */ 152 public List<Image> search(String queryString) throws IOException {157 public List<Image> search(String queryString) throws IOException, ProxyAuthenticationException { 153 158 return ImageDao.getInstance(sessionManager).search(queryString); 154 159 } -
extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/TagService.java
r9392 r9430 7 7 import fr.mael.jiwigo.om.Image; 8 8 import fr.mael.jiwigo.om.Tag; 9 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 9 10 import fr.mael.jiwigo.transverse.session.SessionManager; 10 11 … … 76 77 * @return le list of tags 77 78 * @throws IOException 79 * @throws ProxyAuthenticationException 78 80 */ 79 public List<Tag> list() throws IOException {81 public List<Tag> list() throws IOException, ProxyAuthenticationException { 80 82 return TagDao.getInstance(sessionManager).list(); 81 83 } … … 86 88 * @return true if the tag is created 87 89 * @throws IOException 90 * @throws ProxyAuthenticationException 88 91 */ 89 public boolean create(String nom) throws IOException {92 public boolean create(String nom) throws IOException, ProxyAuthenticationException { 90 93 Tag tag = new Tag(); 91 94 tag.setName(nom); … … 98 101 * @return the list of tags 99 102 * @throws IOException 103 * @throws ProxyAuthenticationException 100 104 */ 101 public List<Tag> tagsForImage(Image image) throws IOException {105 public List<Tag> tagsForImage(Image image) throws IOException, ProxyAuthenticationException { 102 106 return TagDao.getInstance(sessionManager).tagsForImage(image); 103 107 }
Note: See TracChangeset
for help on using the changeset viewer.