Examples of createDocument()


Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.ObjectServicePort.createDocument()

        try {
            javax.xml.ws.Holder<String> objectId = new javax.xml.ws.Holder<String>();
            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);

            port.createDocument(repositoryId, convert(properties), folderId, convert(contentStream), convert(
                    EnumVersioningState.class, versioningState), policies, convert(addACEs), convert(removeACEs),
                    portExtension, objectId);

            setExtensionValues(portExtension, extension);
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.server.CmisService.createDocument()

        try {
            service = getService(wsContext, repositoryId);

            ExtensionsData extData = convertExtensionHolder(extension);

            String id = service.createDocument(repositoryId, convert(properties), folderId, convert(contentStream),
                    convert(VersioningState.class, versioningState), policies, convert(addAces, null),
                    convert(removeAces, null), extData);

            if (objectId != null) {
                objectId.value = id;
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.createDocument()

          DocumentVersion version = objectStore.createVersionedDocument(name,  propMap,
                user, folder, addACEs, removeACEs, contentStream, versioningState);
            version.persist();
            so = version; // return the version and not the version series to caller
        } else {
          Document doc = objectStore.createDocument(name, propMap, user, folder, addACEs, removeACEs);
          doc.setContent(contentStream, false);
            doc.persist();
            so = doc;
        }
View Full Code Here

Examples of org.apache.chemistry.opencmis.jcr.type.JcrDocumentTypeHandler.createDocument()

        }

        // get parent Node and create child
        JcrFolder parent = getJcrNode(session, folderId).asFolder();
        JcrDocumentTypeHandler typeHandler = typeHandlerManager.getDocumentTypeHandler(typeId);
        JcrNode jcrNode = typeHandler.createDocument(parent, name, properties, contentStream, versioningState);
        return jcrNode.getId();
    }

    /**
     * See CMIS 1.0 section 2.2.4.2 createDocumentFromSource
View Full Code Here

Examples of org.apache.excalibur.xml.dom.DOMParser.createDocument()

                            if (overwrite == true) {
                                if (parent.getNodeType() == Node.DOCUMENT_NODE) {
                                    // replacing of the document element is not allowed
                                    DOMParser parser = (DOMParser)this.manager.lookup(DOMParser.ROLE);
                                    try {
                                        resource = parser.createDocument();
                                    } finally {
                                        this.manager.release( (Component)parser );
                                    }

                                    resource.appendChild(resource.importNode(importNode, true));
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

                urlObj = ((SVGOMDocument)bridgeContext.getDocument()).
                    getURLObject();
            }
            String uri = (urlObj==null)?"":urlObj.toString();
            try {
                Document d = df.createDocument(uri, new StringReader(text));
                if (doc == null)
                    return d;

                Node result = doc.createDocumentFragment();
                result.appendChild(doc.importNode(d.getDocumentElement(),
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.svg.SVGDOMImplementation.createDocument()

* @author <a href="mailto:vincent.hardy@sun.com">Vincent Hardy</a>
*/
public class DOMUtilitiesCharacterEscaping extends AbstractTest {
    public TestReport runImpl() throws Exception {
        DOMImplementation impl = new SVGDOMImplementation();
        Document doc = impl.createDocument(SVGConstants.SVG_NAMESPACE_URI,
                                           "svg", null);

        Element svg = doc.getDocumentElement();
        Element text = doc.createElementNS(SVGConstants.SVG_NAMESPACE_URI,
                                           "text");
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.util.DocumentFactory.createDocument()

            BufferedReader r;
            r = new BufferedReader(new InputStreamReader(is, PREFERENCE_ENCODING));
            DocumentFactory df = new SAXDocumentFactory
                (GenericDOMImplementation.getDOMImplementation(),
                 xmlParserClassName);
            Document doc = df.createDocument("http://xml.apache.org/batik/preferences",
                                             "preferences",
                                             null,
                                             r);
            Element elt = doc.getDocumentElement();
            for (Node n = elt.getFirstChild(); n != null; n = n.getNextSibling()) {
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.util.SAXDocumentFactory.createDocument()

                sdf = new SAXDocumentFactory
                    (new GenericDOMImplementation(),
                     XMLResourceDescriptor.getXMLParserClassName());
            }
            try {
                Document d = sdf.createDocument(uri, new StringReader(text));
                if (doc == null)
                    return d;

                Node result = doc.createDocumentFragment();
                result.appendChild(doc.importNode(d.getDocumentElement(),
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.DirectoryEntry.createDocument()

  }

  public void testSingleEmptyDocument() throws IOException {
    POIFSFileSystem fs = new POIFSFileSystem();
    DirectoryEntry dir = fs.getRoot();
    dir.createDocument("Foo", new ByteArrayInputStream(new byte[] { }));
   
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    fs.writeFilesystem(out);
    new POIFSFileSystem(new ByteArrayInputStream(out.toByteArray()));
  }
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.