Class UserNotificationEventLocalServiceUtil
com.liferay.portal.service.impl.UserNotificationEventLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserNotificationEventaddUserNotificationEvent(long userId, boolean delivered, boolean actionRequired, NotificationEvent notificationEvent) static UserNotificationEventaddUserNotificationEvent(long userId, NotificationEvent notificationEvent) static UserNotificationEventaddUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, boolean delivered, String payload, boolean actionRequired, boolean archived, ServiceContext serviceContext) static UserNotificationEventaddUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) static UserNotificationEventaddUserNotificationEvent(UserNotificationEvent userNotificationEvent) Adds the user notification event to the database.static List<UserNotificationEvent>addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) static voidarchiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) static PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static UserNotificationEventcreateUserNotificationEvent(long userNotificationEventId) Creates a new user notification event with the primary key.static PersistedModeldeletePersistedModel(PersistedModel persistedModel) static UserNotificationEventdeleteUserNotificationEvent(long userNotificationEventId) Deletes the user notification event with the primary key from the database.static UserNotificationEventdeleteUserNotificationEvent(UserNotificationEvent userNotificationEvent) Deletes the user notification event from the database.static voiddeleteUserNotificationEvent(String uuid, long companyId) static voiddeleteUserNotificationEvents(long userId) static voiddeleteUserNotificationEvents(Collection<String> uuids, long companyId) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static DynamicQuerystatic <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <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.static <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.static longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.static UserNotificationEventfetchUserNotificationEvent(long userNotificationEventId) static UserNotificationEventfetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.static ActionableDynamicQuerystatic List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, boolean archived) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) static List<UserNotificationEvent>getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) static intgetArchivedUserNotificationEventsCount(long userId, boolean archived) static intgetArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) static intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) static intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) static intgetArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) static intgetDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, boolean delivered) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) static List<UserNotificationEvent>getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) static intgetDeliveredUserNotificationEventsCount(long userId, boolean delivered) static intgetDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) static intgetDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) static intgetDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) static StringReturns the OSGi service identifier.static PersistedModelgetPersistedModel(Serializable primaryKeyObj) static List<UserNotificationEvent>static UserNotificationEventgetUserNotificationEvent(long userNotificationEventId) Returns the user notification event with the primary key.static UserNotificationEventgetUserNotificationEventByUuidAndCompanyId(String uuid, long companyId) Returns the user notification event with the matching UUID and company.static List<UserNotificationEvent>getUserNotificationEvents(int start, int end) Returns a range of all the user notification events.static List<UserNotificationEvent>getUserNotificationEvents(long userId) static List<UserNotificationEvent>getUserNotificationEvents(long userId, int deliveryType) static List<UserNotificationEvent>getUserNotificationEvents(long userId, int start, int end) static List<UserNotificationEvent>getUserNotificationEvents(long userId, int deliveryType, int start, int end) static List<UserNotificationEvent>getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) static List<UserNotificationEvent>getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) static intReturns the number of user notification events.static intgetUserNotificationEventsCount(long userId) static intgetUserNotificationEventsCount(long userId, int deliveryType) static intgetUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) static intgetUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) static intgetUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) static intgetUserNotificationEventsCount(long userId, String type, Map<String, String> payloadParameters) static UserNotificationEventsendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) static UserNotificationEventsendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) static UserNotificationEventsendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) static voidstatic UserNotificationEventupdateUserNotificationEvent(UserNotificationEvent userNotificationEvent) Updates the user notification event in the database or adds it if it does not yet exist.static UserNotificationEventupdateUserNotificationEvent(String uuid, long companyId, boolean archive) static List<UserNotificationEvent>updateUserNotificationEvents(Collection<String> uuids, long companyId, boolean archive)
-
Constructor Details
-
UserNotificationEventLocalServiceUtil
public UserNotificationEventLocalServiceUtil()
-
-
Method Details
-
addUserNotificationEvent
public static UserNotificationEvent addUserNotificationEvent(long userId, boolean delivered, boolean actionRequired, NotificationEvent notificationEvent) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
public static UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
public static 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
public static UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addUserNotificationEvent
public static 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
public static List<UserNotificationEvent> addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) throws PortalException - Throws:
PortalException
-
archiveUserNotificationEvents
public static void archiveUserNotificationEvents(long userId, int deliveryType, boolean actionRequired) throws PortalException - Throws:
PortalException
-
createPersistedModel
public static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException - Throws:
PortalException
-
createUserNotificationEvent
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
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException - Throws:
PortalException
-
deleteUserNotificationEvent
public static 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
public static 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
public static void deleteUserNotificationEvents(Collection<String> uuids, long companyId) throws PortalException - Throws:
PortalException
-
deleteUserNotificationEvents
- Throws:
PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- 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.- 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 static <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.- 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.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
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
-
fetchUserNotificationEventByUuidAndCompanyId
public static 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
nullif a matching user notification event could not be found
-
getActionableDynamicQuery
-
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getArchivedUserNotificationEvents
public static List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived, int start, int end) -
getArchivedUserNotificationEventsCount
public static int getArchivedUserNotificationEventsCount(long userId, boolean archived) -
getArchivedUserNotificationEventsCount
public static int getArchivedUserNotificationEventsCount(long userId, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEventsCount
public static int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean archived) -
getArchivedUserNotificationEventsCount
public static int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean actionRequired, boolean archived) -
getArchivedUserNotificationEventsCount
public static int getArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired, boolean archived) -
getDeliveredArchivedUserNotificationEventsCount
public static int getDeliveredArchivedUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getDeliveredUserNotificationEvents
public static List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, int start, int end) -
getDeliveredUserNotificationEventsCount
public static int getDeliveredUserNotificationEventsCount(long userId, boolean delivered) -
getDeliveredUserNotificationEventsCount
public static int getDeliveredUserNotificationEventsCount(long userId, boolean delivered, boolean actionRequired) -
getDeliveredUserNotificationEventsCount
public static int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered) -
getDeliveredUserNotificationEventsCount
public static int getDeliveredUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean actionRequired) -
getIndexableActionableDynamicQuery
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
- Throws:
PortalException
-
getTypeNotificationEvents
-
getUserNotificationEvent
public static 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
public static 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
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.- 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
-
getUserNotificationEvents
-
getUserNotificationEvents
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end) -
getUserNotificationEvents
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType, int start, int end) -
getUserNotificationEvents
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end, OrderByComparator<UserNotificationEvent> orderByComparator) -
getUserNotificationEvents
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, String type, long timestamp, boolean delivered) -
getUserNotificationEventsCount
public static int getUserNotificationEventsCount()Returns the number of user notification events.- Returns:
- the number of user notification events
-
getUserNotificationEventsCount
public static int getUserNotificationEventsCount(long userId) -
getUserNotificationEventsCount
public static int getUserNotificationEventsCount(long userId, int deliveryType) -
getUserNotificationEventsCount
public static int getUserNotificationEventsCount(long userId, int deliveryType, boolean delivered, boolean archived) -
getUserNotificationEventsCount
public static int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered) -
getUserNotificationEventsCount
public static int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean delivered, boolean archived) -
getUserNotificationEventsCount
-
sendUserNotificationEvents
public static UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean delivered, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
sendUserNotificationEvents
public static UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
sendUserNotificationEvents
public static UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject) throws PortalException - Throws:
PortalException
-
updateUserNotificationEvent
public static UserNotificationEvent updateUserNotificationEvent(String uuid, long companyId, boolean archive) -
updateUserNotificationEvent
public static 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
public static List<UserNotificationEvent> updateUserNotificationEvents(Collection<String> uuids, long companyId, boolean archive) -
getService
-
setService
-