com.liferay.portal.service
Class PortletLocalServiceUtil

java.lang.Object
  extended by com.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.

Author:
Brian Wing Shun Chan
See Also:
PortletLocalService

Constructor Summary
PortletLocalServiceUtil()
           
 
Method Summary
static Portlet addPortlet(Portlet portlet)
           
static Portlet createPortlet(long id)
           
static void deletePortlet(long id)
           
static void deletePortlet(Portlet portlet)
           
static Portlet deployRemotePortlet(Portlet portlet)
           
static void destroyPortlet(Portlet portlet)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static PortletCategory getEARDisplay(java.lang.String xml)
           
static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers()
           
static Portlet getPortlet(long id)
           
static Portlet getPortletById(long companyId, java.lang.String portletId)
           
static Portlet getPortletByStrutsPath(long companyId, java.lang.String strutsPath)
           
static java.util.List<Portlet> getPortlets()
           
static java.util.List<Portlet> getPortlets(int start, int end)
           
static java.util.List<Portlet> getPortlets(long companyId)
           
static java.util.List<Portlet> getPortlets(long companyId, boolean showSystem, boolean showPortal)
           
static int getPortletsCount()
           
static PortletLocalService getService()
           
static PortletCategory getWARDisplay(java.lang.String servletContextName, java.lang.String xml)
           
static boolean hasPortlet(long companyId, java.lang.String portletId)
           
static void initEAR(javax.servlet.ServletContext servletContext, java.lang.String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static java.util.List<Portlet> initWAR(java.lang.String servletContextName, javax.servlet.ServletContext servletContext, java.lang.String[] xmls, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static Portlet newPortlet(long companyId, java.lang.String portletId)
           
 void setService(PortletLocalService service)
           
static Portlet updatePortlet(long companyId, java.lang.String portletId, java.lang.String roles, boolean active)
           
static Portlet updatePortlet(Portlet portlet)
           
 
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 portlet)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createPortlet

public static Portlet createPortlet(long id)

deletePortlet

public static void deletePortlet(long id)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePortlet

public static void deletePortlet(Portlet portlet)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlet

public static Portlet getPortlet(long id)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortlets

public static java.util.List<Portlet> getPortlets(int start,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletsCount

public static int getPortletsCount()
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePortlet

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

deployRemotePortlet

public static Portlet deployRemotePortlet(Portlet portlet)

destroyPortlet

public static void destroyPortlet(Portlet portlet)

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<com.liferay.portal.kernel.portlet.FriendlyURLMapper> 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<Portlet> getPortlets()

getPortlets

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

getPortlets

public static java.util.List<Portlet> 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(javax.servlet.ServletContext servletContext,
                           java.lang.String[] xmls,
                           com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

initWAR

public static java.util.List<Portlet> initWAR(java.lang.String servletContextName,
                                              javax.servlet.ServletContext servletContext,
                                              java.lang.String[] xmls,
                                              com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

newPortlet

public static Portlet newPortlet(long companyId,
                                 java.lang.String portletId)

updatePortlet

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

getService

public static PortletLocalService getService()

setService

public void setService(PortletLocalService service)