Liferay 6.2-ce-ga5

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
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
UserNotificationEventLocalServiceWrapper(UserNotificationEventLocalService userNotificationEventLocalService)
           
 
Method Summary
 UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent)
           
 UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, long deliverBy, String payload, boolean archived, ServiceContext 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.
 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()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator 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 that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 UserNotificationEvent fetchUserNotificationEvent(long userNotificationEventId)
           
 UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid, long companyId)
          Returns the user notification event with the matching UUID and company.
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived)
           
 List<UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean archived, int start, int end)
           
 int getArchivedUserNotificationEventsCount(long userId, boolean archived)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered)
           
 List<UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, int start, int end)
           
 int getDeliveredUserNotificationEventsCount(long userId, boolean delivered)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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 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)
 UserNotificationEventLocalService getWrappedService()
           
 UserNotificationEventLocalService getWrappedUserNotificationEventLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedService(UserNotificationEventLocalService userNotificationEventLocalService)
           
 void setWrappedUserNotificationEventLocalService(UserNotificationEventLocalService userNotificationEventLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portal.service.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(UserNotificationEvent userNotificationEvent)
                                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

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

deleteUserNotificationEvent

public UserNotificationEvent deleteUserNotificationEvent(long userNotificationEventId)
                                                  throws PortalException,
                                                         SystemException
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
SystemException - if a system exception occurred

deleteUserNotificationEvent

public UserNotificationEvent deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent)
                                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface UserNotificationEventLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
                       throws SystemException
Returns the number of rows that match 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 that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchUserNotificationEvent

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

fetchUserNotificationEventByUuidAndCompanyId

public UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(String uuid,
                                                                          long companyId)
                                                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

getUserNotificationEvent

public UserNotificationEvent getUserNotificationEvent(long userNotificationEventId)
                                               throws PortalException,
                                                      SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getUserNotificationEventByUuidAndCompanyId

public UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(String uuid,
                                                                        long companyId)
                                                                 throws PortalException,
                                                                        SystemException
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
SystemException - if a system exception occurred

getUserNotificationEvents

public List<UserNotificationEvent> getUserNotificationEvents(int start,
                                                             int end)
                                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

getUserNotificationEventsCount

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

Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService
Returns:
the number of user notification events
Throws:
SystemException - if a system exception occurred

updateUserNotificationEvent

public UserNotificationEvent updateUserNotificationEvent(UserNotificationEvent userNotificationEvent)
                                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface UserNotificationEventLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface UserNotificationEventLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addUserNotificationEvent

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

addUserNotificationEvent

public UserNotificationEvent addUserNotificationEvent(long userId,
                                                      String type,
                                                      long timestamp,
                                                      long deliverBy,
                                                      String payload,
                                                      boolean archived,
                                                      ServiceContext serviceContext)
                                               throws PortalException,
                                                      SystemException
Specified by:
addUserNotificationEvent in interface UserNotificationEventLocalService
Throws:
PortalException
SystemException

addUserNotificationEvents

public List<UserNotificationEvent> addUserNotificationEvents(long userId,
                                                             Collection<NotificationEvent> notificationEvents)
                                                      throws PortalException,
                                                             SystemException
Specified by:
addUserNotificationEvents in interface UserNotificationEventLocalService
Throws:
PortalException
SystemException

deleteUserNotificationEvent

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

deleteUserNotificationEvents

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

getArchivedUserNotificationEvents

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

getArchivedUserNotificationEvents

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

getArchivedUserNotificationEventsCount

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

getDeliveredUserNotificationEvents

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

getDeliveredUserNotificationEvents

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

getDeliveredUserNotificationEventsCount

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

getUserNotificationEvents

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

getUserNotificationEvents

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

Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService
Throws:
SystemException

getUserNotificationEvents

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

Specified by:
getUserNotificationEvents in interface UserNotificationEventLocalService
Throws:
SystemException

getUserNotificationEvents

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

getUserNotificationEventsCount

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

getUserNotificationEventsCount

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

Specified by:
getUserNotificationEventsCount in interface UserNotificationEventLocalService
Throws:
SystemException

updateUserNotificationEvent

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

updateUserNotificationEvents

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

getWrappedUserNotificationEventLocalService

public UserNotificationEventLocalService getWrappedUserNotificationEventLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedUserNotificationEventLocalService

public void setWrappedUserNotificationEventLocalService(UserNotificationEventLocalService userNotificationEventLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portal.service.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 6.2-ce-ga5