1 package com.atlassian.refapp.webitem;
2
3 import com.atlassian.plugin.PluginAccessor;
4 import com.atlassian.plugin.web.DefaultWebInterfaceManager;
5 import com.atlassian.plugin.web.WebFragmentHelper;
6 import com.atlassian.plugin.web.WebInterfaceManager;
7 import com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor;
8 import com.atlassian.plugin.web.descriptors.WebPanelModuleDescriptor;
9 import com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor;
10 import com.atlassian.plugin.web.model.WebPanel;
11
12 import java.util.List;
13 import java.util.Map;
14
15
16
17
18 public class WebInterfaceManagerImpl implements WebInterfaceManager {
19 private final WebInterfaceManager webInterfaceManager;
20
21 public WebInterfaceManagerImpl(PluginAccessor pluginAccessor, WebFragmentHelper webFragmentHelper) {
22 webInterfaceManager = new DefaultWebInterfaceManager(pluginAccessor, webFragmentHelper);
23 }
24
25 public List<WebItemModuleDescriptor> getDisplayableItems(String section, Map<String, Object> context) {
26 return webInterfaceManager.getDisplayableItems(section, context);
27 }
28
29 public List<WebSectionModuleDescriptor> getDisplayableSections(String location, Map<String, Object> context) {
30 return webInterfaceManager.getDisplayableSections(location, context);
31 }
32
33 public List<WebItemModuleDescriptor> getItems(String section) {
34 return webInterfaceManager.getItems(section);
35 }
36
37 public List<WebSectionModuleDescriptor> getSections(String location) {
38 return webInterfaceManager.getSections(location);
39 }
40
41 public List<WebPanel> getDisplayableWebPanels(String s, Map<String, Object> stringObjectMap) {
42 return webInterfaceManager.getDisplayableWebPanels(s, stringObjectMap);
43 }
44
45 public List<WebPanel> getWebPanels(String s) {
46 return webInterfaceManager.getWebPanels(s);
47 }
48
49 public WebFragmentHelper getWebFragmentHelper() {
50 return webInterfaceManager.getWebFragmentHelper();
51 }
52
53 public boolean hasSectionsForLocation(String location) {
54 return webInterfaceManager.hasSectionsForLocation(location);
55 }
56
57 public List<WebPanelModuleDescriptor> getWebPanelDescriptors(String location) {
58 return webInterfaceManager.getWebPanelDescriptors(location);
59 }
60
61 public List<WebPanelModuleDescriptor> getDisplayableWebPanelDescriptors(String location, Map<String, Object> context) {
62 return webInterfaceManager.getDisplayableWebPanelDescriptors(location, context);
63 }
64
65 public void refresh() {
66 webInterfaceManager.refresh();
67 }
68 }