@ProviderType public class PortletLocalServiceWrapper extends java.lang.Object implements PortletLocalService, ServiceWrapper<PortletLocalService>
PortletLocalService.PortletLocalService| Constructor and Description |
|---|
PortletLocalServiceWrapper(PortletLocalService portletLocalService) |
| Modifier and Type | Method and Description |
|---|---|
Portlet |
addPortlet(Portlet portlet)
Adds the portlet to the database.
|
void |
addPortletCategory(long companyId,
java.lang.String categoryName) |
void |
checkPortlet(Portlet portlet) |
void |
checkPortlets(long companyId) |
void |
clearCache() |
void |
clearCompanyPortletsPool() |
Portlet |
clonePortlet(long companyId,
java.lang.String portletId)
Deprecated.
As of 6.1.0, replaced by
clonePortlet(String) |
Portlet |
clonePortlet(java.lang.String portletId) |
Portlet |
createPortlet(long id)
Creates a new portlet with the primary key.
|
Portlet |
deletePortlet(long id)
Deletes the portlet with the primary key from the database.
|
void |
deletePortlet(long companyId,
java.lang.String portletId,
long plid) |
Portlet |
deletePortlet(Portlet portlet)
Deletes the portlet from the database.
|
void |
deletePortlets(long companyId,
java.lang.String[] portletIds,
long plid) |
Portlet |
deployRemotePortlet(Portlet portlet,
java.lang.String categoryName) |
Portlet |
deployRemotePortlet(Portlet portlet,
java.lang.String[] categoryNames) |
void |
destroyPortlet(Portlet portlet) |
void |
destroyRemotePortlet(Portlet portlet) |
DynamicQuery |
dynamicQuery() |
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
Portlet |
fetchPortlet(long id) |
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
java.util.List<CustomAttributesDisplay> |
getCustomAttributesDisplays() |
PortletCategory |
getEARDisplay(java.lang.String xml) |
java.util.List<Portlet> |
getFriendlyURLMapperPortlets() |
java.util.List<FriendlyURLMapper> |
getFriendlyURLMappers() |
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
Portlet |
getPortlet(long id)
Returns the portlet with the primary key.
|
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)
Returns a range of all the portlets.
|
java.util.List<Portlet> |
getPortlets(long companyId) |
java.util.List<Portlet> |
getPortlets(long companyId,
boolean showSystem,
boolean showPortal) |
int |
getPortletsCount()
Returns the number of portlets.
|
java.util.List<Portlet> |
getScopablePortlets() |
PortletCategory |
getWARDisplay(java.lang.String servletContextName,
java.lang.String xml) |
PortletLocalService |
getWrappedPortletLocalService()
Deprecated.
As of 6.1.0, replaced by
getWrappedService() |
PortletLocalService |
getWrappedService() |
boolean |
hasPortlet(long companyId,
java.lang.String portletId) |
void |
initEAR(javax.servlet.ServletContext servletContext,
java.lang.String[] xmls,
PluginPackage pluginPackage) |
java.util.List<Portlet> |
initWAR(java.lang.String servletContextName,
javax.servlet.ServletContext servletContext,
java.lang.String[] xmls,
PluginPackage pluginPackage) |
java.util.Map<java.lang.String,Portlet> |
loadGetPortletsPool(long companyId) |
void |
removeCompanyPortletsPool(long companyId) |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setWrappedPortletLocalService(PortletLocalService portletLocalService)
Deprecated.
As of 6.1.0, replaced by
setWrappedService(com.liferay.portal.service.PortletLocalService) |
void |
setWrappedService(PortletLocalService portletLocalService) |
Portlet |
updatePortlet(long companyId,
java.lang.String portletId,
java.lang.String roles,
boolean active) |
Portlet |
updatePortlet(Portlet portlet)
Updates the portlet in the database or adds it if it does not yet exist.
|
public PortletLocalServiceWrapper(PortletLocalService portletLocalService)
public Portlet addPortlet(Portlet portlet) throws SystemException
addPortlet in interface PortletLocalServiceportlet - the portletSystemException - if a system exception occurredpublic Portlet createPortlet(long id)
createPortlet in interface PortletLocalServiceid - the primary key for the new portletpublic Portlet deletePortlet(long id) throws PortalException, SystemException
deletePortlet in interface PortletLocalServiceid - the primary key of the portletPortalException - if a portlet with the primary key could not be foundSystemException - if a system exception occurredpublic Portlet deletePortlet(Portlet portlet) throws SystemException
deletePortlet in interface PortletLocalServiceportlet - the portletSystemException - if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery in interface PortletLocalServicepublic java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery in interface PortletLocalServicedynamicQuery - the dynamic querySystemException - if a system exception occurredpublic java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface PortletLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredpublic java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface PortletLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount in interface PortletLocalServicedynamicQuery - the dynamic querySystemException - if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQueryCount in interface PortletLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic Portlet fetchPortlet(long id) throws SystemException
fetchPortlet in interface PortletLocalServiceSystemExceptionpublic Portlet getPortlet(long id) throws PortalException, SystemException
getPortlet in interface PortletLocalServiceid - the primary key of the portletPortalException - if a portlet with the primary key could not be foundSystemException - if a system exception occurredpublic PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface PortletLocalServicePortalExceptionSystemExceptionpublic java.util.List<Portlet> getPortlets(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getPortlets in interface PortletLocalServicestart - the lower bound of the range of portletsend - the upper bound of the range of portlets (not inclusive)SystemException - if a system exception occurredpublic int getPortletsCount()
throws SystemException
getPortletsCount in interface PortletLocalServiceSystemException - if a system exception occurredpublic Portlet updatePortlet(Portlet portlet) throws SystemException
updatePortlet in interface PortletLocalServiceportlet - the portletSystemException - if a system exception occurredpublic java.lang.String getBeanIdentifier()
getBeanIdentifier in interface PortletLocalServicepublic void setBeanIdentifier(java.lang.String beanIdentifier)
setBeanIdentifier in interface PortletLocalServicebeanIdentifier - the Spring bean ID for this beanpublic void addPortletCategory(long companyId,
java.lang.String categoryName)
addPortletCategory in interface PortletLocalServicepublic void checkPortlet(Portlet portlet) throws PortalException, SystemException
checkPortlet in interface PortletLocalServicePortalExceptionSystemExceptionpublic void checkPortlets(long companyId)
throws PortalException,
SystemException
checkPortlets in interface PortletLocalServicePortalExceptionSystemExceptionpublic void clearCache()
clearCache in interface PortletLocalServicepublic void clearCompanyPortletsPool()
clearCompanyPortletsPool in interface PortletLocalServicepublic Portlet clonePortlet(long companyId, java.lang.String portletId)
clonePortlet(String)clonePortlet in interface PortletLocalServicepublic Portlet clonePortlet(java.lang.String portletId)
clonePortlet in interface PortletLocalServicepublic void deletePortlet(long companyId,
java.lang.String portletId,
long plid)
throws PortalException,
SystemException
deletePortlet in interface PortletLocalServicePortalExceptionSystemExceptionpublic void deletePortlets(long companyId,
java.lang.String[] portletIds,
long plid)
throws PortalException,
SystemException
deletePortlets in interface PortletLocalServicePortalExceptionSystemExceptionpublic Portlet deployRemotePortlet(Portlet portlet, java.lang.String categoryName) throws PortalException, SystemException
deployRemotePortlet in interface PortletLocalServicePortalExceptionSystemExceptionpublic Portlet deployRemotePortlet(Portlet portlet, java.lang.String[] categoryNames) throws PortalException, SystemException
deployRemotePortlet in interface PortletLocalServicePortalExceptionSystemExceptionpublic void destroyPortlet(Portlet portlet)
destroyPortlet in interface PortletLocalServicepublic void destroyRemotePortlet(Portlet portlet)
destroyRemotePortlet in interface PortletLocalServicepublic java.util.List<CustomAttributesDisplay> getCustomAttributesDisplays()
getCustomAttributesDisplays in interface PortletLocalServicepublic PortletCategory getEARDisplay(java.lang.String xml) throws SystemException
getEARDisplay in interface PortletLocalServiceSystemExceptionpublic java.util.List<Portlet> getFriendlyURLMapperPortlets()
getFriendlyURLMapperPortlets in interface PortletLocalServicepublic java.util.List<FriendlyURLMapper> getFriendlyURLMappers()
getFriendlyURLMappers in interface PortletLocalServicepublic PortletApp getPortletApp(java.lang.String servletContextName)
getPortletApp in interface PortletLocalServicepublic Portlet getPortletById(long companyId, java.lang.String portletId) throws SystemException
getPortletById in interface PortletLocalServiceSystemExceptionpublic Portlet getPortletById(java.lang.String portletId)
getPortletById in interface PortletLocalServicepublic Portlet getPortletByStrutsPath(long companyId, java.lang.String strutsPath) throws SystemException
getPortletByStrutsPath in interface PortletLocalServiceSystemExceptionpublic java.util.List<Portlet> getPortlets()
getPortlets in interface PortletLocalServicepublic java.util.List<Portlet> getPortlets(long companyId) throws SystemException
getPortlets in interface PortletLocalServiceSystemExceptionpublic java.util.List<Portlet> getPortlets(long companyId, boolean showSystem, boolean showPortal) throws SystemException
getPortlets in interface PortletLocalServiceSystemExceptionpublic java.util.List<Portlet> getScopablePortlets()
getScopablePortlets in interface PortletLocalServicepublic PortletCategory getWARDisplay(java.lang.String servletContextName, java.lang.String xml) throws SystemException
getWARDisplay in interface PortletLocalServiceSystemExceptionpublic boolean hasPortlet(long companyId,
java.lang.String portletId)
throws SystemException
hasPortlet in interface PortletLocalServiceSystemExceptionpublic void initEAR(javax.servlet.ServletContext servletContext,
java.lang.String[] xmls,
PluginPackage pluginPackage)
initEAR in interface PortletLocalServicepublic java.util.List<Portlet> initWAR(java.lang.String servletContextName, javax.servlet.ServletContext servletContext, java.lang.String[] xmls, PluginPackage pluginPackage)
initWAR in interface PortletLocalServicepublic java.util.Map<java.lang.String,Portlet> loadGetPortletsPool(long companyId) throws SystemException
loadGetPortletsPool in interface PortletLocalServiceSystemExceptionpublic void removeCompanyPortletsPool(long companyId)
removeCompanyPortletsPool in interface PortletLocalServicepublic Portlet updatePortlet(long companyId, java.lang.String portletId, java.lang.String roles, boolean active) throws SystemException
updatePortlet in interface PortletLocalServiceSystemExceptionpublic PortletLocalService getWrappedPortletLocalService()
getWrappedService()public void setWrappedPortletLocalService(PortletLocalService portletLocalService)
setWrappedService(com.liferay.portal.service.PortletLocalService)public PortletLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<PortletLocalService>public void setWrappedService(PortletLocalService portletLocalService)
setWrappedService in interface ServiceWrapper<PortletLocalService>