1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class PortletLocalServiceUtil {
40 public static com.liferay.portal.model.Portlet addPortlet(
41 com.liferay.portal.model.Portlet portlet)
42 throws com.liferay.portal.SystemException {
43 return getService().addPortlet(portlet);
44 }
45
46 public static com.liferay.portal.model.Portlet createPortlet(long id) {
47 return getService().createPortlet(id);
48 }
49
50 public static void deletePortlet(long id)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 getService().deletePortlet(id);
54 }
55
56 public static void deletePortlet(com.liferay.portal.model.Portlet portlet)
57 throws com.liferay.portal.SystemException {
58 getService().deletePortlet(portlet);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException {
70 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static com.liferay.portal.model.Portlet getPortlet(long id)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException {
76 return getService().getPortlet(id);
77 }
78
79 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
80 int start, int end) throws com.liferay.portal.SystemException {
81 return getService().getPortlets(start, end);
82 }
83
84 public static int getPortletsCount()
85 throws com.liferay.portal.SystemException {
86 return getService().getPortletsCount();
87 }
88
89 public static com.liferay.portal.model.Portlet updatePortlet(
90 com.liferay.portal.model.Portlet portlet)
91 throws com.liferay.portal.SystemException {
92 return getService().updatePortlet(portlet);
93 }
94
95 public static com.liferay.portal.model.Portlet updatePortlet(
96 com.liferay.portal.model.Portlet portlet, boolean merge)
97 throws com.liferay.portal.SystemException {
98 return getService().updatePortlet(portlet, merge);
99 }
100
101 public static com.liferay.portal.model.Portlet deployRemotePortlet(
102 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
103 throws com.liferay.portal.SystemException {
104 return getService().deployRemotePortlet(portlet, categoryName);
105 }
106
107 public static void destroyRemotePortlet(
108 com.liferay.portal.model.Portlet portlet) {
109 getService().destroyRemotePortlet(portlet);
110 }
111
112 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
113 getService().destroyPortlet(portlet);
114 }
115
116 public static com.liferay.portal.model.PortletCategory getEARDisplay(
117 java.lang.String xml) throws com.liferay.portal.SystemException {
118 return getService().getEARDisplay(xml);
119 }
120
121 public static com.liferay.portal.model.PortletApp getPortletApp(
122 java.lang.String servletContextName) {
123 return getService().getPortletApp(servletContextName);
124 }
125
126 public static com.liferay.portal.model.PortletCategory getWARDisplay(
127 java.lang.String servletContextName, java.lang.String xml)
128 throws com.liferay.portal.SystemException {
129 return getService().getWARDisplay(servletContextName, xml);
130 }
131
132 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
133 return getService().getFriendlyURLMapperPortlets();
134 }
135
136 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
137 return getService().getFriendlyURLMappers();
138 }
139
140 public static com.liferay.portal.model.Portlet getPortletById(
141 java.lang.String portletId) {
142 return getService().getPortletById(portletId);
143 }
144
145 public static com.liferay.portal.model.Portlet getPortletById(
146 long companyId, java.lang.String portletId)
147 throws com.liferay.portal.SystemException {
148 return getService().getPortletById(companyId, portletId);
149 }
150
151 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
152 long companyId, java.lang.String strutsPath)
153 throws com.liferay.portal.SystemException {
154 return getService().getPortletByStrutsPath(companyId, strutsPath);
155 }
156
157 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
158 return getService().getPortlets();
159 }
160
161 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
162 long companyId) throws com.liferay.portal.SystemException {
163 return getService().getPortlets(companyId);
164 }
165
166 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
167 long companyId, boolean showSystem, boolean showPortal)
168 throws com.liferay.portal.SystemException {
169 return getService().getPortlets(companyId, showSystem, showPortal);
170 }
171
172 public static boolean hasPortlet(long companyId, java.lang.String portletId)
173 throws com.liferay.portal.SystemException {
174 return getService().hasPortlet(companyId, portletId);
175 }
176
177 public static void initEAR(javax.servlet.ServletContext servletContext,
178 java.lang.String[] xmls,
179 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
180 getService().initEAR(servletContext, xmls, pluginPackage);
181 }
182
183 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
184 java.lang.String servletContextName,
185 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
186 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
187 return getService()
188 .initWAR(servletContextName, servletContext, xmls,
189 pluginPackage);
190 }
191
192 public static com.liferay.portal.model.Portlet newPortlet(long companyId,
193 java.lang.String portletId) {
194 return getService().newPortlet(companyId, portletId);
195 }
196
197 public static com.liferay.portal.model.Portlet updatePortlet(
198 long companyId, java.lang.String portletId, java.lang.String roles,
199 boolean active) throws com.liferay.portal.SystemException {
200 return getService().updatePortlet(companyId, portletId, roles, active);
201 }
202
203 public static PortletLocalService getService() {
204 if (_service == null) {
205 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
206 }
207
208 return _service;
209 }
210
211 public void setService(PortletLocalService service) {
212 _service = service;
213 }
214
215 private static PortletLocalService _service;
216 }