public class WebFragmentResource extends Object
Web fragments include web items provided by plugins implementing the Web Item Module and Web Panels from plugins implementing the Web Panel Module
Constructor and Description |
---|
WebFragmentResource(WebViewService service) |
Modifier and Type | Method and Description |
---|---|
Iterable<WebItemView> |
items(String location,
String section,
String key,
ContentId contentId)
Fetch web items for the given section and location.
|
Iterable<WebPanelView> |
panels(SortedSet<String> locations,
ContentId contentId)
Fetch web panels for the given locations.
|
Iterable<WebPanelView> |
panels(String location,
List<String> locations,
ContentId contentId,
String key)
Fetch web panels for the given location.
|
Iterable<WebSectionView> |
sections(SortedSet locations,
String key,
ContentId contentId)
Fetch the websections at the given locations.
|
Iterable<WebSectionView> |
sections(String location,
List<String> locations,
String key,
ContentId contentId)
Fetch the websections at the given location.
|
public WebFragmentResource(WebViewService service)
public Iterable<WebSectionView> sections(String location, List<String> locations, String key, ContentId contentId)
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 contextpublic Iterable<WebSectionView> sections(SortedSet locations, String key, ContentId contentId)
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 contextpublic Iterable<WebItemView> items(String location, String section, String key, ContentId contentId)
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 contextpublic Iterable<WebPanelView> panels(SortedSet<String> locations, ContentId contentId)
locations
- the web locations to fetch web panels forcontentId
- the optional content id used in the current contextpublic Iterable<WebPanelView> panels(String location, List<String> locations, ContentId contentId, String key)
location
- the web location to fetch web panels forcontentId
- the optional content id used in the current contextCopyright © 2003–2020 Atlassian. All rights reserved.