Package org.cyclos.impl.messaging
Interface AlertServiceLocal
-
- All Superinterfaces:
AlertService,Service
public interface AlertServiceLocal extends AlertService
Service interface for alerts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountSystemAlerts(Date since)Counts system alerts generated since the given time.intcountUserAlerts(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 network.SystemAlertcustom(String message)Creates a new custom system alert in the current networkUserAlertcustom(User user, String message)Creates a new custom user 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
int 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
int 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. Might skip the alert and return null ifSystemAlertType.getMinMinutes()is not null, an alert of the same type already exists in this network and is newer than this number of minutes.
-
create
UserAlert create(User user, UserAlertType type, Object... arguments)
Creates a new user alert
-
custom
SystemAlert custom(String message)
Creates a new custom system alert in the current network
-
custom
UserAlert custom(User user, String message)
Creates a new custom user alert in the current network
-
-