Tabnine Logo
Exporter.export
Code IndexAdd Tabnine to your IDE (free)

How to use
export
method
in
org.apache.jackrabbit.commons.xml.Exporter

Best Java code snippets using org.apache.jackrabbit.commons.xml.Exporter.export (Showing top 12 results out of 315)

origin: stackoverflow.com

 String tableId = (String) target.getValue(elContext);

Exporter exporter = ExporterFactory.getExporterForType(exportAs);

UIComponent component = event.getComponent().findComponent(tableId);

if(component == null) {
  throw new FacesException("Cannot find component \"" + tableId + "\" in view.");
}

if(!(component instanceof DataTable)) {
  throw new FacesException("Unsupported datasource target:\"" + component.getClass().getName() + "\", exporter must target a PrimeFaces DataTable.");
}

DataTable table = (DataTable) component;
exporter.export(context, table, outputFileName, isPageOnly, isSelectionOnly, encodingType, preProcessor, postProcessor);
origin: info.magnolia/magnolia-core

private void export(String path, Exporter exporter) throws PathNotFoundException, SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException("XML export is not defined for properties: " + path);
  }
}
origin: org.apache.jackrabbit/oak-jcr

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path     of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException        if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException("XML export is not defined for properties: " + path);
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path     of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException        if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException("XML export is not defined for properties: " + path);
  }
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws PathNotFoundException, SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException(
        "XML export is not defined for properties: " + path);
  }
}
origin: apache/jackrabbit-oak

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path     of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException        if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException("XML export is not defined for properties: " + path);
  }
}
origin: apache/jackrabbit

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws PathNotFoundException, SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException(
        "XML export is not defined for properties: " + path);
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Exports content at the given path using the given exporter.
 *
 * @param path of the node to be exported
 * @param exporter document or system view exporter
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
private synchronized void export(String path, Exporter exporter)
    throws PathNotFoundException, SAXException, RepositoryException {
  Item item = getItem(path);
  if (item.isNode()) {
    exporter.export((Node) item);
  } else {
    throw new PathNotFoundException(
        "XML export is not defined for properties: " + path);
  }
}
origin: org.onehippo.jcr.console/hippo-jcr-console-api

  exporter.export((Node) item);
} else {
  throw new PathNotFoundException("XML export is not defined for properties: " + absPath);
origin: org.onehippo.jcr.console/hippo-jcr-console-api

  exporter.export((Node) item);
} else {
  throw new PathNotFoundException("XML export is not defined for properties: " + absPath);
origin: info.magnolia/magnolia-core

  @Test
  public void onlyGivenNamespacesAreWhitelisted() throws Exception {
    // GIVEN an arbitrary ContentHandler …
    JDOMResult jdomResult = new JDOMResult();
    ContentHandler contentHandler = jdomResult.getHandler();

    // … wrapped with the NamespaceFilter
    NamespaceFilter filter = new NamespaceFilter("yes");
    filter.setContentHandler(contentHandler);

    Exporter exporter = new SystemViewExporter(session, filter, true, false);

    XMLOutputter outputter = new XMLOutputter();
    StringWriter writer = new StringWriter();

    // WHEN
    exporter.export(session.getNode("/foo"));
    outputter.output(jdomResult.getDocument(), writer);

    // THEN
    String export = writer.toString();
    assertThat(export, containsString("xmlns:yes=\"urn:yes:1.0\""));
    assertThat(export, not(containsString("xmlns:no=\"urn:no:1.0\"")));
  }
}
origin: info.magnolia/magnolia-core

final Node node = contentDecorator.wrapNode(getJCRNode(context));
exporter.export(node);
try {
  xmlOutputter.output(jdomResult.getDocument(), compressionOutputStream);
org.apache.jackrabbit.commons.xmlExporterexport

Javadoc

Exports the given node by preparing the export and calling the abstract #exportNode(String,String,Node) method to give control of the export format to a subclass.

This method should be called only once for an exporter instance.

Popular methods of Exporter

  • addNamespace
    Adds the given namespace to the export. A unique prefix based on the given prefix hint is mapped to
  • exportNode
    Utility method for exporting the given node. Parses the node name (or jcr:root if given the root no
  • exportProperty
    Utility method for processing the named property from the given map of properties. If the property e
  • getPrefix
    Returns the namespace prefix mapped to the given URI. Returnsnull if the namespace URI is not regist
  • getProperties
    Returns a sorted map of the properties of the given node.
  • getUniquePrefix
    Returns a unique namespace prefix based on the given hint. We need prefixes to be unique within the
  • getXMLName
    Returns a prefixed XML name for the given namespace URI and local name. If a prefix mapping for the
  • prefixExists
    Checks whether the given prefix is already mapped within the current namespace stack.

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JComboBox (javax.swing)
  • JPanel (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now