Liferay 7.0-ce-b4

com.liferay.portal.service
Class UserNotificationEventLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.UserNotificationEventLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<UserNotificationEventLocalService>, UserNotificationEventLocalService

@ProviderType
public class UserNotificationEventLocalServiceWrapper
extends Object
implements UserNotificationEventLocalService, ServiceWrapper<UserNotificationEventLocalService>

Provides a wrapper for UserNotificationEventLocalService.

See Also:
UserNotificationEventLocalService

Constructor Summary
UserNotificationEventLocalServiceWrapper(UserNotificationEventLocalService userNotificationEventLocalService)
           
 
Method Summary
 UserNotificationEvent addUserNotificationEvent(long userId, boolean actionRequired, NotificationEvent notificationEvent)
           
 UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent)
           
 UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean actionRequired, boolean archived, ServiceContext serviceContext)
           
 UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, int deliveryType, long deliverBy, String payload, boolean archived, ServiceContext serviceContext)
           
 UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, long deliverBy, String payload, boolean archived, ServiceContext serviceContext)
          Deprecated. As of 7.0.0 addUserNotificationEvent(long, String, long, int, long, String, boolean, ServiceContext)
 UserNotificationEvent addUserNotificationEvent(UserNotificationEvent userNotificationEvent)
          Adds the user notification event to the database.
 List<UserNotificationEvent> addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents)
           
 UserNotificationEvent createUserNotificationEvent(long userNotificationEventId)
          Creates a new user notification event with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 UserNotificationEvent deleteUserNotificationEvent(long userNotificationEventId)
          Deletes the user notification event with the primary key from the database.
 void deleteUserNotificationEvent(String uuid, long companyId)
           
 UserNotificationEvent deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent)
          Deletes the user notification event from the database.
 void deleteUserNotificationEvents(Collection<String> uuids, long companyId)
           
 DynamicQuery dynamicQuery()
           
<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.
 UserNotificationEvent fetchUserNotificationEvent(long userNotificationEventId)
           
 UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId)
          Returns the user notification event with the matching UUID and company.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean archived)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, int deliveryType, boolean actionRequired, boolean archived, int start, int end)
           
 List<UserNotificationEvent> 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)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, int deliveryType, boolean delivered, boolean actionRequired, int start, int end)
           
 List<UserNotificationEvent> 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)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<UserNotificationEvent> getTypeNotificationEvents(String type)
           
 UserNotificationEvent getUserNotificationEvent(long userNotificationEventId)
          Returns the user notification event with the primary key.
 UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(String uuid, long companyId)
          Returns the user notification event with the matching UUID and company.
 List<UserNotificationEvent> getUserNotificationEvents(int start, int end)
          Returns a range of all the user notification events.
 List<UserNotificationEvent> getUserNotificationEvents(long userId)
           
 List<UserNotificationEvent> getUserNotificationEvents(long userId, boolean archived)
          Deprecated. As of 6.2.0 getArchivedUserNotificationEvents(long, boolean)
 List<UserNotificationEvent> getUserNotificationEvents(long userId, boolean archived, int start, int end)
          Deprecated. As of 6.2.0 getArchivedUserNotificationEvents(long, boolean, int, int)
 List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType)
           
 List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end)
           
 List<UserNotificationEvent> getUserNotificationEvents(long userId, int deliveryType, int start, int end)
           
 int getUserNotificationEventsCount()
          Returns the number of user notification events.
 int getUserNotificationEventsCount(long userId)
           
 int getUserNotificationEventsCount(long userId, boolean archived)
          Deprecated. As of 6.2.0 getArchivedUserNotificationEventsCount(long, boolean)
 int getUserNotificationEventsCount(long userId, int deliveryType)
           
 int getUserNotificationEventsCount(long userId, String type, int deliveryType, boolean archived)
           
 UserNotificationEventLocalService getWrappedService()
           
 UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, boolean actionRequired, JSONObject notificationEventJSONObject)
           
 UserNotificationEvent sendUserNotificationEvents(long userId, String portletId, int deliveryType, JSONObject notificationEventJSONObject)
           
 void setWrappedService(UserNotificationEventLocalService userNotificationEventLocalService)
           
 UserNotificationEvent updateUserNotificationEvent(String uuid, long companyId, boolean archive)
           
 UserNotificationEvent updateUserNotificationEvent(UserNotificationEvent userNotificationEvent)
          Updates the user notification event in the database or adds it if it does not yet exist.
 List<UserNotificationEvent> 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
 

