Class UserNotificationEventLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,PersistedModelLocalService,ServiceWrapper<UserNotificationEventLocalService>,UserNotificationEventLocalService
UserNotificationEventLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionUserNotificationEventLocalServiceWrapper(UserNotificationEventLocalService userNotificationEventLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddUserNotificationEvent(long userId, boolean delivered, boolean actionRequired, NotificationEvent notificationEvent) addUserNotificationEvent(long userId, NotificationEvent notificationEvent) addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, boolean delivered, String payload, boolean actionRequired, boolean archived, ServiceContext serviceContext) addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) addUserNotificationEvent(UserNotificationEvent userNotificationEvent) Adds the user notification event to the database.addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) voidarchiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) createPersistedModel(Serializable primaryKeyObj) createUserNotificationEvent(long userNotificationEventId) Creates a new user notification event with the primary key.deletePersistedModel(PersistedModel persistedModel) deleteUserNotificationEvent(long userNotificationEventId) Deletes the user notification event with the primary key from the database.deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent) Deletes the user notification event from the database.voiddeleteUserNotificationEvent(String uuid, long companyId) voiddeleteUserNotificationEvents(long userId) voiddeleteUserNotificationEvents(Collection<String> uuids, long companyId) <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.fetchUserNotificationEvent(long userNotificationEventId) fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.getArchivedUserNotificationEvents(long userId, boolean archived) getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) intgetArchivedUserNotificationEventsCount(long userId, boolean archived) intgetArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) intgetDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) getDeliveredUserNotificationEvents(long userId, boolean delivered) getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) intgetDeliveredUserNotificationEventsCount(long userId, boolean delivered) intgetDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) intgetDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) intgetDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getUserNotificationEvent(long userNotificationEventId) Returns the user notification event with the primary key.getUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.getUserNotificationEvents(int start, int end) Returns a range of all the user notification events.getUserNotificationEvents(long userId) getUserNotificationEvents(long userId, int deliveryType) getUserNotificationEvents(long userId, int start, int end) getUserNotificationEvents(long userId, int deliveryType, int start, int end) getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) intReturns the number of user notification events.intgetUserNotificationEventsCount(long userId) intgetUserNotificationEventsCount(long userId, int deliveryType) intgetUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) intgetUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) intgetUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) intgetUserNotificationEventsCount(long userId, String type, Map<String, String> payloadParameters) sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) voidsetWrappedService(UserNotificationEventLocalService userNotificationEventLocalService) updateUserNotificationEvent(UserNotificationEvent userNotificationEvent) Updates the user notification event in the database or adds it if it does not yet exist.updateUserNotificationEvent(String uuid, long companyId, boolean archive) updateUserNotificationEvents(Collection<String> uuids, long companyId, boolean archive) 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
-
UserNotificationEventLocalServiceWrapper
public UserNotificationEventLocalServiceWrapper() -
UserNotificationEventLocalServiceWrapper
public UserNotificationEventLocalServiceWrapper(UserNotificationEventLocalService userNotificationEventLocalService)
-
-
Method Details
-
addUserNotificationEvent
public UserNotificationEvent addUserNotificationEvent(long userId, boolean delivered, boolean actionRequired, NotificationEvent notificationEvent) throws PortalException - Specified by:
addUserNotificationEventin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
addUserNotificationEvent
public UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent) throws PortalException - Specified by:
addUserNotificationEventin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
addUserNotificationEvent
public UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, boolean delivered, String payload, boolean actionRequired, boolean archived, ServiceContext serviceContext) throws PortalException - Specified by:
addUserNotificationEventin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
addUserNotificationEvent
public UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) throws PortalException - Specified by:
addUserNotificationEventin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
addUserNotificationEvent
Adds the user notification event to the database. Also notifies the appropriate model listeners.Important: Inspect UserNotificationEventLocalServiceImpl 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:
addUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEvent- the user notification event- Returns:
- the user notification event that was added
-
addUserNotificationEvents
public List<UserNotificationEvent> addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) throws PortalException - Specified by:
addUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
archiveUserNotificationEvents
public void archiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) throws PortalException - Specified by:
archiveUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceUserNotificationEventLocalService- Throws:
PortalExceptionPortalException
-
createUserNotificationEvent
Creates a new user notification event with the primary key. Does not add the user notification event to the database.- Specified by:
createUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEventId- the primary key for the new user notification event- Returns:
- the new user notification event
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceUserNotificationEventLocalService- Throws:
PortalExceptionPortalException
-
deleteUserNotificationEvent
public UserNotificationEvent deleteUserNotificationEvent(long userNotificationEventId) throws PortalException Deletes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect UserNotificationEventLocalServiceImpl 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:
deleteUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEventId- the primary key of the user notification event- Returns:
- the user notification event that was removed
- Throws:
PortalException- if a user notification event with the primary key could not be foundPortalException
-
deleteUserNotificationEvent
- Specified by:
deleteUserNotificationEventin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
deleteUserNotificationEvent
public UserNotificationEvent deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent) Deletes the user notification event from the database. Also notifies the appropriate model listeners.Important: Inspect UserNotificationEventLocalServiceImpl 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:
deleteUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEvent- the user notification event- Returns:
- the user notification event that was removed
-
deleteUserNotificationEvents
public void deleteUserNotificationEvents(Collection<String> uuids, long companyId) throws PortalException - Specified by:
deleteUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
deleteUserNotificationEvents
- Specified by:
deleteUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceUserNotificationEventLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceUserNotificationEventLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceUserNotificationEventLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceUserNotificationEventLocalService- 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.UserNotificationEventModelImpl.- Specified by:
dynamicQueryin interfaceUserNotificationEventLocalService- 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.UserNotificationEventModelImpl.- Specified by:
dynamicQueryin interfaceUserNotificationEventLocalService- 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 interfaceUserNotificationEventLocalService- 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 interfaceUserNotificationEventLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchUserNotificationEvent
- Specified by:
fetchUserNotificationEventin interfaceUserNotificationEventLocalService
-
fetchUserNotificationEventByUuidAndCompanyId
public UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.- Specified by:
fetchUserNotificationEventByUuidAndCompanyIdin interfaceUserNotificationEventLocalService- Parameters:
uuid- the user notification event's UUIDcompanyId- the primary key of the company- Returns:
- the matching user notification event, or
nullif a matching user notification event could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
- Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, boolean archived) - Specified by:
getArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) - Specified by:
getArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getDeliveredArchivedUserNotificationEventsCount
public int getDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) - Specified by:
getDeliveredArchivedUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) - Specified by:
getDeliveredUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceUserNotificationEventLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceUserNotificationEventLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceUserNotificationEventLocalService- Throws:
PortalExceptionPortalException
-
getTypeNotificationEvents
- Specified by:
getTypeNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvent
public UserNotificationEvent getUserNotificationEvent(long userNotificationEventId) throws PortalException Returns the user notification event with the primary key.- Specified by:
getUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEventId- the primary key of the user notification event- Returns:
- the user notification event
- Throws:
PortalException- if a user notification event with the primary key could not be foundPortalException
-
getUserNotificationEventByUuidAndCompanyId
public UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the user notification event with the matching UUID and company.- Specified by:
getUserNotificationEventByUuidAndCompanyIdin interfaceUserNotificationEventLocalService- Parameters:
uuid- the user notification event's UUIDcompanyId- the primary key of the company- Returns:
- the matching user notification event
- Throws:
PortalException- if a matching user notification event could not be foundPortalException
-
getUserNotificationEvents
Returns a range of all the user notification events.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.UserNotificationEventModelImpl.- Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService- Parameters:
start- the lower bound of the range of user notification eventsend- the upper bound of the range of user notification events (not inclusive)- Returns:
- the range of user notification events
-
getUserNotificationEvents
- Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
- Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
- Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType, int start, int end) - Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) - Specified by:
getUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount()Returns the number of user notification events.- Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService- Returns:
- the number of user notification events
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, int deliveryType) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, Map<String, String> payloadParameters) - Specified by:
getUserNotificationEventsCountin interfaceUserNotificationEventLocalService
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEventsin interfaceUserNotificationEventLocalService- Throws:
PortalException
-
updateUserNotificationEvent
public UserNotificationEvent updateUserNotificationEvent(String uuid, long companyId, boolean archive) - Specified by:
updateUserNotificationEventin interfaceUserNotificationEventLocalService
-
updateUserNotificationEvent
public UserNotificationEvent updateUserNotificationEvent(UserNotificationEvent userNotificationEvent) Updates the user notification event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect UserNotificationEventLocalServiceImpl 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:
updateUserNotificationEventin interfaceUserNotificationEventLocalService- Parameters:
userNotificationEvent- the user notification event- Returns:
- the user notification event that was updated
-
updateUserNotificationEvents
public List<UserNotificationEvent> updateUserNotificationEvents(Collection<String> uuids, long companyId, boolean archive) - Specified by:
updateUserNotificationEventsin interfaceUserNotificationEventLocalService
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<UserNotificationEventLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<UserNotificationEventLocalService>
-