Class NotificationQueueEntryLocalServiceWrapper

java.lang.Object
com.liferay.notification.service.NotificationQueueEntryLocalServiceWrapper
All Implemented Interfaces:
NotificationQueueEntryLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<NotificationQueueEntryLocalService>

public class NotificationQueueEntryLocalServiceWrapper extends Object implements NotificationQueueEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<NotificationQueueEntryLocalService>
Provides a wrapper for NotificationQueueEntryLocalService.
See Also:
Generated:
  • Constructor Details

    • NotificationQueueEntryLocalServiceWrapper

      public NotificationQueueEntryLocalServiceWrapper()
    • NotificationQueueEntryLocalServiceWrapper

      public NotificationQueueEntryLocalServiceWrapper(NotificationQueueEntryLocalService notificationQueueEntryLocalService)
  • Method Details

    • addNotificationQueueEntry

      public NotificationQueueEntry addNotificationQueueEntry(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addNotificationQueueEntry

      public NotificationQueueEntry addNotificationQueueEntry(NotificationQueueEntry notificationQueueEntry)
      Adds the notification queue entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect NotificationQueueEntryLocalServiceImpl 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:
      addNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntry - the notification queue entry
      Returns:
      the notification queue entry that was added
    • createNotificationQueueEntry

      public NotificationQueueEntry createNotificationQueueEntry(long notificationQueueEntryId)
      Creates a new notification queue entry with the primary key. Does not add the notification queue entry to the database.
      Specified by:
      createNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntryId - the primary key for the new notification queue entry
      Returns:
      the new notification queue entry
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface NotificationQueueEntryLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCompanyNotificationQueueEntries

      public void deleteCompanyNotificationQueueEntries(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCompanyNotificationQueueEntries in interface NotificationQueueEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteNotificationQueueEntries

      public void deleteNotificationQueueEntries(Date sentDate) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteNotificationQueueEntries in interface NotificationQueueEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteNotificationQueueEntry

      public NotificationQueueEntry deleteNotificationQueueEntry(long notificationQueueEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the notification queue entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect NotificationQueueEntryLocalServiceImpl 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:
      deleteNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntryId - the primary key of the notification queue entry
      Returns:
      the notification queue entry that was removed
      Throws:
      PortalException - if a notification queue entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteNotificationQueueEntry

      public NotificationQueueEntry deleteNotificationQueueEntry(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the notification queue entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect NotificationQueueEntryLocalServiceImpl 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:
      deleteNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntry - the notification queue entry
      Returns:
      the notification queue entry that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface NotificationQueueEntryLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface NotificationQueueEntryLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface NotificationQueueEntryLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface NotificationQueueEntryLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface NotificationQueueEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.notification.model.impl.NotificationQueueEntryModelImpl.

      Specified by:
      dynamicQuery in interface NotificationQueueEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.notification.model.impl.NotificationQueueEntryModelImpl.

      Specified by:
      dynamicQuery in interface NotificationQueueEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface NotificationQueueEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface NotificationQueueEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchNotificationQueueEntry

      public NotificationQueueEntry fetchNotificationQueueEntry(long notificationQueueEntryId)
      Specified by:
      fetchNotificationQueueEntry in interface NotificationQueueEntryLocalService
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface NotificationQueueEntryLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface NotificationQueueEntryLocalService
    • getNotificationEntries

      public List<NotificationQueueEntry> getNotificationEntries(String type, int status)
      Specified by:
      getNotificationEntries in interface NotificationQueueEntryLocalService
    • getNotificationQueueEntries

      public List<NotificationQueueEntry> getNotificationQueueEntries(int start, int end)
      Returns a range of all the notification queue entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.notification.model.impl.NotificationQueueEntryModelImpl.

      Specified by:
      getNotificationQueueEntries in interface NotificationQueueEntryLocalService
      Parameters:
      start - the lower bound of the range of notification queue entries
      end - the upper bound of the range of notification queue entries (not inclusive)
      Returns:
      the range of notification queue entries
    • getNotificationQueueEntriesCount

      public int getNotificationQueueEntriesCount()
      Returns the number of notification queue entries.
      Specified by:
      getNotificationQueueEntriesCount in interface NotificationQueueEntryLocalService
      Returns:
      the number of notification queue entries
    • getNotificationQueueEntry

      public NotificationQueueEntry getNotificationQueueEntry(long notificationQueueEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the notification queue entry with the primary key.
      Specified by:
      getNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntryId - the primary key of the notification queue entry
      Returns:
      the notification queue entry
      Throws:
      PortalException - if a notification queue entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface NotificationQueueEntryLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface NotificationQueueEntryLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • resendNotificationQueueEntry

      public NotificationQueueEntry resendNotificationQueueEntry(long notificationQueueEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      resendNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateNotificationQueueEntry

      public NotificationQueueEntry updateNotificationQueueEntry(NotificationQueueEntry notificationQueueEntry)
      Updates the notification queue entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect NotificationQueueEntryLocalServiceImpl 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:
      updateNotificationQueueEntry in interface NotificationQueueEntryLocalService
      Parameters:
      notificationQueueEntry - the notification queue entry
      Returns:
      the notification queue entry that was updated
    • updateStatus

      public NotificationQueueEntry updateStatus(long notificationQueueEntryId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface NotificationQueueEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getWrappedService

      public NotificationQueueEntryLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<NotificationQueueEntryLocalService>
    • setWrappedService

      public void setWrappedService(NotificationQueueEntryLocalService notificationQueueEntryLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<NotificationQueueEntryLocalService>