Constructor Detail

UserNotificationEventLocalServiceWrapper

public UserNotificationEventLocalServiceWrapper(UserNotificationEventLocalService userNotificationEventLocalService)
Method Detail

addUserNotificationEvent

public UserNotificationEvent addUserNotificationEvent(long userId,
                                                      boolean actionRequired,
                                                      NotificationEvent notificationEvent)
                                               throws PortalException
Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
Throws:
PortalException

addUserNotificationEvent

public UserNotificationEvent addUserNotificationEvent(long userId,
                                                      NotificationEvent notificationEvent)
                                               throws PortalException
Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
Throws:
PortalException

addUserNotificationEvent

@Deprecated
public UserNotificationEvent addUserNotificationEvent(long userId,
                                                                 String type,
                                                                 long timestamp,
                                                                 long deliverBy,
                                                                 String payload,
                                                                 boolean archived,
                                                                 ServiceContext serviceContext)
                                               throws PortalException
Deprecated. As of 7.0.0 addUserNotificationEvent(long, String, long, int, long, String, boolean, ServiceContext)

Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
Throws:
PortalException

addUserNotificationEvent

public UserNotificationEvent addUserNotificationEvent(long userId,
                                                      String type,
                                                      long timestamp,
                                                      int deliveryType,
                                                      long deliverBy,
                                                      String payload,
                                                      boolean actionRequired,
                                                      boolean archived,
                                                      ServiceContext serviceContext)
                                               throws PortalException
Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
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 interface UserNotificationEventLocalService
Throws:
PortalException

addUserNotificationEvent

public UserNotificationEvent addUserNotificationEvent(UserNotificationEvent userNotificationEvent)
Adds the user notification event to the database. Also notifies the appropriate model listeners.

Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
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 interface UserNotificationEventLocalService
Throws:
PortalException

createUserNotificationEvent

public UserNotificationEvent createUserNotificationEvent(long userNotificationEventId)
Creates a new user notification event with the primary key. Does not add the user notification event to the database.

Specified by:
createUserNotificationEvent in interface UserNotificationEventLocalService
Parameters:
userNotificationEventId - the primary key for the new user notification event
Returns:
the new user notification event

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface UserNotificationEventLocalService
Throws:
PortalException

deleteUserNotificationEvent

public UserNotificationEvent deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent)
Deletes the user notification event from the database. Also notifies the appropriate model listeners.

Specified by:
deleteUserNotificationEvent in interface UserNotificationEventLocalService
Parameters:
userNotificationEvent - the user notification event
Returns:
the user notification event that was removed

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.

Specified by:
deleteUserNotificationEvent in interface UserNotificationEventLocalService
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

public void deleteUserNotificationEvent(String uuid,
                                        long companyId)
Specified by:
deleteUserNotificationEvent in interface UserNotificationEventLocalService

deleteUserNotificationEvents

public void deleteUserNotificationEvents(Collection<String> uuids,
                                         long companyId)
Specified by:
deleteUserNotificationEvents in interface UserNotificationEventLocalService

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface UserNotificationEventLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface UserNotificationEventLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserNotificationEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface UserNotificationEventLocalService
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(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 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserNotificationEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface UserNotificationEventLocalService
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(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface UserNotificationEventLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface UserNotificationEventLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchUserNotificationEvent

public UserNotificationEvent fetchUserNotificationEvent(long userNotificationEventId)
Specified by:
fetchUserNotificationEvent in interface UserNotificationEventLocalService

fetchUserNotificationEventByUuidAndCompanyId

public UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid,
                                                                          long companyId)
Returns the user notification event with the matching UUID and company.

Specified by:
fetchUserNotificationEventByUuidAndCompanyId in interface UserNotificationEventLocalService
Parameters:
uuid - the user notification event's UUID
companyId - 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

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     boolean actionRequired,
                                                                     boolean archived)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     boolean actionRequired,
                                                                     boolean archived,
                                                                     int start,
                                                                     int end)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     boolean archived)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     boolean archived,
                                                                     int start,
                                                                     int end)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     int deliveryType,
                                                                     boolean actionRequired,
                                                                     boolean archived)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     int deliveryType,
                                                                     boolean actionRequired,
                                                                     boolean archived,
                                                                     int start,
                                                                     int end)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     int deliveryType,
                                                                     boolean archived)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEvents

