Examples of UploadType


Examples of org.jboss.seam.wiki.core.upload.UploadType

        uploader.setData(uncompressedBytes);
        uploader.setFilename(zipEntry.getName());
        uploader.setContentType(contentType);

        // Get the right handler for that type and produce a WikiUpload instance
        UploadType uploadType = uploadTypes.get(contentType);
        if (uploadType == null) uploadType = uploadTypes.get(UploadTypes.GENERIC_UPLOAD_TYPE);
        WikiUpload wikiUpload = uploadType.getUploadHandler().handleUpload(uploader);

        // Now set the other properties so we can persist it directly
        wikiUpload.setName(wikiUpload.getFilenameWithoutExtension());
        wikiUpload.setWikiname(WikiUtil.convertToWikiName(wikiUpload.getName()));
        wikiUpload.setAreaNumber(zipFile.getAreaNumber());
View Full Code Here

Examples of org.jboss.seam.wiki.core.upload.UploadType

    private void initUploadEditor(WikiUpload instance) {
        if (uploader != null && uploader.getUpload() != null) {
            uploadEditor = uploader.getUploadHandler().createEditor(uploader.getUpload());
        } else {
            UploadType uploadType = uploadTypes.get(instance.getContentType());
            if (uploadType == null) {
                getLog().debug("couldn't find upload handler for content type, using generic handler and editor");
                uploadType = uploadTypes.get(UploadTypes.GENERIC_UPLOAD_TYPE);
            }
            uploadEditor = uploadType.getUploadHandler().createEditor(instance);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.