Adding Support to Insert References from a WebDAV Repository

Predefined actions that insert references, such as the Insert Image action, display a URL chooser that allows you to select the Browse Data Source Explorer action. To use an already configured WebDAV connection in the Author Component, follow these steps:

  1. Open a standalone Oxygen XML Editor 17.1 and configure a WebDAV connection.
  2. Pack the fixed set of options from the standalone to use them with the Author Component project.
  3. In the Author Component, the defined connection still does not work when expanded because the additional JAR libraries used to browse the WebDAV repository are missing. By default, the httpclient dependency of the oXygen SDK artifact is excluded. You can enable it by commenting the following lines:
    <exclusion>
        <artifactId>httpclient</artifactId>
        <groupId>org.apache.httpcomponents</groupId>
    </exclusion> 
    If you want to have a different WebDAV connection URL, user name and password depending on the user who has started the component, you have a more flexible approach using the API:
    //DBConnectionInfo(String id, String driverName, String url, String user, String passwd, String host, String port) 
    DBConnectionInfo info = new DBConnectionInfo("WEBDAV", "WebDAV FTP", "http://host/webdav-user-root", "userName", "password", null, null);
    AuthorComponentFactory.getInstance().setObjectProperty("database.stored.sessions1", new DBConnectionInfo[] {info});