public List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId,
                                                                     int deliveryType,
                                                                     boolean archived,
                                                                     int start,
                                                                     int end)
Specified by:
getArchivedUserNotificationEvents in interface UserNotificationEventLocalService

getArchivedUserNotificationEventsCount

public int getArchivedUserNotificationEventsCount(long userId,
                                                  boolean actionRequired,
                                                  boolean archived)
Specified by:
getArchivedUserNotificationEventsCount in interface UserNotificationEventLocalService

getArchivedUserNotificationEventsCount

public int getArchivedUserNotificationEventsCount(long userId,
                                                  boolean archived)
Specified by:
getArchivedUserNotificationEventsCount in interface UserNotificationEventLocalService

getArchivedUserNotificationEventsCount

public int getArchivedUserNotificationEventsCount(long userId,
                                                  int deliveryType,
                                                  boolean actionRequired,
                                                  boolean archived)
Specified by:
getArchivedUserNotificationEventsCount in interface UserNotificationEventLocalService

getArchivedUserNotificationEventsCount

public int getArchivedUserNotificationEventsCount(long userId,
                                                  int deliveryType,
                                                  boolean archived)
Specified by:
getArchivedUserNotificationEventsCount in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      boolean delivered)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      boolean delivered,
                                                                      boolean actionRequired)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      boolean delivered,
                                                                      boolean actionRequired,
                                                                      int start,
                                                                      int end)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      boolean delivered,
                                                                      int start,
                                                                      int end)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      int deliveryType,
                                                                      boolean delivered)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      int deliveryType,
                                                                      boolean delivered,
                                                                      boolean actionRequired)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      int deliveryType,
                                                                      boolean delivered,
                                                                      boolean actionRequired,
                                                                      int start,
                                                                      int end)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEvents

public List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId,
                                                                      int deliveryType,
                                                                      boolean delivered,
                                                                      int start,
                                                                      int end)
Specified by:
getDeliveredUserNotificationEvents in interface UserNotificationEventLocalService

getDeliveredUserNotificationEventsCount

public int getDeliveredUserNotificationEventsCount(long userId,
                                                   boolean delivered)
Specified by:
getDeliveredUserNotificationEventsCount in interface UserNotificationEventLocalService

getDeliveredUserNotificationEventsCount

public int getDeliveredUserNotificationEventsCount(long userId,
                                                   boolean delivered,
                                                   boolean actionRequired)
Specified by:
getDeliveredUserNotificationEventsCount in interface UserNotificationEventLocalService

getDeliveredUserNotificationEventsCount

public int getDeliveredUserNotificationEventsCount(long userId,
                                                   int deliveryType,
                                                   boolean delivered)
Specified by:
getDeliveredUserNotificationEventsCount in interface UserNotificationEventLocalService

getDeliveredUserNotificationEventsCount

public int getDeliveredUserNotificationEventsCount(long userId,
                                                   int deliveryType,
                                                   boolean delivered,
                                                   boolean actionRequired)
Specified by:
getDeliveredUserNotificationEventsCount in interface UserNotificationEventLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface UserNotificationEventLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface UserNotificationEventLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface UserNotificationEventLocalService
Throws:
PortalException

getTypeNotificationEvents

public List<UserNotificationEvent> getTypeNotificationEvents(String type)
Specified by:
getTypeNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvent

public UserNotificationEvent getUserNotificationEvent(long userNotificationEventId)
                                               throws PortalException
