|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsteve.pums.assess.process.LoggerService
public class LoggerService
Used for events logging and retrieval in the SUMS database
Constructor Summary | |
---|---|
LoggerService(java.sql.Connection conn)
Creates a new instance of LoggerService |
Method Summary | |
---|---|
java.util.Vector |
getAudit(int projectid)
Used for the retrieval of events associated with a particular project |
void |
log(int user,
int project,
java.lang.String item,
java.lang.String oldVal,
java.lang.String newVal)
Inserts the log of a new event in the SUMS database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggerService(java.sql.Connection conn)
conn
- Connection to the SUMS databaseMethod Detail |
---|
public void log(int user, int project, java.lang.String item, java.lang.String oldVal, java.lang.String newVal) throws java.sql.SQLException, java.text.ParseException
user
- ID of the user triggering the eventproject
- ID of the project the event relates toitem
- description of the affected itemoldVal
- original value of the affected itemnewVal
- new value of the affected item
java.sql.SQLException
- as a result of SQL errors
java.text.ParseException
- as a result of date parsing errorpublic java.util.Vector getAudit(int projectid) throws java.sql.SQLException
projectid
- ID of the project to retrieve events for
java.sql.SQLException
- in the event of SQL errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |