Package org.fao.geonet.kernel.thumbnail

Examples of org.fao.geonet.kernel.thumbnail.ThumbnailMaker


        Lib.resource.checkEditPrivilege(context, id);

        GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
        DataManager dataMan = gc.getBean(DataManager.class);
        ThumbnailMaker thumbnailMaker = gc.getBean(ThumbnailMaker.class);

        //--- check if the metadata has been modified from last time
        if (version != null && !dataMan.getVersion(id).equals(version)) {
            throw new ConcurrentUpdateEx(id);
        }


        File thumbnailFile = thumbnailMaker.generateThumbnail(
                jsonConfig,
                rotationAngle);

        //--- create destination directory
        String dataDir = Lib.resource.getDir(context, Params.Access.PUBLIC, id);
View Full Code Here

TOP

Related Classes of org.fao.geonet.kernel.thumbnail.ThumbnailMaker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.