Interface UserNotificationEventLocalService
- All Superinterfaces:
BaseLocalService
,PersistedModelLocalService
- All Known Implementing Classes:
UserNotificationEventLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
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) void
archiveUserNotificationEvents
(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.void
deleteUserNotificationEvent
(String uuid, long companyId) void
deleteUserNotificationEvents
(long userId) void
deleteUserNotificationEvents
(Collection<String> uuids, long companyId) <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.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) int
getArchivedUserNotificationEventsCount
(long userId, boolean archived) int
getArchivedUserNotificationEventsCount
(long userId, boolean actionRequired, boolean archived) int
getArchivedUserNotificationEventsCount
(long userId, int deliveryType, boolean archived) int
getArchivedUserNotificationEventsCount
(long userId, int deliveryType, boolean actionRequired, boolean archived) int
getArchivedUserNotificationEventsCount
(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) int
getDeliveredArchivedUserNotificationEventsCount
(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) int
getDeliveredUserNotificationEventsCount
(long userId, boolean delivered) int
getDeliveredUserNotificationEventsCount
(long userId, boolean delivered, boolean actionRequired) int
getDeliveredUserNotificationEventsCount
(long userId, int deliveryType, boolean delivered) int
getDeliveredUserNotificationEventsCount
(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) int
Returns the number of user notification events.int
getUserNotificationEventsCount
(long userId) int
getUserNotificationEventsCount
(long userId, int deliveryType) int
getUserNotificationEventsCount
(long userId, int deliveryType, boolean delivered, boolean archived) int
getUserNotificationEventsCount
(long userId, String type, int deliveryType, boolean delivered) int
getUserNotificationEventsCount
(long userId, String type, int deliveryType, boolean delivered, boolean archived) int
getUserNotificationEventsCount
(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) 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 interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addUserNotificationEvent
UserNotificationEvent addUserNotificationEvent(long userId, boolean delivered, boolean actionRequired, NotificationEvent notificationEvent) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
@Indexable(type=REINDEX) UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, boolean delivered, String payload, boolean actionRequired, boolean archived, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
@Indexable(type=REINDEX) UserNotificationEvent addUserNotificationEvent(UserNotificationEvent userNotificationEvent) 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.
- Parameters:
userNotificationEvent
- the user notification event- Returns:
- the user notification event that was added
-
addUserNotificationEvents
List<UserNotificationEvent> addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) throws PortalException - Throws:
PortalException
-
archiveUserNotificationEvents
void archiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) throws PortalException - Throws:
PortalException
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
createUserNotificationEvent
@Transactional(enabled=false) UserNotificationEvent createUserNotificationEvent(long userNotificationEventId) Creates a new user notification event with the primary key. Does not add the user notification event to the database.- Parameters:
userNotificationEventId
- the primary key for the new user notification event- Returns:
- the new user notification event
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
deleteUserNotificationEvent
@Indexable(type=DELETE) 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.
- 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 found
-
deleteUserNotificationEvent
- Throws:
PortalException
-
deleteUserNotificationEvent
@Indexable(type=DELETE) 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.
- Parameters:
userNotificationEvent
- the user notification event- Returns:
- the user notification event that was removed
-
deleteUserNotificationEvents
- Throws:
PortalException
-
deleteUserNotificationEvents
- Throws:
PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <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.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.UserNotificationEventModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) <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.UserNotificationEventModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchUserNotificationEvent
@Transactional(propagation=SUPPORTS, readOnly=true) UserNotificationEvent fetchUserNotificationEvent(long userNotificationEventId) -
fetchUserNotificationEventByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.- Parameters:
uuid
- the user notification event's UUIDcompanyId
- the primary key of the company- Returns:
- the matching user notification event, or
null
if a matching user notification event could not be found
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getArchivedUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) -
getArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getArchivedUserNotificationEventsCount(long userId, boolean archived) -
getArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) -
getArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) -
getDeliveredArchivedUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getDeliveredUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) -
getDeliveredUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDeliveredUserNotificationEventsCount(long userId, boolean delivered) -
getDeliveredUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) -
getDeliveredUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
getTypeNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getTypeNotificationEvents(String type) -
getUserNotificationEvent
@Transactional(propagation=SUPPORTS, readOnly=true) UserNotificationEvent getUserNotificationEvent(long userNotificationEventId) throws PortalException Returns the user notification event with the primary key.- 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 found
-
getUserNotificationEventByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the user notification event with the matching UUID and company.- 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 found
-
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(int start, int end) Returns a range of all the user notification events.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.UserNotificationEventModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId) -
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType) -
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end) -
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType, int start, int end) -
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getUserNotificationEvents
@Transactional(propagation=SUPPORTS, readOnly=true) List<UserNotificationEvent> getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) -
getUserNotificationEventsCount
Returns the number of user notification events.- Returns:
- the number of user notification events
-
getUserNotificationEventsCount
-
getUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserNotificationEventsCount(long userId, int deliveryType) -
getUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) -
getUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) -
getUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) -
getUserNotificationEventsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserNotificationEventsCount(long userId, String type, Map<String, String> payloadParameters) -
sendUserNotificationEvents
UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
sendUserNotificationEvents
UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
sendUserNotificationEvents
UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
updateUserNotificationEvent
@Indexable(type=REINDEX) UserNotificationEvent updateUserNotificationEvent(String uuid, long companyId, boolean archive) -
updateUserNotificationEvent
@Indexable(type=REINDEX) 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.
- Parameters:
userNotificationEvent
- the user notification event- Returns:
- the user notification event that was updated
-
updateUserNotificationEvents
List<UserNotificationEvent> updateUserNotificationEvents(Collection<String> uuids, long companyId, boolean archive)
-