Class WebViewServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.web.service.WebViewServiceImpl
-
- All Implemented Interfaces:
WebViewService
public class WebViewServiceImpl extends Object implements WebViewService
-
-
Constructor Summary
Constructors Constructor Description WebViewServiceImpl(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, WebMenuManager webMenuManager, WebContextFactory webContextFactory, MimeBodyPartRecorder mimeBodyPartRecorder, DataSourceFactory dataSourceFactory, Map<String,List<String>> webItemBlacklist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebView
forContent(@Nullable ContentId contentId, Map<String,Object> additionalContext)
Provides a new WebView.WebView
forContent(ContentId contentId)
Provides a new WebView.WebView
forContent(String contentId)
Provides a new WebView.WebView
forGeneric()
Provides a new generic WebView.WebView
forSpace(String spaceKey)
-
-
-
Constructor Detail
-
WebViewServiceImpl
public WebViewServiceImpl(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, WebMenuManager webMenuManager, WebContextFactory webContextFactory, MimeBodyPartRecorder mimeBodyPartRecorder, DataSourceFactory dataSourceFactory, Map<String,List<String>> webItemBlacklist)
-
-
Method Detail
-
forContent
public WebView forContent(String contentId)
Description copied from interface:WebViewService
Provides a new WebView. The contentId is used to enrich the underlying WebInterfaceContext depending on what type of content is provided.- Specified by:
forContent
in interfaceWebViewService
- Parameters:
contentId
- the id of the CEO or null for a generic WebView- Returns:
- the web view
-
forContent
public WebView forContent(ContentId contentId)
Description copied from interface:WebViewService
Provides a new WebView. The contentId is used to enrich the underlying WebInterfaceContext depending on what type of content is provided.- Specified by:
forContent
in interfaceWebViewService
- Parameters:
contentId
- the id of the CEO or null for a generic WebView- Returns:
-
forContent
public WebView forContent(@Nullable ContentId contentId, Map<String,Object> additionalContext)
Description copied from interface:WebViewService
Provides a new WebView. The contentId is used to enrich the underlying WebInterfaceContext depending on what type of content is provided.- Specified by:
forContent
in interfaceWebViewService
- Parameters:
contentId
- the id of the CEO or null for a generic WebViewadditionalContext
- additional context, which will also enrich the context passed to the resulting WebView if it contains parameters that reference content- Returns:
-
forGeneric
public WebView forGeneric()
Description copied from interface:WebViewService
Provides a new generic WebView. Suitable for fetching web items for parts of confluence that do not have a specific entity context.- Specified by:
forGeneric
in interfaceWebViewService
-
forSpace
public WebView forSpace(String spaceKey)
- Specified by:
forSpace
in interfaceWebViewService
-
-