<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jakob,<br>
<br>
Please see my answers below.<br>
<br>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
On 21-Nov-13 3:34 PM, Jakob Fix wrote:<br>
</div>
<blockquote
cite="mid:CACmjRh8EdEE5XMpWXjQ=tEffcm0-XSYtXL0u8XypsOU3=e8A-Q@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Alex,
<div><br>
</div>
<div>thank you for your reply. You are right, I was talking
about the connections, not the data sources.</div>
<div>Also, I didn't think about the passwords, hmmm. </div>
<div><br>
</div>
<div>I was actually thinking of generating the fragment for the
options file using XSLT as you suggested; using xmltask in ant
we could probably even insert or update it automatically. But
how do I encrypt the password though? It seems to be a
sequence of integers, separated by semicolons and dots...</div>
</div>
</blockquote>
We encode the password dependent on the local machine so a password
encrypted on your machine will not be decrypted on another machine.
So you must leave the password field empty and the user will have to
edit them and input the password.<br>
<br>
Another solution that comes to mind is to implement an
WorkspaceAccess plugin extension. When the plugin starts it can
overwrite the connections settings of the user (the Java API offers
this option). With a little more work you could read the XML options
file and merge the connections. For passwords you can present a
dialog to the user. The plugin can be packed as an add-on so it will
be very easy for the user to install it. If you want to go on this
path I can offer more insight.<br>
<br>
It might involved more work then just using XSLT but might be easier
for the user use it. Your call...<br>
<blockquote
cite="mid:CACmjRh8EdEE5XMpWXjQ=tEffcm0-XSYtXL0u8XypsOU3=e8A-Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Another question would be: when updating the options file
would it be a good thing that Oxygen is not running, because
it might be saving its in-memory options on shutting down?</div>
</div>
</blockquote>
I think you are correct. Oxygen shouldn't be running when it's
options are being altered.<br>
<blockquote
cite="mid:CACmjRh8EdEE5XMpWXjQ=tEffcm0-XSYtXL0u8XypsOU3=e8A-Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>cheers,<br>
Jakob.</div>
<br>
<br>
<div class="gmail_quote">On Thu, Nov 14, 2013 at 10:04 AM, Alex
Jitianu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:alex_jitianu@sync.ro" target="_blank">alex_jitianu@sync.ro</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Jakob,<br>
<br>
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. <br>
<br>
The options file is named something like
oxyOptionsSa15.0.xml and depending on the platform the
options folder is located as follows: <br>
- Windows XP - [user-home-folder]\Application
Data\com.oxygenxml <br>
- Windows Vista/7 -
[user-home-folder]\AppData\Roaming\com.oxygenxml <br>
- Mac OS X -
[user-home-folder]/Library/Preferences/com.oxygenxml <br>
- Mac OS X - ~/Library/Preferences/com.oxygenxml <br>
- Linux - [user-home-folder]/.com.oxygenxml <br>
<br>
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.<br>
<br>
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. <br>
<br>
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: <a
moz-do-not-send="true"
href="http://oxygenxml.com/doc/ug-editor/#topics/default-options.html"
target="_blank">http://oxygenxml.com/doc/ug-editor/#topics/default-options.html</a><br>
<br>
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?<br>
<br>
Best regards,<br>
Alex
<div>
<div class="h5"><br>
<br>
On 13-Nov-13 4:55 PM, Jakob Fix wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi,
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>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.</div>
<div><br clear="all">
<div>cheers,<br>
Jakob.</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
oXygen-user mailing list
<a moz-do-not-send="true" href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>
<a moz-do-not-send="true" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>