it.eng.spagobi.bo.dao.hibernate
Class EventLogDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.EventLogDAOHibImpl
All Implemented Interfaces:
IEventLogDAO

public class EventLogDAOHibImpl
extends AbstractHibernateDAO
implements IEventLogDAO

Author:
Gioia

Constructor Summary
EventLogDAOHibImpl()
           
 
Method Summary
 void eraseEventLog(EventLog eventLog)
          Erase an event log.
 void eraseEventsLogByUser(java.lang.String user)
          Erase all event logs registered by the specificated user.
 java.lang.Integer insertEventLog(EventLog eventLog)
          Register a new EventLog.
 EventLog loadEventLogById(java.lang.Integer id)
          Loads an event log given its id
 java.util.List loadEventsLogByUser(it.eng.spago.security.IEngUserProfile profile)
          Loads the list of all events logs associated to the user profile at input
 
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogDAOHibImpl

public EventLogDAOHibImpl()
Method Detail

loadEventLogById

public EventLog loadEventLogById(java.lang.Integer id)
                          throws it.eng.spago.error.EMFUserError
Description copied from interface: IEventLogDAO
Loads an event log given its id

Specified by:
loadEventLogById in interface IEventLogDAO
Parameters:
id - The Integer representing the event id
Returns:
A EventLog with the id passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEventLogDAO.loadEventLogById(Integer)

loadEventsLogByUser

public java.util.List loadEventsLogByUser(it.eng.spago.security.IEngUserProfile profile)
                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: IEventLogDAO
Loads the list of all events logs associated to the user profile at input

Specified by:
loadEventsLogByUser in interface IEventLogDAO
Parameters:
profile - The user profile
Returns:
A List of EventLog containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEventLogDAO.loadEventsLogByUser(it.eng.spago.security.IEngUserProfile)

insertEventLog

public java.lang.Integer insertEventLog(EventLog eventLog)
                                 throws it.eng.spago.error.EMFUserError
Description copied from interface: IEventLogDAO
Register a new EventLog.

Specified by:
insertEventLog in interface IEventLogDAO
Returns:
the newly created event unique identifier
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEventLogDAO.insertEventLog(it.eng.spagobi.bo.EventLog)

eraseEventLog

public void eraseEventLog(EventLog eventLog)
                   throws it.eng.spago.error.EMFUserError
Description copied from interface: IEventLogDAO
Erase an event log.

Specified by:
eraseEventLog in interface IEventLogDAO
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEventLogDAO.eraseEventLog(it.eng.spagobi.bo.EventLog)

eraseEventsLogByUser

public void eraseEventsLogByUser(java.lang.String user)
                          throws it.eng.spago.error.EMFUserError
Description copied from interface: IEventLogDAO
Erase all event logs registered by the specificated user.

Specified by:
eraseEventsLogByUser in interface IEventLogDAO
Parameters:
user - The user who registered the events
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEventLogDAO.eraseEventsLogByUser(String)