Examples of BlobHolder


Examples of org.nuxeo.ecm.core.api.blobholder.BlobHolder

    /**
     * Returns the main blob for the given {@code doc}, {@code null} if there is
     * no main file available.
     */
    public Blob getAttachment(DocumentModel doc) throws ClientException {
        BlobHolder bh = doc.getAdapter(BlobHolder.class);
        return bh != null ? bh.getBlob() : null;
    }
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.