org.apache.lokahi.core.api.alert
Class AlertModel

java.lang.Object
  extended by org.apache.lokahi.core.common.interfaces.LokahiModel
      extended by org.apache.lokahi.core.api.alert.AlertModel

public class AlertModel
extends LokahiModel

Version:
$Id: AlertModel.java,v 1.5 2006/03/07 20:18:56 drtobes Exp $
Author:
Stephen Toback

Field Summary
 
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jp, tpe
 
Constructor Summary
AlertModel()
           
 
Method Summary
 void addAlert(User u, AlertDAO fi, Function f)
           
 void deleteAlert(User u, AlertDAO fi, Function f)
           
 TMCDao getObject(int id)
           
 java.util.Collection<TMCDao> getObjects()
           
 void updateAlert(User u, AlertDAO fi, Function f)
           
 
Methods inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jpInit, jpInit, jpInit, jpInit, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertModel

public AlertModel()
Method Detail

addAlert

public void addAlert(User u,
                     AlertDAO fi,
                     Function f)
              throws AuthorizationException,
                     TMCIllegalArgumentException,
                     java.sql.SQLException,
                     java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

deleteAlert

public void deleteAlert(User u,
                        AlertDAO fi,
                        Function f)
                 throws java.sql.SQLException,
                        AuthorizationException,
                        TMCIllegalArgumentException
Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException

updateAlert

public void updateAlert(User u,
                        AlertDAO fi,
                        Function f)
                 throws AuthorizationException,
                        TMCIllegalArgumentException,
                        java.sql.SQLException,
                        java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

getObjects

public java.util.Collection<TMCDao> getObjects()
                                        throws java.sql.SQLException
Specified by:
getObjects in class LokahiModel
Throws:
java.sql.SQLException

getObject

public TMCDao getObject(int id)
                 throws java.sql.SQLException
Specified by:
getObject in class LokahiModel
Throws:
java.sql.SQLException