Class WebFragmentResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.experimental.resources.WebFragmentResource
-
public class WebFragmentResource extends Object
Rest wrapper for the WebViewService. This REST API returns web fragments used to compose the UI of confluence.Web fragments include web items provided by plugins implementing the Web Item Module and Web Panels from plugins implementing the Web Panel Module
-
-
Constructor Summary
Constructors Constructor Description WebFragmentResource(WebViewService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<WebItemView>
items(String location, String section, String key, ContentId contentId)
Fetch web items for the given section and location.Iterable<WebPanelView>
panels(String location, List<String> locations, ContentId contentId, String key)
Fetch web panels for the given location.Iterable<WebPanelView>
panels(SortedSet<String> locations, ContentId contentId)
Fetch web panels for the given locations.Iterable<WebSectionView>
sections(String location, List<String> locations, String key, ContentId contentId)
Fetch the websections at the given location.Iterable<WebSectionView>
sections(SortedSet locations, String key, ContentId contentId)
Fetch the websections at the given locations.
-
-
-
Constructor Detail
-
WebFragmentResource
public WebFragmentResource(WebViewService service)
-
-
Method Detail
-
sections
public Iterable<WebSectionView> sections(String location, List<String> locations, String key, ContentId contentId)
Fetch the websections at the given location. Web sections contain webitems, and provide a way to separate sections of a menu. Confluence defines a number of sections and locations in the UI that can have additional web items, these locations are surfaced by this resource.- Parameters:
location
- the web location to fetch web items forkey
- the optional space key of the current context,contentId
- the optional content id used in the current context- Returns:
- the list of webitems for the location
-
sections
public Iterable<WebSectionView> sections(SortedSet locations, String key, ContentId contentId)
Fetch the websections at the given locations. Web sections contain webitems, and provide a way to separate sections of a menu. Confluence defines a number of sections and locations in the UI that can have additional web items, these locations are surfaced by this resource.- Parameters:
locations
- the web locations to fetch web items forkey
- the optional space key of the current context,contentId
- the optional content id used in the current context- Returns:
- the list of webitems for the location
-
items
public Iterable<WebItemView> items(String location, String section, String key, ContentId contentId)
Fetch web items for the given section and location. Web items are used to render buttons and menu links in confluence. Confluence defines a number of sections and locations in the UI that can have additional web items, these locations and sections are surfaced by this resource.- Parameters:
location
- the web location to fetch web items forsection
- the specific section within a location to fetch web items forkey
- the optional space key of the current context,contentId
- the optional content id used in the current context- Returns:
- the list of webitems for the location
-
panels
public Iterable<WebPanelView> panels(SortedSet<String> locations, ContentId contentId)
Fetch web panels for the given locations. Web panels are used to render content at various pre-defined locations in confluence. Confluence defines a number of locations in the UI that can have additional content, these locations are surfaced by this resource.- Parameters:
locations
- the web locations to fetch web panels forcontentId
- the optional content id used in the current context- Returns:
- the list of web panels for the location
-
panels
public Iterable<WebPanelView> panels(String location, List<String> locations, ContentId contentId, String key)
Fetch web panels for the given location. Web panels are used to render content at various pre-defined locations in confluence. Confluence defines a number of locations in the UI that can have additional content, these locations are surfaced by this resource.- Parameters:
location
- the web location to fetch web panels forcontentId
- the optional content id used in the current context- Returns:
- the list of web panels for the location
-
-