com.liferay.portal.service
Class PortletLocalServiceUtil
java.lang.Object
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
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
- Generated:
Method Summary |
static Portlet |
addPortlet(Portlet portlet)
|
static Portlet |
clonePortlet(long companyId,
java.lang.String portletId)
|
static Portlet |
createPortlet(long id)
|
static void |
deletePortlet(long id)
|
static void |
deletePortlet(Portlet portlet)
|
static Portlet |
deployRemotePortlet(Portlet portlet,
java.lang.String categoryName)
|
static void |
destroyPortlet(Portlet portlet)
|
static void |
destroyRemotePortlet(Portlet portlet)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
|
static int |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static PortletCategory |
getEARDisplay(java.lang.String xml)
|
static java.util.List<Portlet> |
getFriendlyURLMapperPortlets()
|
static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> |
getFriendlyURLMappers()
|
static Portlet |
getPortlet(long id)
|
static PortletApp |
getPortletApp(java.lang.String servletContextName)
|
static Portlet |
getPortletById(long companyId,
java.lang.String portletId)
|
static Portlet |
getPortletById(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)
Deprecated. clonePortlet(long, String) |
void |
setService(PortletLocalService service)
|
static Portlet |
updatePortlet(long companyId,
java.lang.String portletId,
java.lang.String roles,
boolean active)
|
static Portlet |
updatePortlet(Portlet portlet)
|
static Portlet |
updatePortlet(Portlet portlet,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletLocalServiceUtil
public PortletLocalServiceUtil()
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 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 dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static 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
public static int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
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
updatePortlet
public static Portlet updatePortlet(Portlet portlet,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clonePortlet
public static Portlet clonePortlet(long companyId,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
deployRemotePortlet
public static Portlet deployRemotePortlet(Portlet portlet,
java.lang.String categoryName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
destroyPortlet
public static void destroyPortlet(Portlet portlet)
destroyRemotePortlet
public static void destroyRemotePortlet(Portlet portlet)
getEARDisplay
public static PortletCategory getEARDisplay(java.lang.String xml)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFriendlyURLMapperPortlets
public static java.util.List<Portlet> getFriendlyURLMapperPortlets()
getFriendlyURLMappers
public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers()
getPortletApp
public static PortletApp getPortletApp(java.lang.String servletContextName)
getPortletById
public static Portlet getPortletById(long companyId,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPortletById
public static Portlet getPortletById(java.lang.String portletId)
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
getWARDisplay
public static PortletCategory getWARDisplay(java.lang.String servletContextName,
java.lang.String xml)
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)
- Deprecated.
clonePortlet(long, String)
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)