|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.UserNotificationEventLocalServiceUtil
public class UserNotificationEventLocalServiceUtil
The utility for the user notification event local service. This utility wraps UserNotificationEventLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
This is a local service. 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.
UserNotificationEventLocalService
,
UserNotificationEventLocalServiceBaseImpl
,
UserNotificationEventLocalServiceImpl
Constructor Summary | |
---|---|
UserNotificationEventLocalServiceUtil()
|
Method Summary | |
---|---|
static UserNotificationEvent |
addUserNotificationEvent(long userId,
NotificationEvent notificationEvent)
|
static UserNotificationEvent |
addUserNotificationEvent(long userId,
String type,
long timestamp,
long deliverBy,
String payload,
boolean archived,
ServiceContext serviceContext)
|
static UserNotificationEvent |
addUserNotificationEvent(UserNotificationEvent userNotificationEvent)
Adds the user notification event to the database. |
static List<UserNotificationEvent> |
addUserNotificationEvents(long userId,
Collection<NotificationEvent> notificationEvents)
|
static UserNotificationEvent |
createUserNotificationEvent(long userNotificationEventId)
Creates a new user notification event with the primary key. |
static UserNotificationEvent |
deleteUserNotificationEvent(long userNotificationEventId)
Deletes the user notification event with the primary key from the database. |
static void |
deleteUserNotificationEvent(String uuid)
|
static UserNotificationEvent |
deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent)
Deletes the user notification event from the database. |
static void |
deleteUserNotificationEvents(Collection<String> uuids)
|
static DynamicQuery |
dynamicQuery()
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static 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. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
static UserNotificationEvent |
fetchUserNotificationEvent(long userNotificationEventId)
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static UserNotificationEventLocalService |
getService()
|
static UserNotificationEvent |
getUserNotificationEvent(long userNotificationEventId)
Returns the user notification event with the primary key. |
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,
boolean archived)
|
static List<UserNotificationEvent> |
getUserNotificationEvents(long userId,
boolean archived,
int start,
int end)
|
static List<UserNotificationEvent> |
getUserNotificationEvents(long userId,
int start,
int end)
|
static int |
getUserNotificationEventsCount()
Returns the number of user notification events. |
static int |
getUserNotificationEventsCount(long userId)
|
static int |
getUserNotificationEventsCount(long userId,
boolean archived)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(UserNotificationEventLocalService service)
Deprecated. |
static UserNotificationEvent |
updateUserNotificationEvent(String uuid,
boolean archive)
|
static UserNotificationEvent |
updateUserNotificationEvent(UserNotificationEvent userNotificationEvent)
Updates the user notification event in the database or adds it if it does not yet exist. |
static UserNotificationEvent |
updateUserNotificationEvent(UserNotificationEvent userNotificationEvent,
boolean merge)
Updates the user notification event in the database or adds it if it does not yet exist. |
static List<UserNotificationEvent> |
updateUserNotificationEvents(Collection<String> uuids,
boolean archive)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserNotificationEventLocalServiceUtil()
Method Detail |
---|
public static UserNotificationEvent addUserNotificationEvent(UserNotificationEvent userNotificationEvent) throws SystemException
userNotificationEvent
- the user notification event
SystemException
- if a system exception occurredpublic static UserNotificationEvent createUserNotificationEvent(long userNotificationEventId)
userNotificationEventId
- the primary key for the new user notification event
public static UserNotificationEvent deleteUserNotificationEvent(long userNotificationEventId) throws PortalException, SystemException
userNotificationEventId
- the primary key of the user notification event
PortalException
- if a user notification event with the primary key could not be found
SystemException
- if a system exception occurredpublic static UserNotificationEvent deleteUserNotificationEvent(UserNotificationEvent userNotificationEvent) throws SystemException
userNotificationEvent
- the user notification event
SystemException
- if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static UserNotificationEvent fetchUserNotificationEvent(long userNotificationEventId) throws SystemException
SystemException
public static UserNotificationEvent getUserNotificationEvent(long userNotificationEventId) throws PortalException, SystemException
userNotificationEventId
- the primary key of the user notification event
PortalException
- if a user notification event with the primary key could not be found
SystemException
- if a system exception occurredpublic static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
PortalException
SystemException
public static List<UserNotificationEvent> getUserNotificationEvents(int start, int end) throws SystemException
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.
start
- the lower bound of the range of user notification eventsend
- the upper bound of the range of user notification events (not inclusive)
SystemException
- if a system exception occurredpublic static int getUserNotificationEventsCount() throws SystemException
SystemException
- if a system exception occurredpublic static UserNotificationEvent updateUserNotificationEvent(UserNotificationEvent userNotificationEvent) throws SystemException
userNotificationEvent
- the user notification event
SystemException
- if a system exception occurredpublic static UserNotificationEvent updateUserNotificationEvent(UserNotificationEvent userNotificationEvent, boolean merge) throws SystemException
userNotificationEvent
- the user notification eventmerge
- whether to merge the user notification event with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanpublic static UserNotificationEvent addUserNotificationEvent(long userId, NotificationEvent notificationEvent) throws PortalException, SystemException
PortalException
SystemException
public static UserNotificationEvent addUserNotificationEvent(long userId, String type, long timestamp, long deliverBy, String payload, boolean archived, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static List<UserNotificationEvent> addUserNotificationEvents(long userId, Collection<NotificationEvent> notificationEvents) throws PortalException, SystemException
PortalException
SystemException
public static void deleteUserNotificationEvent(String uuid) throws SystemException
SystemException
public static void deleteUserNotificationEvents(Collection<String> uuids) throws SystemException
SystemException
public static List<UserNotificationEvent> getUserNotificationEvents(long userId) throws SystemException
SystemException
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, boolean archived) throws SystemException
SystemException
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, boolean archived, int start, int end) throws SystemException
SystemException
public static List<UserNotificationEvent> getUserNotificationEvents(long userId, int start, int end) throws SystemException
SystemException
public static int getUserNotificationEventsCount(long userId) throws SystemException
SystemException
public static int getUserNotificationEventsCount(long userId, boolean archived) throws SystemException
SystemException
public static UserNotificationEvent updateUserNotificationEvent(String uuid, boolean archive) throws SystemException
SystemException
public static List<UserNotificationEvent> updateUserNotificationEvents(Collection<String> uuids, boolean archive) throws SystemException
SystemException
public static UserNotificationEventLocalService getService()
public void setService(UserNotificationEventLocalService service)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |