Package org.fao.geonet.services.resources.handlers

Examples of org.fao.geonet.services.resources.handlers.IResourceUploadHandler


        if (username == null)
            username = "unknown (this shouldn't happen?)";

        String fname = file.getName();
        String fsize = Long.toString(file.getSize());
        IResourceUploadHandler uploadHook = (IResourceUploadHandler) context.getApplicationContext().getBean("resourceUploadHandler");
        uploadHook.onUpload(context, access, overwrite, Integer.parseInt(id), fname, new Double(fsize).doubleValue());


        context.info("UPLOADED:" + fname + "," + id + ","
                + context.getIpAddress() + "," + username);
View Full Code Here


        String fsize = fnameElem.getAttributeValue("size");
        if (fsize == null)
            fsize = "0";


        IResourceUploadHandler uploadHook = (IResourceUploadHandler) context.getApplicationContext().getBean("resourceUploadHandler");
        uploadHook.onUpload(context, params, Integer.parseInt(id), fname, new Double(fsize).doubleValue());

        context.info("UPLOADED:" + fname + "," + id + "," + mdUuid + ","
                + context.getIpAddress() + "," + username);

        // update the metadata
View Full Code Here

TOP

Related Classes of org.fao.geonet.services.resources.handlers.IResourceUploadHandler

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.