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
034 public class PortletLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.Portlet addPortlet(
049 com.liferay.portal.model.Portlet portlet)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addPortlet(portlet);
052 }
053
054
060 public static com.liferay.portal.model.Portlet createPortlet(long id) {
061 return getService().createPortlet(id);
062 }
063
064
072 public static com.liferay.portal.model.Portlet deletePortlet(long id)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService().deletePortlet(id);
076 }
077
078
085 public static com.liferay.portal.model.Portlet deletePortlet(
086 com.liferay.portal.model.Portlet portlet)
087 throws com.liferay.portal.kernel.exception.SystemException {
088 return getService().deletePortlet(portlet);
089 }
090
091 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092 return getService().dynamicQuery();
093 }
094
095
102 @SuppressWarnings("rawtypes")
103 public static java.util.List dynamicQuery(
104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105 throws com.liferay.portal.kernel.exception.SystemException {
106 return getService().dynamicQuery(dynamicQuery);
107 }
108
109
122 @SuppressWarnings("rawtypes")
123 public static java.util.List dynamicQuery(
124 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125 int end) throws com.liferay.portal.kernel.exception.SystemException {
126 return getService().dynamicQuery(dynamicQuery, start, end);
127 }
128
129
143 @SuppressWarnings("rawtypes")
144 public static java.util.List dynamicQuery(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146 int end,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getService()
150 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
151 }
152
153
160 public static long dynamicQueryCount(
161 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().dynamicQueryCount(dynamicQuery);
164 }
165
166
174 public static long dynamicQueryCount(
175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
176 com.liferay.portal.kernel.dao.orm.Projection projection)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getService().dynamicQueryCount(dynamicQuery, projection);
179 }
180
181 public static com.liferay.portal.model.Portlet fetchPortlet(long id)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().fetchPortlet(id);
184 }
185
186
194 public static com.liferay.portal.model.Portlet getPortlet(long id)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getService().getPortlet(id);
198 }
199
200 public static com.liferay.portal.model.PersistedModel getPersistedModel(
201 java.io.Serializable primaryKeyObj)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getPersistedModel(primaryKeyObj);
205 }
206
207
219 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
220 int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().getPortlets(start, end);
223 }
224
225
231 public static int getPortletsCount()
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().getPortletsCount();
234 }
235
236
243 public static com.liferay.portal.model.Portlet updatePortlet(
244 com.liferay.portal.model.Portlet portlet)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getService().updatePortlet(portlet);
247 }
248
249
254 public static java.lang.String getBeanIdentifier() {
255 return getService().getBeanIdentifier();
256 }
257
258
263 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
264 getService().setBeanIdentifier(beanIdentifier);
265 }
266
267 public static void addPortletCategory(long companyId,
268 java.lang.String categoryName) {
269 getService().addPortletCategory(companyId, categoryName);
270 }
271
272 public static void checkPortlet(com.liferay.portal.model.Portlet portlet)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 getService().checkPortlet(portlet);
276 }
277
278 public static void checkPortlets(long companyId)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 getService().checkPortlets(companyId);
282 }
283
284 public static void clearCache() {
285 getService().clearCache();
286 }
287
288 public static void clearCompanyPortletsPool() {
289 getService().clearCompanyPortletsPool();
290 }
291
292
295 public static com.liferay.portal.model.Portlet clonePortlet(
296 long companyId, java.lang.String portletId) {
297 return getService().clonePortlet(companyId, portletId);
298 }
299
300 public static com.liferay.portal.model.Portlet clonePortlet(
301 java.lang.String portletId) {
302 return getService().clonePortlet(portletId);
303 }
304
305 public static void deletePortlet(long companyId,
306 java.lang.String portletId, long plid)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().deletePortlet(companyId, portletId, plid);
310 }
311
312 public static void deletePortlets(long companyId,
313 java.lang.String[] portletIds, long plid)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException {
316 getService().deletePortlets(companyId, portletIds, plid);
317 }
318
319 public static com.liferay.portal.model.Portlet deployRemotePortlet(
320 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getService().deployRemotePortlet(portlet, categoryName);
324 }
325
326 public static com.liferay.portal.model.Portlet deployRemotePortlet(
327 com.liferay.portal.model.Portlet portlet,
328 java.lang.String[] categoryNames)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException {
331 return getService().deployRemotePortlet(portlet, categoryNames);
332 }
333
334 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
335 getService().destroyPortlet(portlet);
336 }
337
338 public static void destroyRemotePortlet(
339 com.liferay.portal.model.Portlet portlet) {
340 getService().destroyRemotePortlet(portlet);
341 }
342
343 public static java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
344 return getService().getCustomAttributesDisplays();
345 }
346
347 public static com.liferay.portal.model.PortletCategory getEARDisplay(
348 java.lang.String xml)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getService().getEARDisplay(xml);
351 }
352
353 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
354 return getService().getFriendlyURLMapperPortlets();
355 }
356
357 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
358 return getService().getFriendlyURLMappers();
359 }
360
361 public static com.liferay.portal.model.PortletApp getPortletApp(
362 java.lang.String servletContextName) {
363 return getService().getPortletApp(servletContextName);
364 }
365
366 public static com.liferay.portal.model.Portlet getPortletById(
367 long companyId, java.lang.String portletId)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService().getPortletById(companyId, portletId);
370 }
371
372 public static com.liferay.portal.model.Portlet getPortletById(
373 java.lang.String portletId) {
374 return getService().getPortletById(portletId);
375 }
376
377 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
378 long companyId, java.lang.String strutsPath)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService().getPortletByStrutsPath(companyId, strutsPath);
381 }
382
383 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
384 return getService().getPortlets();
385 }
386
387 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
388 long companyId)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 return getService().getPortlets(companyId);
391 }
392
393 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
394 long companyId, boolean showSystem, boolean showPortal)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 return getService().getPortlets(companyId, showSystem, showPortal);
397 }
398
399 public static java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets() {
400 return getService().getScopablePortlets();
401 }
402
403 public static com.liferay.portal.model.PortletCategory getWARDisplay(
404 java.lang.String servletContextName, java.lang.String xml)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getService().getWARDisplay(servletContextName, xml);
407 }
408
409 public static boolean hasPortlet(long companyId, java.lang.String portletId)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService().hasPortlet(companyId, portletId);
412 }
413
414 public static void initEAR(javax.servlet.ServletContext servletContext,
415 java.lang.String[] xmls,
416 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
417 getService().initEAR(servletContext, xmls, pluginPackage);
418 }
419
420 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
421 java.lang.String servletContextName,
422 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
423 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
424 return getService()
425 .initWAR(servletContextName, servletContext, xmls,
426 pluginPackage);
427 }
428
429 public static java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
430 long companyId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getService().loadGetPortletsPool(companyId);
433 }
434
435 public static void removeCompanyPortletsPool(long companyId) {
436 getService().removeCompanyPortletsPool(companyId);
437 }
438
439 public static com.liferay.portal.model.Portlet updatePortlet(
440 long companyId, java.lang.String portletId, java.lang.String roles,
441 boolean active)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getService().updatePortlet(companyId, portletId, roles, active);
444 }
445
446 public static PortletLocalService getService() {
447 if (_service == null) {
448 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
449
450 ReferenceRegistry.registerReference(PortletLocalServiceUtil.class,
451 "_service");
452 }
453
454 return _service;
455 }
456
457
460 public void setService(PortletLocalService service) {
461 }
462
463 private static PortletLocalService _service;
464 }