com.liferay.portal.service
Interface PortletLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface PortletLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portal.service.impl.PortletLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
PortletLocalServiceUtil

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

Method Detail

addPortlet

Portlet addPortlet(Portlet portlet)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createPortlet

Portlet createPortlet(long id)

deletePortlet

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

deletePortlet

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

dynamicQuery

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Portlet getPortlet(long id)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPortlets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Portlet> getPortlets(int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPortletsCount()
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePortlet

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

deployRemotePortlet

Portlet deployRemotePortlet(Portlet portlet)

destroyPortlet

void destroyPortlet(Portlet portlet)

getEARDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletCategory getEARDisplay(java.lang.String xml)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getWARDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletCategory getWARDisplay(java.lang.String servletContextName,
                                            java.lang.String xml)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFriendlyURLMappers

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers()

getPortletById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Portlet getPortletById(long companyId,
                                     java.lang.String portletId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletByStrutsPath

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Portlet getPortletByStrutsPath(long companyId,
                                             java.lang.String strutsPath)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Portlet> getPortlets()

getPortlets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Portlet> getPortlets(long companyId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Portlet> getPortlets(long companyId,
                                                  boolean showSystem,
                                                  boolean showPortal)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasPortlet

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

initEAR

void initEAR(javax.servlet.ServletContext servletContext,
             java.lang.String[] xmls,
             com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

initWAR

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

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

updatePortlet

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