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> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(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) int
Returns the number of portlet items.void
setWrappedService
(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, wait
Methods 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:
addPortletItem
in 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:
addPortletItem
in interfacePortletItemLocalService
- Parameters:
portletItem
- the portlet item- Returns:
- the portlet item that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfacePortletItemLocalService
- Throws:
PortalException
PortalException
-
createPortletItem
Creates a new portlet item with the primary key. Does not add the portlet item to the database.- Specified by:
createPortletItem
in interfacePortletItemLocalService
- Parameters:
portletItemId
- the primary key for the new portlet item- Returns:
- the new portlet item
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfacePortletItemLocalService
- Throws:
PortalException
PortalException
-
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:
deletePortletItem
in 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:
deletePortletItem
in 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:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfacePortletItemLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfacePortletItemLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfacePortletItemLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchPortletItem
in interfacePortletItemLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfacePortletItemLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfacePortletItemLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacePortletItemLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfacePortletItemLocalService
- Throws:
PortalException
PortalException
-
getPortletItem
Returns the portlet item with the primary key.- Specified by:
getPortletItem
in 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:
getPortletItem
in interfacePortletItemLocalService
- Throws:
PortalException
-
getPortletItems
Returns a range of all the portlet items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.PortletItemModelImpl
.- Specified by:
getPortletItems
in 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:
getPortletItems
in interfacePortletItemLocalService
-
getPortletItems
- Specified by:
getPortletItems
in interfacePortletItemLocalService
-
getPortletItemsCount
public int getPortletItemsCount()Returns the number of portlet items.- Specified by:
getPortletItemsCount
in 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:
updatePortletItem
in 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:
updatePortletItem
in interfacePortletItemLocalService
- Parameters:
portletItem
- the portlet item- Returns:
- the portlet item that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<PortletItemLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<PortletItemLocalService>
-