@Role
public interface XWikiContextInitializer
XWikiContext
with various properties.Modifier and Type | Method and Description |
---|---|
XWikiContextInitializer |
authenticate()
Indicate that the current user should be authenticated.
|
XWikiContextInitializer |
fallbackOnStub()
Fallback on a stub XWikiContext if there is any issue.
|
XWikiContext |
initialize(org.xwiki.context.ExecutionContext econtext) |
XWikiContextInitializer authenticate()
XWikiContextInitializer fallbackOnStub()
XWikiContext initialize(org.xwiki.context.ExecutionContext econtext) throws XWikiException
econtext
- the ExecutionContext
to inject the XWikiContext
in, or nullXWikiContext
XWikiException
- when failing to initialize the XWiki contextCopyright © 2004–2021 XWiki. All rights reserved.