Hi mathias,

Mathias Bauer wrote:

Unfortunately there is no API to control the finalized attribute (and
some other similar node attributes), so you have to do this by editing
the configuration file directly.


I wouldn't call this unfortunate. Without an API you can make *sure*
that the value is not changed by a macro, Add-On or something else. IMHO
this is important to make the "finalizing" feature useable.


It is stored in a file and a macro, etc. could simply manipulate the relevant file and then force a reload of the configuration. It gets just more tedious. But that is unfortunate as it also disallows building administration tools upon our UNO services. Instead such tools have to manipulate the XML directly which is more prone to producing files our services can't read.

*If* we had such an API we would at least need an access control to it
(or an API that is disabled inside OOo and is only accessible if the
configuration service is used in another environment that supports some
authentication etc.).


It is the same as for the shared default values themselves. Currently we don't have explicit access controls for them. Instead we rely on the backend to limit access. E.g. for the standard file-based configuration backend the file system access controls apply. The result is automatically consistent with control (or lack thereof) of direct access to the files.

On file systems that support this we install shared files with access rights that prohibit ordinary users from manipulating them. That would also prevent these users from removing finalization.

Users that do have sufficient access to the backend can use the ConfigurationAdministrationProvider to change the default values - even finalized ones. But they can't remove (or add) the finalized state itself. To me that is an unfortunate inconsistency. unfortunate.

Ciao, Jörg

--
Joerg Barfurth              Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer                         [EMAIL PROTECTED]
OpenOffice.org Configuration          http://util.openoffice.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to