com.liferay.portal.service
Interface PortletLocalService

All Known Implementing Classes:
PortletLocalServiceWrapper

@Transactional(isolation=PORTAL,
               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
Generated:

Method Summary
 Portlet addPortlet(Portlet portlet)
           
 Portlet clonePortlet(long companyId, java.lang.String portletId)
           
 Portlet createPortlet(long id)
           
 void deletePortlet(long id)
           
 void deletePortlet(Portlet portlet)
           
 Portlet deployRemotePortlet(Portlet portlet, java.lang.String categoryName)
           
 void destroyPortlet(Portlet portlet)
           
 void destroyRemotePortlet(Portlet portlet)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 PortletCategory getEARDisplay(java.lang.String xml)
           
 java.util.List<Portlet> getFriendlyURLMapperPortlets()
           
 java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers()
           
 Portlet getPortlet(long id)
           
 PortletApp getPortletApp(java.lang.String servletContextName)
           
 Portlet getPortletById(long companyId, java.lang.String portletId)
           
 Portlet getPortletById(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)
          Deprecated. clonePortlet(long, String)
 Portlet updatePortlet(long companyId, java.lang.String portletId, java.lang.String roles, boolean active)
           
 Portlet updatePortlet(Portlet portlet)
           
 Portlet updatePortlet(Portlet portlet, boolean merge)
           
 

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.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePortlet

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

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQueryCount

int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortlet

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

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

updatePortlet

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

clonePortlet

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

deployRemotePortlet

Portlet deployRemotePortlet(Portlet portlet,
                            java.lang.String categoryName)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

destroyPortlet

void destroyPortlet(Portlet portlet)

destroyRemotePortlet

void destroyRemotePortlet(Portlet portlet)

getEARDisplay

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

getFriendlyURLMapperPortlets

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

getFriendlyURLMappers

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

getPortletApp

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PortletApp getPortletApp(java.lang.String servletContextName)

getPortletById

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

getPortletById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Portlet getPortletById(java.lang.String portletId)

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

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

hasPortlet

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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)
Deprecated. clonePortlet(long, String)


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