source: extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/om/Image.java @ 8829

Last change on this file since 8829 was 8829, checked in by mlg, 13 years ago

Changes ImagesManagement access from static to object.

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