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
241 public static com.liferay.portal.model.Portlet updatePortlet(
242 com.liferay.portal.model.Portlet portlet, boolean merge)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updatePortlet(portlet, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static void addPortletCategory(long companyId,
266 java.lang.String categoryName) {
267 getService().addPortletCategory(companyId, categoryName);
268 }
269
270 public static void checkPortlet(com.liferay.portal.model.Portlet portlet)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().checkPortlet(portlet);
274 }
275
276 public static void checkPortlets(long companyId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().checkPortlets(companyId);
280 }
281
282 public static void clearCache() {
283 getService().clearCache();
284 }
285
286 public static void clearCompanyPortletsPool() {
287 getService().clearCompanyPortletsPool();
288 }
289
290
293 public static com.liferay.portal.model.Portlet clonePortlet(
294 long companyId, java.lang.String portletId) {
295 return getService().clonePortlet(companyId, portletId);
296 }
297
298 public static com.liferay.portal.model.Portlet clonePortlet(
299 java.lang.String portletId) {
300 return getService().clonePortlet(portletId);
301 }
302
303 public static void deletePortlet(long companyId,
304 java.lang.String portletId, long plid)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 getService().deletePortlet(companyId, portletId, plid);
308 }
309
310 public static void deletePortlets(long companyId,
311 java.lang.String[] portletIds, long plid)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 getService().deletePortlets(companyId, portletIds, plid);
315 }
316
317 public static com.liferay.portal.model.Portlet deployRemotePortlet(
318 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 return getService().deployRemotePortlet(portlet, categoryName);
322 }
323
324 public static com.liferay.portal.model.Portlet deployRemotePortlet(
325 com.liferay.portal.model.Portlet portlet,
326 java.lang.String[] categoryNames)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException {
329 return getService().deployRemotePortlet(portlet, categoryNames);
330 }
331
332 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
333 getService().destroyPortlet(portlet);
334 }
335
336 public static void destroyRemotePortlet(
337 com.liferay.portal.model.Portlet portlet) {
338 getService().destroyRemotePortlet(portlet);
339 }
340
341 public static java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
342 return getService().getCustomAttributesDisplays();
343 }
344
345 public static com.liferay.portal.model.PortletCategory getEARDisplay(
346 java.lang.String xml)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getEARDisplay(xml);
349 }
350
351 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
352 return getService().getFriendlyURLMapperPortlets();
353 }
354
355 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
356 return getService().getFriendlyURLMappers();
357 }
358
359 public static com.liferay.portal.model.PortletApp getPortletApp(
360 java.lang.String servletContextName) {
361 return getService().getPortletApp(servletContextName);
362 }
363
364 public static com.liferay.portal.model.Portlet getPortletById(
365 long companyId, java.lang.String portletId)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService().getPortletById(companyId, portletId);
368 }
369
370 public static com.liferay.portal.model.Portlet getPortletById(
371 java.lang.String portletId) {
372 return getService().getPortletById(portletId);
373 }
374
375 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
376 long companyId, java.lang.String strutsPath)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getService().getPortletByStrutsPath(companyId, strutsPath);
379 }
380
381 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
382 return getService().getPortlets();
383 }
384
385 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
386 long companyId)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getService().getPortlets(companyId);
389 }
390
391 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
392 long companyId, boolean showSystem, boolean showPortal)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getService().getPortlets(companyId, showSystem, showPortal);
395 }
396
397 public static java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets() {
398 return getService().getScopablePortlets();
399 }
400
401 public static com.liferay.portal.model.PortletCategory getWARDisplay(
402 java.lang.String servletContextName, java.lang.String xml)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getService().getWARDisplay(servletContextName, xml);
405 }
406
407 public static boolean hasPortlet(long companyId, java.lang.String portletId)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getService().hasPortlet(companyId, portletId);
410 }
411
412 public static void initEAR(javax.servlet.ServletContext servletContext,
413 java.lang.String[] xmls,
414 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
415 getService().initEAR(servletContext, xmls, pluginPackage);
416 }
417
418 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
419 java.lang.String servletContextName,
420 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
421 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
422 return getService()
423 .initWAR(servletContextName, servletContext, xmls,
424 pluginPackage);
425 }
426
427 public static java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
428 long companyId)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getService().loadGetPortletsPool(companyId);
431 }
432
433 public static void removeCompanyPortletsPool(long companyId) {
434 getService().removeCompanyPortletsPool(companyId);
435 }
436
437 public static com.liferay.portal.model.Portlet updatePortlet(
438 long companyId, java.lang.String portletId, java.lang.String roles,
439 boolean active)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getService().updatePortlet(companyId, portletId, roles, active);
442 }
443
444 public static PortletLocalService getService() {
445 if (_service == null) {
446 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
447
448 ReferenceRegistry.registerReference(PortletLocalServiceUtil.class,
449 "_service");
450 }
451
452 return _service;
453 }
454
455
458 public void setService(PortletLocalService service) {
459 }
460
461 private static PortletLocalService _service;
462 }