it.eng.spagobi.bo.dao.audit
Class DbAuditImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.audit.DbAuditImpl
All Implemented Interfaces:
IAuditDAO

public class DbAuditImpl
extends AbstractHibernateDAO
implements IAuditDAO


Constructor Summary
DbAuditImpl()
           
 
Method Summary
 void eraseAudit(java.lang.Integer id)
          Erase the audit record with the specified id
 void insertAudit(SbiAudit aSbiAudit)
          Insert an audit record as per the SbiAudit object at input
 java.util.List loadAllAudits()
          Returns the list of all audit records
 SbiAudit loadAuditByID(java.lang.Integer id)
          Loads all detail information for an audit record identified by its id.
 java.util.List loadAuditsByDocumentLabel(java.lang.String documentLabel)
          Returns the list of all audit records relevant to the document with the specified label at input
 java.util.List loadAuditsByEngineLabel(java.lang.String engineLabel)
          Returns the list of all audit records relevant to the engine with the specified label at input
 java.util.List loadAuditsByUserName(java.lang.String userName)
          Returns the list of all audit records relevant to the user with the specified name at input
 void modifyAudit(SbiAudit aSbiAudit)
          Modify an audit record as per the SbiAudit object 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

DbAuditImpl

public DbAuditImpl()
Method Detail

insertAudit

public void insertAudit(SbiAudit aSbiAudit)
                 throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Insert an audit record as per the SbiAudit object at input

Specified by:
insertAudit in interface IAuditDAO
Parameters:
aSbiAudit - The SbiAudit object for the audit record to insert
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.IAuditDAO#insertAudit(it.eng.spagobi.bo.SbiAudit)

loadAllAudits

public java.util.List loadAllAudits()
                             throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Returns the list of all audit records

Specified by:
loadAllAudits in interface IAuditDAO
Returns:
A List object consisting of SbiAudit objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAuditByID

public SbiAudit loadAuditByID(java.lang.Integer id)
                       throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Loads all detail information for an audit record identified by its id. All these information, achived by a query to the DB, are stored into an SbiAudit object, which is returned.

Specified by:
loadAuditByID in interface IAuditDAO
Parameters:
id - The id for the audit record to load
Returns:
A SbiAudit object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

modifyAudit

public void modifyAudit(SbiAudit aSbiAudit)
                 throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Modify an audit record as per the SbiAudit object at input

Specified by:
modifyAudit in interface IAuditDAO
Parameters:
aSbiAudit - The SbiAudit object for the audit record to modify
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAuditsByDocumentLabel

public java.util.List loadAuditsByDocumentLabel(java.lang.String documentLabel)
                                         throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Returns the list of all audit records relevant to the document with the specified label at input

Specified by:
loadAuditsByDocumentLabel in interface IAuditDAO
Parameters:
documentLabel - The document label
Returns:
A List object consisting of SbiAudit objects relevant to the document specified at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAuditsByEngineLabel

public java.util.List loadAuditsByEngineLabel(java.lang.String engineLabel)
                                       throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Returns the list of all audit records relevant to the engine with the specified label at input

Specified by:
loadAuditsByEngineLabel in interface IAuditDAO
Parameters:
engineLabel - The engine label
Returns:
A List object consisting of SbiAudit objects relevant to the engine specified at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAuditsByUserName

public java.util.List loadAuditsByUserName(java.lang.String userName)
                                    throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Returns the list of all audit records relevant to the user with the specified name at input

Specified by:
loadAuditsByUserName in interface IAuditDAO
Parameters:
userName - The user name
Returns:
A List object consisting of SbiAudit objects relevant to the user specified at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseAudit

public void eraseAudit(java.lang.Integer id)
                throws it.eng.spago.error.EMFUserError
Description copied from interface: IAuditDAO
Erase the audit record with the specified id

Specified by:
eraseAudit in interface IAuditDAO
Parameters:
id - The id of the audit record to be erased
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred