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) 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) void
setWrappedService
(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, wait
Methods 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:
addUserNotificationEvent
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
addUserNotificationEvent
public UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent) throws PortalException - Specified by:
addUserNotificationEvent
in 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:
addUserNotificationEvent
in 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:
addUserNotificationEvent
in 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:
addUserNotificationEvent
in 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:
addUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
archiveUserNotificationEvents
public void archiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) throws PortalException - Specified by:
archiveUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
PortalException
-
createUserNotificationEvent
Creates a new user notification event with the primary key. Does not add the user notification event to the database.- Specified by:
createUserNotificationEvent
in interfaceUserNotificationEventLocalService
- Parameters:
userNotificationEventId
- the primary key for the new user notification event- Returns:
- the new user notification event
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
PortalException
-
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:
deleteUserNotificationEvent
in 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:
deleteUserNotificationEvent
in 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:
deleteUserNotificationEvent
in 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:
deleteUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
deleteUserNotificationEvents
- Specified by:
deleteUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceUserNotificationEventLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceUserNotificationEventLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceUserNotificationEventLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - 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
.- Specified by:
dynamicQuery
in 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 - 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
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchUserNotificationEvent
in interfaceUserNotificationEventLocalService
-
fetchUserNotificationEventByUuidAndCompanyId
public UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.- Specified by:
fetchUserNotificationEventByUuidAndCompanyId
in interfaceUserNotificationEventLocalService
- 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
- Specified by:
getActionableDynamicQuery
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
- Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEvents
in 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:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEvents
public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) - Specified by:
getArchivedUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, boolean archived) - Specified by:
getArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) - Specified by:
getArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getArchivedUserNotificationEventsCount
public int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) - Specified by:
getArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getDeliveredArchivedUserNotificationEventsCount
public int getDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) - Specified by:
getDeliveredArchivedUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEvents
public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) - Specified by:
getDeliveredUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) - Specified by:
getDeliveredUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getDeliveredUserNotificationEventsCount
public int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) - Specified by:
getDeliveredUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceUserNotificationEventLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceUserNotificationEventLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
PortalException
-
getTypeNotificationEvents
- Specified by:
getTypeNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvent
public UserNotificationEvent getUserNotificationEvent(long userNotificationEventId) throws PortalException Returns the user notification event with the primary key.- Specified by:
getUserNotificationEvent
in 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:
getUserNotificationEventByUuidAndCompanyId
in 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 - 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
.- Specified by:
getUserNotificationEvents
in 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:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
- Specified by:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
- Specified by:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType, int start, int end) - Specified by:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) - Specified by:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEvents
public List<UserNotificationEvent> getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) - Specified by:
getUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount()Returns the number of user notification events.- Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
- Returns:
- the number of user notification events
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, int deliveryType) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
getUserNotificationEventsCount
public int getUserNotificationEventsCount(long userId, String type, Map<String, String> payloadParameters) - Specified by:
getUserNotificationEventsCount
in interfaceUserNotificationEventLocalService
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
sendUserNotificationEvents
public UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) throws PortalException - Specified by:
sendUserNotificationEvents
in interfaceUserNotificationEventLocalService
- Throws:
PortalException
-
updateUserNotificationEvent
public UserNotificationEvent updateUserNotificationEvent(String uuid, long companyId, boolean archive) - Specified by:
updateUserNotificationEvent
in 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:
updateUserNotificationEvent
in 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:
updateUserNotificationEvents
in interfaceUserNotificationEventLocalService
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<UserNotificationEventLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<UserNotificationEventLocalService>
-