Class AuthorDocumentModelContextManager
java.lang.Object
ro.sync.ecss.extensions.api.webapp.AuthorDocumentModelContextManager
A helper class that handles the current editing context.
In Oxygen there are many 'per editing session' (e.g. the DITA map) or
'per user' options (e.g. the reviewer name). This manager installs the
context which contains the values of these options for the currently edited
document on the current thread.
- Since:
- 16.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
installContext
(AuthorDocumentModel documentModel) Sets the specified document model as being edited on the current thread.static void
uninstallContext
(AuthorDocumentModel documentModel) Sets the specified document model as not being edited anymore on the current thread.
-
Constructor Details
-
AuthorDocumentModelContextManager
public AuthorDocumentModelContextManager()
-
-
Method Details
-
installContext
Sets the specified document model as being edited on the current thread.- Parameters:
documentModel
- The document model to set as being edited on the current thread.
-
uninstallContext
Sets the specified document model as not being edited anymore on the current thread.- Parameters:
documentModel
- The document model.
-