Class AuthorDocumentModelContextManager
- java.lang.Object
-
- ro.sync.ecss.extensions.api.webapp.AuthorDocumentModelContextManager
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class AuthorDocumentModelContextManager extends java.lang.Object
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 Constructor Description AuthorDocumentModelContextManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
installContext
public static void installContext(AuthorDocumentModel documentModel)
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
public static void uninstallContext(AuthorDocumentModel documentModel)
Sets the specified document model as not being edited anymore on the current thread.- Parameters:
documentModel
- The document model.
-
-