001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class PortletLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.Portlet addPortlet(
048 com.liferay.portal.model.Portlet portlet)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addPortlet(portlet);
051 }
052
053
059 public static com.liferay.portal.model.Portlet createPortlet(long id) {
060 return getService().createPortlet(id);
061 }
062
063
071 public static com.liferay.portal.model.Portlet deletePortlet(long id)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService().deletePortlet(id);
075 }
076
077
084 public static com.liferay.portal.model.Portlet deletePortlet(
085 com.liferay.portal.model.Portlet portlet)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 return getService().deletePortlet(portlet);
088 }
089
090 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091 return getService().dynamicQuery();
092 }
093
094
101 @SuppressWarnings("rawtypes")
102 public static java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().dynamicQuery(dynamicQuery);
106 }
107
108
121 @SuppressWarnings("rawtypes")
122 public static java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException {
125 return getService().dynamicQuery(dynamicQuery, start, end);
126 }
127
128
142 @SuppressWarnings("rawtypes")
143 public static java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService()
149 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
150 }
151
152
159 public static long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getService().dynamicQueryCount(dynamicQuery);
163 }
164
165 public static com.liferay.portal.model.Portlet fetchPortlet(long id)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().fetchPortlet(id);
168 }
169
170
178 public static com.liferay.portal.model.Portlet getPortlet(long id)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getPortlet(id);
182 }
183
184 public static com.liferay.portal.model.PersistedModel getPersistedModel(
185 java.io.Serializable primaryKeyObj)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPersistedModel(primaryKeyObj);
189 }
190
191
203 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getPortlets(start, end);
207 }
208
209
215 public static int getPortletsCount()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getPortletsCount();
218 }
219
220
227 public static com.liferay.portal.model.Portlet updatePortlet(
228 com.liferay.portal.model.Portlet portlet)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().updatePortlet(portlet);
231 }
232
233
238 public static java.lang.String getBeanIdentifier() {
239 return getService().getBeanIdentifier();
240 }
241
242
247 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
248 getService().setBeanIdentifier(beanIdentifier);
249 }
250
251 public static void addPortletCategory(long companyId,
252 java.lang.String categoryName) {
253 getService().addPortletCategory(companyId, categoryName);
254 }
255
256 public static void checkPortlet(com.liferay.portal.model.Portlet portlet)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException {
259 getService().checkPortlet(portlet);
260 }
261
262 public static void checkPortlets(long companyId)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException {
265 getService().checkPortlets(companyId);
266 }
267
268 public static void clearCache() {
269 getService().clearCache();
270 }
271
272 public static void clearCompanyPortletsPool() {
273 getService().clearCompanyPortletsPool();
274 }
275
276
279 public static com.liferay.portal.model.Portlet clonePortlet(
280 long companyId, java.lang.String portletId) {
281 return getService().clonePortlet(companyId, portletId);
282 }
283
284 public static com.liferay.portal.model.Portlet clonePortlet(
285 java.lang.String portletId) {
286 return getService().clonePortlet(portletId);
287 }
288
289 public static void deletePortlet(long companyId,
290 java.lang.String portletId, long plid)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException {
293 getService().deletePortlet(companyId, portletId, plid);
294 }
295
296 public static void deletePortlets(long companyId,
297 java.lang.String[] portletIds, long plid)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException {
300 getService().deletePortlets(companyId, portletIds, plid);
301 }
302
303 public static com.liferay.portal.model.Portlet deployRemotePortlet(
304 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService().deployRemotePortlet(portlet, categoryName);
308 }
309
310 public static com.liferay.portal.model.Portlet deployRemotePortlet(
311 com.liferay.portal.model.Portlet portlet,
312 java.lang.String[] categoryNames)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 return getService().deployRemotePortlet(portlet, categoryNames);
316 }
317
318 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
319 getService().destroyPortlet(portlet);
320 }
321
322 public static void destroyRemotePortlet(
323 com.liferay.portal.model.Portlet portlet) {
324 getService().destroyRemotePortlet(portlet);
325 }
326
327 public static java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
328 return getService().getCustomAttributesDisplays();
329 }
330
331 public static com.liferay.portal.model.PortletCategory getEARDisplay(
332 java.lang.String xml)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().getEARDisplay(xml);
335 }
336
337 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
338 return getService().getFriendlyURLMapperPortlets();
339 }
340
341 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
342 return getService().getFriendlyURLMappers();
343 }
344
345 public static com.liferay.portal.model.PortletApp getPortletApp(
346 java.lang.String servletContextName) {
347 return getService().getPortletApp(servletContextName);
348 }
349
350 public static com.liferay.portal.model.Portlet getPortletById(
351 long companyId, java.lang.String portletId)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return getService().getPortletById(companyId, portletId);
354 }
355
356 public static com.liferay.portal.model.Portlet getPortletById(
357 java.lang.String portletId) {
358 return getService().getPortletById(portletId);
359 }
360
361 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
362 long companyId, java.lang.String strutsPath)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getService().getPortletByStrutsPath(companyId, strutsPath);
365 }
366
367 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
368 return getService().getPortlets();
369 }
370
371 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
372 long companyId)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService().getPortlets(companyId);
375 }
376
377 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
378 long companyId, boolean showSystem, boolean showPortal)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService().getPortlets(companyId, showSystem, showPortal);
381 }
382
383 public static java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets() {
384 return getService().getScopablePortlets();
385 }
386
387 public static com.liferay.portal.model.PortletCategory getWARDisplay(
388 java.lang.String servletContextName, java.lang.String xml)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 return getService().getWARDisplay(servletContextName, xml);
391 }
392
393 public static boolean hasPortlet(long companyId, java.lang.String portletId)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getService().hasPortlet(companyId, portletId);
396 }
397
398 public static void initEAR(javax.servlet.ServletContext servletContext,
399 java.lang.String[] xmls,
400 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
401 getService().initEAR(servletContext, xmls, pluginPackage);
402 }
403
404 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
405 java.lang.String servletContextName,
406 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
407 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
408 return getService()
409 .initWAR(servletContextName, servletContext, xmls,
410 pluginPackage);
411 }
412
413 public static java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
414 long companyId)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getService().loadGetPortletsPool(companyId);
417 }
418
419 public static void removeCompanyPortletsPool(long companyId) {
420 getService().removeCompanyPortletsPool(companyId);
421 }
422
423 public static com.liferay.portal.model.Portlet updatePortlet(
424 long companyId, java.lang.String portletId, java.lang.String roles,
425 boolean active)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getService().updatePortlet(companyId, portletId, roles, active);
428 }
429
430 public static PortletLocalService getService() {
431 if (_service == null) {
432 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
433
434 ReferenceRegistry.registerReference(PortletLocalServiceUtil.class,
435 "_service");
436 }
437
438 return _service;
439 }
440
441
444 public void setService(PortletLocalService service) {
445 }
446
447 private static PortletLocalService _service;
448 }