What is the best way to manage profiling attribute, global options, custom options ?
Posted: Fri Mar 18, 2016 4:20 pm
Hi,
I develop a CMS Plugin for Oxygen Author, to work with DITA filesa and a CMS.
When my custom plugin is started, I must use custom options like user 'login', 'password', etc... to connect user to the CMS.
This informations is actualy managed by pluginWorkspace.getOptionsStorage().setOption(KEY_LOGIN, userLogin
But can be managed by a specific project file (*c.xpr) too ?
I must too, set some Oxygen global options, actualy manage by this way:
But can be managed by a specific project file (*.xpr) ?
Also, I want to use custom profiling attributes (This list can be updated by CMS). And I want to know what is the best way to manage this point ?
I think the project file is the best way, but need to restart Oxygen author to get the updated project file (with updated profiling attributes).
Do you think I have an other solution to manage custom profiling attributes ?
Thanks in advance for your help.
Sébastien.L
I develop a CMS Plugin for Oxygen Author, to work with DITA filesa and a CMS.
When my custom plugin is started, I must use custom options like user 'login', 'password', etc... to connect user to the CMS.
This informations is actualy managed by pluginWorkspace.getOptionsStorage().setOption(KEY_LOGIN, userLogin
But can be managed by a specific project file (*c.xpr) too ?
I must too, set some Oxygen global options, actualy manage by this way:
Code: Select all
// Can't edit read only files.
PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty(OptionTags.CAN_EDIT_READ_ONLY_FILES, Boolean.FALSE);
// Set display without tags.
PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty(OptionTags.TAGS_DISPLAY_MODE, 1);
// Force to open DITA Map in DITA Maps Manager.
PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty(OptionTags.ASK_OPEN_DITA_MAP_IN_DITAMANAGER, 0);
// Force track changes by default.
PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty(OptionTags.TRACK_CHANGES_INITIAL_STATE, 1);
Also, I want to use custom profiling attributes (This list can be updated by CMS). And I want to know what is the best way to manage this point ?
I think the project file is the best way, but need to restart Oxygen author to get the updated project file (with updated profiling attributes).
Do you think I have an other solution to manage custom profiling attributes ?
Thanks in advance for your help.
Sébastien.L