Returns the user notification event with the primary key.

Specified by:
getUserNotificationEvent in interface UserNotificationEventLocalService
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 UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(String uuid,
                                                                        long companyId)
                                                                 throws PortalException
Returns the user notification event with the matching UUID and company.

Specified by:
getUserNotificationEventByUuidAndCompanyId in interface UserNotificationEventLocalService
Parameters:
uuid - the user notification event's UUID
companyId - 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

public 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 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserNotificationEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService
Parameters:
start - the lower bound of the range of user notification events
end - the upper bound of the range of user notification events (not inclusive)
Returns:
the range of user notification events

getUserNotificationEvents

public List<UserNotificationEvent> getUserNotificationEvents(long userId)
Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvents

@Deprecated
public List<UserNotificationEvent> getUserNotificationEvents(long userId,
                                                                        boolean archived)
Deprecated. As of 6.2.0 getArchivedUserNotificationEvents(long, boolean)

Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvents

@Deprecated
public List<UserNotificationEvent> getUserNotificationEvents(long userId,
                                                                        boolean archived,
                                                                        int start,
                                                                        int end)
Deprecated. As of 6.2.0 getArchivedUserNotificationEvents(long, boolean, int, int)

Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvents

public List<UserNotificationEvent> getUserNotificationEvents(long userId,
                                                             int deliveryType)
Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvents

public List<UserNotificationEvent> getUserNotificationEvents(long userId,
                                                             int deliveryType,
                                                             int start,
                                                             int end)
Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEvents

public List<UserNotificationEvent> getUserNotificationEvents(long userId,
                                                             int start,
                                                             int end)
Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService

getUserNotificationEventsCount

public int getUserNotificationEventsCount()
Returns the number of user notification events.

Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService
Returns:
the number of user notification events

getUserNotificationEventsCount

public int getUserNotificationEventsCount(long userId)
Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService

getUserNotificationEventsCount

@Deprecated
public int getUserNotificationEventsCount(long userId,
                                                     boolean archived)
Deprecated. As of 6.2.0 getArchivedUserNotificationEventsCount(long, boolean)

Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService

getUserNotificationEventsCount

public int getUserNotificationEventsCount(long userId,
                                          int deliveryType)
Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService

getUserNotificationEventsCount

public int getUserNotificationEventsCount(long userId,
                                          String type,
                                          int deliveryType,
                                          boolean archived)
Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService

sendUserNotificationEvents

public UserNotificationEvent sendUserNotificationEvents(long userId,
                                                        String portletId,
                                                        int deliveryType,
                                                        boolean actionRequired,
                                                        JSONObject notificationEventJSONObject)
                                                 throws PortalException
Specified by:
sendUserNotificationEvents in interface UserNotificationEventLocalService
Throws:
PortalException

sendUserNotificationEvents

public UserNotificationEvent sendUserNotificationEvents(long userId,
                                                        String portletId,
                                                        int deliveryType,
                                                        JSONObject notificationEventJSONObject)
                                                 throws PortalException
Specified by:
sendUserNotificationEvents in interface UserNotificationEventLocalService
Throws:
PortalException

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.

Specified by:
updateUserNotificationEvent in interface UserNotificationEventLocalService
Parameters:
userNotificationEvent - the user notification event
Returns:
the user notification event that was updated

updateUserNotificationEvent

public UserNotificationEvent updateUserNotificationEvent(String uuid,
                                                         long companyId,
                                                         boolean archive)
Specified by:
updateUserNotificationEvent in interface UserNotificationEventLocalService

updateUserNotificationEvents

public List<UserNotificationEvent> updateUserNotificationEvents(Collection<String> uuids,
                                                                long companyId,
                                                                boolean archive)
Specified by:
updateUserNotificationEvents in interface UserNotificationEventLocalService

getWrappedService

public UserNotificationEventLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<UserNotificationEventLocalService>

setWrappedService

public void setWrappedService(UserNotificationEventLocalService userNotificationEventLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<UserNotificationEventLocalService>

Liferay 7.0-ce-b4