|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.monitoring.dao.DbAuditImpl
public class DbAuditImpl
Constructor Summary | |
---|---|
DbAuditImpl()
|
Method Summary | |
---|---|
void |
eraseAudit(java.lang.Integer id)
Erase the audit record with the specified id. |
SbiAudit |
getLastExecution(java.lang.Integer objId)
Gets the last execution of a document with id objId. |
java.lang.Double |
getMediumExecTime(java.lang.Integer objId)
Gets the last execution of a document with id objId. |
java.util.List |
getMostPopular(java.util.Collection roles,
int limit)
Finds the most popular executions for the specified roles as a list of HotLink objects. |
java.util.List |
getMyRecentlyUsed(java.lang.String userId,
int limit)
Finds the most recent executions for the user with the specified user identifier as a list of HotLink objects. |
void |
insertAudit(SbiAudit aSbiAudit)
Insert audit. |
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.commons.dao.AbstractHibernateDAO |
---|
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setUserID, setUserProfile |
Constructor Detail |
---|
public DbAuditImpl()
Method Detail |
---|
public void insertAudit(SbiAudit aSbiAudit) throws it.eng.spago.error.EMFUserError
insertAudit
in interface IAuditDAO
aSbiAudit
- the a sbi audit
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.monitoring.dao.IAuditDAO#insertAudit(it.eng.spagobi.bo.SbiAudit)
public java.util.List loadAllAudits() throws it.eng.spago.error.EMFUserError
IAuditDAO
loadAllAudits
in interface IAuditDAO
List
object consisting of SbiAudit
objects
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic SbiAudit loadAuditByID(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IAuditDAO
id
. All these information,
achived by a query to the DB, are stored into an SbiAudit
object, which is
returned.
loadAuditByID
in interface IAuditDAO
id
- The id for the audit record to load
SbiAudit
object containing all loaded information
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void modifyAudit(SbiAudit aSbiAudit) throws it.eng.spago.error.EMFUserError
IAuditDAO
SbiAudit
object at input.
modifyAudit
in interface IAuditDAO
aSbiAudit
- The SbiAudit
object for the audit record to modify
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAuditsByDocumentLabel(java.lang.String documentLabel) throws it.eng.spago.error.EMFUserError
IAuditDAO
loadAuditsByDocumentLabel
in interface IAuditDAO
documentLabel
- The document label
List
object consisting of SbiAudit
objects relevant to the document specified at input
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAuditsByEngineLabel(java.lang.String engineLabel) throws it.eng.spago.error.EMFUserError
IAuditDAO
loadAuditsByEngineLabel
in interface IAuditDAO
engineLabel
- The engine label
List
object consisting of SbiAudit
objects relevant to the engine specified at input
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAuditsByUserName(java.lang.String userName) throws it.eng.spago.error.EMFUserError
IAuditDAO
loadAuditsByUserName
in interface IAuditDAO
userName
- The user name
List
object consisting of SbiAudit
objects relevant to the user specified at input
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void eraseAudit(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IAuditDAO
eraseAudit
in interface IAuditDAO
id
- The id of the audit record to be erased
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List getMostPopular(java.util.Collection roles, int limit) throws it.eng.spago.error.EMFUserError
IAuditDAO
HotLink
objects.
getMostPopular
in interface IAuditDAO
roles
- the roleslimit
- the limit
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List getMyRecentlyUsed(java.lang.String userId, int limit) throws it.eng.spago.error.EMFUserError
IAuditDAO
HotLink
objects.
getMyRecentlyUsed
in interface IAuditDAO
userId
- the user idlimit
- the limit
it.eng.spago.error.EMFUserError
- the EMF user errorpublic SbiAudit getLastExecution(java.lang.Integer objId) throws it.eng.spago.error.EMFUserError
IAuditDAO
getLastExecution
in interface IAuditDAO
objId
- the obj id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.lang.Double getMediumExecTime(java.lang.Integer objId) throws it.eng.spago.error.EMFUserError
IAuditDAO
getMediumExecTime
in interface IAuditDAO
objId
- the obj id
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |