Hi Jakob,
Are you referring to Data Sources or Connections? A data source
contains the jar libraries while the connection contains the data
needed to connect to a specific MarkLogic AppServer. Assuming that
you have configured the MarkLogic related options once, what you
can do is share the Oxygen options file with all other users that
want the same level of access.
The options file is named something like oxyOptionsSa15.0.xml and
depending on the platform the options folder is located as
follows:
- Windows XP - [user-home-folder]\Application Data\com.oxygenxml
- Windows Vista/7 -
[user-home-folder]\AppData\Roaming\com.oxygenxml
- Mac OS X - [user-home-folder]/Library/Preferences/com.oxygenxml
- Mac OS X - ~/Library/Preferences/com.oxygenxml
- Linux - [user-home-folder]/.com.oxygenxml
One thing to bear in mind is that the passwords are encrypted so
they are not portable. All those that import the options file must
manually insert the passwords in the connections.
Since the options file is an XML file you could also take a look
and see how a MarkLogic data source and connection are saved and
write an XQuery or XSLT to automatic add the connections so that
you skip the manual insertion entirely.
Once you have an options file you can send them to all interested
and they can use Options->Import Global Options... Another
possible approach is to give them the options file as default
options:
http://oxygenxml.com/doc/ug-editor/#topics/default-options.html
I'm also thinking about a possible Wizard that will let you select
the AppServers for which you want to create connections. But I
don't think this Wizard will be able to create Data Sources since
the jars are not on the server (it would involve downloading them
from the MarkLogic site). Do you find this kind of wizard to be
useful and if yes do you have any suggestions about what
interaction we should offer in this wizard?
Best regards,
Alex
On 13-Nov-13 4:55 PM, Jakob Fix wrote:
Hi,
right now we're creating our MarkLogic data sources
manually, using the UI. Is there a way to create them by
modifying a configuration file, or an API to send setup
requests to?
We're having a quite a lot of these data sources, but
creating them by hand gets cumbersome. And we really like the
possibility to inspect the database's contents via WebDAV from
within OxygenXML.
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-user