Class PortletItemLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,PersistedModelLocalService,PortletItemLocalService,ServiceWrapper<PortletItemLocalService>
PortletItemLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionPortletItemLocalServiceWrapper(PortletItemLocalService portletItemLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddPortletItem(long userId, long groupId, String name, String portletId, String className) addPortletItem(PortletItem portletItem) Adds the portlet item to the database.createPersistedModel(Serializable primaryKeyObj) createPortletItem(long portletItemId) Creates a new portlet item with the primary key.deletePersistedModel(PersistedModel persistedModel) deletePortletItem(long portletItemId) Deletes the portlet item with the primary key from the database.deletePortletItem(PortletItem portletItem) Deletes the portlet item from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchPortletItem(long portletItemId) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getPortletItem(long portletItemId) Returns the portlet item with the primary key.getPortletItem(long groupId, String name, String portletId, String className) getPortletItems(int start, int end) Returns a range of all the portlet items.getPortletItems(long groupId, String className) getPortletItems(long groupId, String portletId, String className) intReturns the number of portlet items.voidsetWrappedService(PortletItemLocalService portletItemLocalService) updatePortletItem(long userId, long groupId, String name, String portletId, String className) updatePortletItem(PortletItem portletItem) Updates the portlet item in the database or adds it if it does not yet exist.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
PortletItemLocalServiceWrapper
public PortletItemLocalServiceWrapper() -
PortletItemLocalServiceWrapper
-
-
Method Details
-
addPortletItem
public PortletItem addPortletItem(long userId, long groupId, String name, String portletId, String className) throws PortalException - Specified by:
addPortletItemin interfacePortletItemLocalService- Throws:
PortalException
-
addPortletItem
Adds the portlet item to the database. Also notifies the appropriate model listeners.Important: Inspect PortletItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addPortletItemin interfacePortletItemLocalService- Parameters:
portletItem- the portlet item- Returns:
- the portlet item that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfacePortletItemLocalService- Throws:
PortalExceptionPortalException
-
createPortletItem
Creates a new portlet item with the primary key. Does not add the portlet item to the database.- Specified by:
createPortletItemin interfacePortletItemLocalService- Parameters:
portletItemId- the primary key for the new portlet item- Returns:
- the new portlet item
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfacePortletItemLocalService- Throws:
PortalExceptionPortalException
-
deletePortletItem
Deletes the portlet item with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect PortletItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deletePortletItemin interfacePortletItemLocalService- Parameters:
portletItemId- the primary key of the portlet item- Returns:
- the portlet item that was removed
- Throws:
PortalException- if a portlet item with the primary key could not be foundPortalException
-
deletePortletItem
Deletes the portlet item from the database. Also notifies the appropriate model listeners.Important: Inspect PortletItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deletePortletItemin interfacePortletItemLocalService- Parameters:
portletItem- the portlet item- Returns:
- the portlet item that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfacePortletItemLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfacePortletItemLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfacePortletItemLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacePortletItemLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl.- Specified by:
dynamicQueryin interfacePortletItemLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl.- Specified by:
dynamicQueryin interfacePortletItemLocalService- Parameters:
dynamicQuery- 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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacePortletItemLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacePortletItemLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchPortletItem
- Specified by:
fetchPortletItemin interfacePortletItemLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfacePortletItemLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfacePortletItemLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfacePortletItemLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfacePortletItemLocalService- Throws:
PortalExceptionPortalException
-
getPortletItem
Returns the portlet item with the primary key.- Specified by:
getPortletItemin interfacePortletItemLocalService- Parameters:
portletItemId- the primary key of the portlet item- Returns:
- the portlet item
- Throws:
PortalException- if a portlet item with the primary key could not be foundPortalException
-
getPortletItem
public PortletItem getPortletItem(long groupId, String name, String portletId, String className) throws PortalException - Specified by:
getPortletItemin interfacePortletItemLocalService- Throws:
PortalException
-
getPortletItems
Returns a range of all the portlet items.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl.- Specified by:
getPortletItemsin interfacePortletItemLocalService- Parameters:
start- the lower bound of the range of portlet itemsend- the upper bound of the range of portlet items (not inclusive)- Returns:
- the range of portlet items
-
getPortletItems
- Specified by:
getPortletItemsin interfacePortletItemLocalService
-
getPortletItems
- Specified by:
getPortletItemsin interfacePortletItemLocalService
-
getPortletItemsCount
public int getPortletItemsCount()Returns the number of portlet items.- Specified by:
getPortletItemsCountin interfacePortletItemLocalService- Returns:
- the number of portlet items
-
updatePortletItem
public PortletItem updatePortletItem(long userId, long groupId, String name, String portletId, String className) throws PortalException - Specified by:
updatePortletItemin interfacePortletItemLocalService- Throws:
PortalException
-
updatePortletItem
Updates the portlet item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect PortletItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updatePortletItemin interfacePortletItemLocalService- Parameters:
portletItem- the portlet item- Returns:
- the portlet item that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<PortletItemLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<PortletItemLocalService>
-