Ignore:
Timestamp:
Feb 27, 2011, 1:38:31 PM (13 years ago)
Author:
mlg
Message:

Modifications to use the last version of jiwigo-ws-api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/transverse/ImagesManagement.java

    r8829 r9393  
    99
    1010import fr.mael.jiwigo.om.Image;
    11 import fr.mael.jiwigo.transverse.util.Outil;
     11import fr.mael.jiwigo.transverse.util.Tools;
    1212
    1313/**
     
    3636   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    3737   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    38    
     38
    3939 * @author mael
    4040 * Management of the real sized pictures
     
    8585    /**
    8686     * boolean that defines if the application is sending files
    87      * 
     87     *
    8888     */
    8989    private boolean sendingFiles = false;
     
    138138
    139139    /**
    140      * 
     140     *
    141141     * @param image the current image
    142142     */
     
    158158     */
    159159    public BufferedImage getCurrentBufferedImage() {
    160         if (imageCache.get(currentImage.getIdentifiant()) == null) {
     160        if (imageCache.get(currentImage.getIdentifier()) == null) {
    161161            try {
    162162                BufferedImage img = ImageIO.read(new URL(currentImage.getUrl()));
    163                 imageCache.put(currentImage.getIdentifiant(), img);
     163                imageCache.put(currentImage.getIdentifier(), img);
    164164            } catch (Exception e) {
    165                 LOG.error(Outil.getStackTrace(e));
     165                LOG.error(Tools.getStackTrace(e));
    166166            }
    167167        }
    168         return imageCache.get(currentImage.getIdentifiant());
     168        return imageCache.get(currentImage.getIdentifier());
    169169    }
    170170
     
    175175     */
    176176    public BufferedImage getMiniatureBufferedImage(Image image) {
    177         if (thumbnailsCache.get(image.getIdentifiant()) == null) {
     177        if (thumbnailsCache.get(image.getIdentifier()) == null) {
    178178            try {
    179                 BufferedImage img = ImageIO.read(new URL(image.getMiniature()));
    180                 thumbnailsCache.put(image.getIdentifiant(), img);
     179                BufferedImage img = ImageIO.read(new URL(image.getThumbnailUrl()));
     180                thumbnailsCache.put(image.getIdentifier(), img);
    181181            } catch (Exception e) {
    182                 LOG.error(Outil.getStackTrace(e));
     182                LOG.error(Tools.getStackTrace(e));
    183183            }
    184184        }
    185185
    186         return thumbnailsCache.get(image.getIdentifiant());
     186        return thumbnailsCache.get(image.getIdentifier());
    187187    }
    188188
Note: See TracChangeset for help on using the changeset viewer.