public class AlertingDatabaseService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INSERT_ALL_ALERT_FIELDS |
static java.lang.String |
SELECT_ALL_ALERT_FIELDS |
Constructor and Description |
---|
AlertingDatabaseService() |
AlertingDatabaseService(java.lang.String connectionString) |
AlertingDatabaseService(java.lang.String connectionString,
java.lang.String connectionLogin,
java.lang.String connectionPassword) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
connect() |
void |
deleteAlert(java.lang.String key,
java.lang.String user) |
void |
deleteAllAlerts() |
void |
disconnect() |
void |
editAlert(AlertDesc alert)
Edits the alert based on its *key* (NOT id)
|
protected void |
fetchGroupsInfo(java.util.List<AlertDesc> list) |
protected void |
fetchLastRunInfo(java.util.List<AlertDesc> list) |
AlertDesc |
getAlert(long id) |
AlertDesc |
getAlert(java.lang.String key) |
java.util.List<AlertDesc> |
getAllGlobalAlerts(java.lang.String group) |
java.util.List<AlertDesc> |
getAllGroupAlerts(java.lang.String group) |
java.util.Map<java.lang.String,java.util.List<AlertDesc>> |
getAllGroupAlertsPerUser(java.lang.String group) |
java.util.List<AlertDesc> |
getAllGroupGlobalAlerts(java.lang.String group) |
java.util.List<AlertDesc> |
getAllUserAlerts(java.lang.String user,
java.lang.String group)
group = null : all groups
|
protected com.exalead.cloudview.alerting.AlertingDatabaseService.DB |
getDBTypeFromConnectionString(java.lang.String connectionString) |
long |
getGroupAlertsCount(java.lang.String group) |
void |
newAlert(AlertDesc alert)
Fills the id on the alert
|
protected java.util.List<AlertDesc> |
resultSetToAlertDescList(java.sql.ResultSet rs) |
protected java.util.List<AlertDesc> |
resultSetToAlertDescListWithLastInfoAndGroups(java.sql.ResultSet rs) |
void |
rollback() |
long |
storeAlertOccurence(ScheduledAlertOccurrence occur,
java.lang.String format,
byte[] data) |
long |
storeRTAlertOccurence(RTAlertOccurrence occur,
java.lang.String format,
java.lang.String data) |
public static java.lang.String SELECT_ALL_ALERT_FIELDS
public static java.lang.String INSERT_ALL_ALERT_FIELDS
public AlertingDatabaseService()
public AlertingDatabaseService(java.lang.String connectionString)
public AlertingDatabaseService(java.lang.String connectionString, java.lang.String connectionLogin, java.lang.String connectionPassword)
protected com.exalead.cloudview.alerting.AlertingDatabaseService.DB getDBTypeFromConnectionString(java.lang.String connectionString)
public void connect() throws java.sql.SQLException
java.sql.SQLException
public void disconnect() throws java.sql.SQLException
java.sql.SQLException
public void commit() throws java.sql.SQLException
java.sql.SQLException
public void rollback() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AlertDesc> getAllGroupAlerts(java.lang.String group) throws java.sql.SQLException
java.sql.SQLException
public long getGroupAlertsCount(java.lang.String group) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AlertDesc> getAllUserAlerts(java.lang.String user, java.lang.String group) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AlertDesc> getAllGlobalAlerts(java.lang.String group) throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.String,java.util.List<AlertDesc>> getAllGroupAlertsPerUser(java.lang.String group) throws java.lang.Exception
java.lang.Exception
public java.util.List<AlertDesc> getAllGroupGlobalAlerts(java.lang.String group) throws java.lang.Exception
java.lang.Exception
public void newAlert(AlertDesc alert) throws java.sql.SQLException
java.sql.SQLException
public AlertDesc getAlert(java.lang.String key) throws java.sql.SQLException
java.sql.SQLException
public AlertDesc getAlert(long id) throws java.sql.SQLException
java.sql.SQLException
public void editAlert(AlertDesc alert) throws java.sql.SQLException
java.sql.SQLException
public void deleteAlert(java.lang.String key, java.lang.String user) throws java.sql.SQLException
java.sql.SQLException
public void deleteAllAlerts() throws java.sql.SQLException
java.sql.SQLException
public long storeAlertOccurence(ScheduledAlertOccurrence occur, java.lang.String format, byte[] data) throws java.sql.SQLException
java.sql.SQLException
public long storeRTAlertOccurence(RTAlertOccurrence occur, java.lang.String format, java.lang.String data) throws java.sql.SQLException
java.sql.SQLException
protected java.util.List<AlertDesc> resultSetToAlertDescListWithLastInfoAndGroups(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
protected java.util.List<AlertDesc> resultSetToAlertDescList(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
protected void fetchGroupsInfo(java.util.List<AlertDesc> list) throws java.sql.SQLException
java.sql.SQLException
protected void fetchLastRunInfo(java.util.List<AlertDesc> list) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.