Package org.cyclos.impl.messaging
Interface AlertServiceLocal
-
- All Superinterfaces:
AlertService,Service
- All Known Implementing Classes:
AlertServiceImpl
public interface AlertServiceLocal extends AlertService
Service interface for alerts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegercountSystemAlerts(Date since)Counts system alerts generated since the given time.IntegercountUserAlerts(Date since)Count every user alert generated since the given time.SystemAlertcreate(Network network, SystemAlertType type, Object... arguments)Creates a new system alert in the given networkUserAlertcreate(User user, UserAlertType type, Object... arguments)Creates a new user alertSystemAlertcreate(SystemAlertType type, Object... arguments)Creates a new system alert in the current networkObject[]resolveArguments(Alert alert)Returns the resolved values for each argument.-
Methods inherited from interface org.cyclos.services.messaging.AlertService
getSystemSearchData, getUserSearchData, searchSystem, searchUser
-
-
-
-
Method Detail
-
countSystemAlerts
Integer countSystemAlerts(Date since)
Counts system alerts generated since the given time. Iftimeis null, all events are counted. Only non-removed (active) alerts are considered.
-
countUserAlerts
Integer countUserAlerts(Date since)
Count every user alert generated since the given time. Iftimeis null, all events are counted. Only non-removed (active) alerts are considered.
-
create
SystemAlert create(Network network, SystemAlertType type, Object... arguments)
Creates a new system alert in the given network
-
create
SystemAlert create(SystemAlertType type, Object... arguments)
Creates a new system alert in the current network
-
create
UserAlert create(User user, UserAlertType type, Object... arguments)
Creates a new user alert
-
-