org.opengts.db
Class Audit

java.lang.Object
  extended by org.opengts.db.Audit

public class Audit
extends java.lang.Object


Nested Class Summary
static interface Audit.AuditHandler
           
 
Field Summary
static int AUDIT_DEVICE_COMMAND
           
static int AUDIT_EMAIL_NOTIFY
           
static int AUDIT_LOGIN_FAILED
           
static int AUDIT_LOGIN_OK
           
static int AUDIT_LOGOUT
           
static int AUDIT_SMS_NOTIFY
           
static int AUDIT_UNKNOWN
           
static int GROUP_DB
           
static int GROUP_DEVCMD
           
static int GROUP_EMAIL
           
static int GROUP_LOGIN
           
static int GROUP_SMS
           
static int GROUP_UNKNOWN
           
 
Constructor Summary
Audit()
           
 
Method Summary
static void AddAudit(java.lang.String accountID, long auditTime, int auditCode, java.lang.String userID, java.lang.String deviceID, java.lang.String ipAddress, java.lang.String privateLabelName, java.lang.String notes)
           
static void deviceCommand(java.lang.String acctID, java.lang.String userID, java.lang.String devID, java.lang.String ipAddr, java.lang.String cmdStr)
           
static java.lang.String GetAuditAbbrev(int auditCode)
           
static java.lang.String GetAuditName(int auditCode)
           
static void reportEmail(java.lang.String acctID, java.lang.String userID, java.lang.String reportID, java.lang.String toEMail)
           
static void ruleEmailNotification(java.lang.String acctID, java.lang.String devID, java.lang.String ruleID, java.lang.String toEMail, java.lang.String subject, java.lang.String body)
          Audit rule-trigger Email notifications
static void ruleSmsNotification(java.lang.String acctID, java.lang.String devID, java.lang.String ruleID, java.lang.String toSMS, java.lang.String message)
          Audit rule-trigger SMS notifications
static void SetAuditHandler(Audit.AuditHandler sah)
           
static void userLoginFailed(java.lang.String acctID, java.lang.String userID, java.lang.String ipAddr, java.lang.String bplName)
           
static void userLoginOK(java.lang.String acctID, java.lang.String userID, java.lang.String ipAddr, java.lang.String bplName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_UNKNOWN

public static final int GROUP_UNKNOWN
See Also:
Constant Field Values

GROUP_LOGIN

public static final int GROUP_LOGIN
See Also:
Constant Field Values

GROUP_EMAIL

public static final int GROUP_EMAIL
See Also:
Constant Field Values

GROUP_DB

public static final int GROUP_DB
See Also:
Constant Field Values

GROUP_SMS

public static final int GROUP_SMS
See Also:
Constant Field Values

GROUP_DEVCMD

public static final int GROUP_DEVCMD
See Also:
Constant Field Values

AUDIT_UNKNOWN

public static final int AUDIT_UNKNOWN
See Also:
Constant Field Values

AUDIT_LOGIN_OK

public static final int AUDIT_LOGIN_OK
See Also:
Constant Field Values

AUDIT_LOGIN_FAILED

public static final int AUDIT_LOGIN_FAILED
See Also:
Constant Field Values

AUDIT_LOGOUT

public static final int AUDIT_LOGOUT
See Also:
Constant Field Values

AUDIT_EMAIL_NOTIFY

public static final int AUDIT_EMAIL_NOTIFY
See Also:
Constant Field Values

AUDIT_SMS_NOTIFY

public static final int AUDIT_SMS_NOTIFY
See Also:
Constant Field Values

AUDIT_DEVICE_COMMAND

public static final int AUDIT_DEVICE_COMMAND
See Also:
Constant Field Values
Constructor Detail

Audit

public Audit()
Method Detail

GetAuditAbbrev

public static java.lang.String GetAuditAbbrev(int auditCode)

GetAuditName

public static java.lang.String GetAuditName(int auditCode)

SetAuditHandler

public static void SetAuditHandler(Audit.AuditHandler sah)

AddAudit

public static void AddAudit(java.lang.String accountID,
                            long auditTime,
                            int auditCode,
                            java.lang.String userID,
                            java.lang.String deviceID,
                            java.lang.String ipAddress,
                            java.lang.String privateLabelName,
                            java.lang.String notes)

userLoginOK

public static void userLoginOK(java.lang.String acctID,
                               java.lang.String userID,
                               java.lang.String ipAddr,
                               java.lang.String bplName)

userLoginFailed

public static void userLoginFailed(java.lang.String acctID,
                                   java.lang.String userID,
                                   java.lang.String ipAddr,
                                   java.lang.String bplName)

ruleEmailNotification

public static void ruleEmailNotification(java.lang.String acctID,
                                         java.lang.String devID,
                                         java.lang.String ruleID,
                                         java.lang.String toEMail,
                                         java.lang.String subject,
                                         java.lang.String body)
Audit rule-trigger Email notifications


ruleSmsNotification

public static void ruleSmsNotification(java.lang.String acctID,
                                       java.lang.String devID,
                                       java.lang.String ruleID,
                                       java.lang.String toSMS,
                                       java.lang.String message)
Audit rule-trigger SMS notifications


reportEmail

public static void reportEmail(java.lang.String acctID,
                               java.lang.String userID,
                               java.lang.String reportID,
                               java.lang.String toEMail)

deviceCommand

public static void deviceCommand(java.lang.String acctID,
                                 java.lang.String userID,
                                 java.lang.String devID,
                                 java.lang.String ipAddr,
                                 java.lang.String cmdStr)