com.liferay.portal.service
Class PortletLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portal.service.PortletLocalServiceUtil

public class PortletLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portal.service.PortletLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

com.liferay.portal.service.PortletLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
PortletLocalService, PortletLocalServiceFactory

Constructor Summary
PortletLocalServiceUtil()
           
 
Method Summary
static Portlet addPortlet(Portlet model)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static PortletCategory getEARDisplay(java.lang.String xml)
           
static java.util.List getFriendlyURLMappers()
           
static Portlet getPortletById(long companyId, java.lang.String portletId)
           
static Portlet getPortletByStrutsPath(long companyId, java.lang.String strutsPath)
           
static java.util.List getPortlets(long companyId)
           
static java.util.List getPortlets(long companyId, boolean showSystem, boolean showPortal)
           
static PortletCategory getWARDisplay(java.lang.String servletContextName, java.lang.String xml)
           
static boolean hasPortlet(long companyId, java.lang.String portletId)
           
static void initEAR(java.lang.String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static java.util.List initWAR(java.lang.String servletContextName, java.lang.String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static Portlet updatePortlet(long companyId, java.lang.String portletId, java.lang.String roles, boolean active)
           
static Portlet updatePortlet(Portlet model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletLocalServiceUtil

public PortletLocalServiceUtil()
Method Detail

addPortlet

public static Portlet addPortlet(Portlet model)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePortlet

public static Portlet updatePortlet(Portlet model)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEARDisplay

public static PortletCategory getEARDisplay(java.lang.String xml)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getWARDisplay

public static PortletCategory getWARDisplay(java.lang.String servletContextName,
                                            java.lang.String xml)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFriendlyURLMappers

public static java.util.List getFriendlyURLMappers()

getPortletById

public static Portlet getPortletById(long companyId,
                                     java.lang.String portletId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletByStrutsPath

public static Portlet getPortletByStrutsPath(long companyId,
                                             java.lang.String strutsPath)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlets

public static java.util.List getPortlets(long companyId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlets

public static java.util.List getPortlets(long companyId,
                                         boolean showSystem,
                                         boolean showPortal)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasPortlet

public static boolean hasPortlet(long companyId,
                                 java.lang.String portletId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

initEAR

public static void initEAR(java.lang.String[] xmls,
                           com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

initWAR

public static java.util.List initWAR(java.lang.String servletContextName,
                                     java.lang.String[] xmls,
                                     com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

updatePortlet

public static Portlet updatePortlet(long companyId,
                                    java.lang.String portletId,
                                    java.lang.String roles,
                                    boolean active)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException