1 | package fr.mael.jiwigo.om; |
---|
2 | |
---|
3 | import java.io.File; |
---|
4 | |
---|
5 | /* |
---|
6 | Copyright (c) 2010, Mael |
---|
7 | All rights reserved. |
---|
8 | |
---|
9 | Redistribution and use in source and binary forms, with or without |
---|
10 | modification, are permitted provided that the following conditions are met: |
---|
11 | * Redistributions of source code must retain the above copyright |
---|
12 | notice, this list of conditions and the following disclaimer. |
---|
13 | * Redistributions in binary form must reproduce the above copyright |
---|
14 | notice, this list of conditions and the following disclaimer in the |
---|
15 | documentation and/or other materials provided with the distribution. |
---|
16 | * Neither the name of jiwigo nor the |
---|
17 | names of its contributors may be used to endorse or promote products |
---|
18 | derived from this software without specific prior written permission. |
---|
19 | |
---|
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
---|
21 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
---|
22 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
---|
23 | DISCLAIMED. IN NO EVENT SHALL Mael BE LIABLE FOR ANY |
---|
24 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
---|
25 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
---|
26 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
---|
27 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
---|
28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
---|
29 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
30 | */ |
---|
31 | /** |
---|
32 | * |
---|
33 | |
---|
34 | * @author mael |
---|
35 | * |
---|
36 | */ |
---|
37 | public class Image { |
---|
38 | private String thumbnailUrl; |
---|
39 | private String url; |
---|
40 | private Integer width; |
---|
41 | private Integer height; |
---|
42 | private String file; |
---|
43 | private Integer identifier; |
---|
44 | private Integer seen; |
---|
45 | private String name; |
---|
46 | private Integer idCategory; |
---|
47 | private String author; |
---|
48 | private File thumbnail; |
---|
49 | private String privacyLevel; |
---|
50 | |
---|
51 | /** |
---|
52 | * @return the privacyLevel |
---|
53 | */ |
---|
54 | public String getPrivacyLevel() { |
---|
55 | return privacyLevel; |
---|
56 | } |
---|
57 | |
---|
58 | /** |
---|
59 | * @param privacyLevel the privacyLevel to set |
---|
60 | */ |
---|
61 | public void setPrivacyLevel(String privacyLevel) { |
---|
62 | this.privacyLevel = privacyLevel; |
---|
63 | } |
---|
64 | |
---|
65 | public Integer getSeen() { |
---|
66 | return seen; |
---|
67 | } |
---|
68 | |
---|
69 | public void setSeen(Integer seen) { |
---|
70 | this.seen = seen; |
---|
71 | } |
---|
72 | |
---|
73 | public String getAuthor() { |
---|
74 | return author; |
---|
75 | } |
---|
76 | |
---|
77 | public void setAuthor(String author) { |
---|
78 | this.author = author; |
---|
79 | } |
---|
80 | |
---|
81 | /** |
---|
82 | * @return the thumbnail |
---|
83 | */ |
---|
84 | public File getThumbnail() { |
---|
85 | return thumbnail; |
---|
86 | } |
---|
87 | |
---|
88 | /** |
---|
89 | * @param thumbnail the thumbnail to set |
---|
90 | */ |
---|
91 | public void setThumbnail(File thumbnail) { |
---|
92 | this.thumbnail = thumbnail; |
---|
93 | } |
---|
94 | |
---|
95 | /** |
---|
96 | * @return the originale |
---|
97 | */ |
---|
98 | public File getOriginale() { |
---|
99 | return originale; |
---|
100 | } |
---|
101 | |
---|
102 | /** |
---|
103 | * @param originale the originale to set |
---|
104 | */ |
---|
105 | public void setOriginale(File originale) { |
---|
106 | this.originale = originale; |
---|
107 | } |
---|
108 | |
---|
109 | private File originale; |
---|
110 | |
---|
111 | @Override |
---|
112 | public String toString() { |
---|
113 | // TODO Auto-generated method stub |
---|
114 | return name; |
---|
115 | } |
---|
116 | |
---|
117 | public String getThumbnailUrl() { |
---|
118 | return thumbnailUrl; |
---|
119 | } |
---|
120 | |
---|
121 | public void setThumbnailUrl(String thumbnailUrl) { |
---|
122 | this.thumbnailUrl = thumbnailUrl; |
---|
123 | } |
---|
124 | |
---|
125 | /** |
---|
126 | * @return the url |
---|
127 | */ |
---|
128 | public String getUrl() { |
---|
129 | return url; |
---|
130 | } |
---|
131 | |
---|
132 | /** |
---|
133 | * @param url the url to set |
---|
134 | */ |
---|
135 | public void setUrl(String url) { |
---|
136 | this.url = url; |
---|
137 | } |
---|
138 | |
---|
139 | /** |
---|
140 | * @return the width |
---|
141 | */ |
---|
142 | public Integer getWidth() { |
---|
143 | return width; |
---|
144 | } |
---|
145 | |
---|
146 | /** |
---|
147 | * @param width the width to set |
---|
148 | */ |
---|
149 | public void setWidth(Integer width) { |
---|
150 | this.width = width; |
---|
151 | } |
---|
152 | |
---|
153 | /** |
---|
154 | * @return the height |
---|
155 | */ |
---|
156 | public Integer getHeight() { |
---|
157 | return height; |
---|
158 | } |
---|
159 | |
---|
160 | /** |
---|
161 | * @param height the height to set |
---|
162 | */ |
---|
163 | public void setHeight(Integer height) { |
---|
164 | this.height = height; |
---|
165 | } |
---|
166 | |
---|
167 | /** |
---|
168 | * @return the file |
---|
169 | */ |
---|
170 | public String getFile() { |
---|
171 | return file; |
---|
172 | } |
---|
173 | |
---|
174 | /** |
---|
175 | * @param file the file to set |
---|
176 | */ |
---|
177 | public void setFile(String file) { |
---|
178 | this.file = file; |
---|
179 | } |
---|
180 | |
---|
181 | public Integer getIdentifier() { |
---|
182 | return identifier; |
---|
183 | } |
---|
184 | |
---|
185 | public void setIdentifier(Integer identifier) { |
---|
186 | this.identifier = identifier; |
---|
187 | } |
---|
188 | |
---|
189 | /** |
---|
190 | * @return the name |
---|
191 | */ |
---|
192 | public String getName() { |
---|
193 | return name; |
---|
194 | } |
---|
195 | |
---|
196 | /** |
---|
197 | * @param name the name to set |
---|
198 | */ |
---|
199 | public void setName(String name) { |
---|
200 | this.name = name; |
---|
201 | } |
---|
202 | |
---|
203 | /** |
---|
204 | * @return the idCategory |
---|
205 | */ |
---|
206 | public Integer getIdCategory() { |
---|
207 | return idCategory; |
---|
208 | } |
---|
209 | |
---|
210 | /** |
---|
211 | * @param idCategory the idCategory to set |
---|
212 | */ |
---|
213 | public void setIdCategory(Integer idCategory) { |
---|
214 | this.idCategory = idCategory; |
---|
215 | } |
---|
216 | |
---|
217 | } |
---|