|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.monitoring.dao.AuditManager
public class AuditManager
Field Summary | |
---|---|
static java.lang.String |
AUDIT_ID
|
static java.lang.String |
ERROR_CODE
|
static java.lang.String |
ERROR_MESSAGE
|
static java.lang.String |
EXECUTION_END
|
static java.lang.String |
EXECUTION_START
|
static java.lang.String |
EXECUTION_STATE
|
static java.lang.String |
MODULE_NAME
|
Method Summary | |
---|---|
static AuditManager |
getInstance()
Gets the single instance of AuditManager. |
SbiAudit |
getLastExecution(java.lang.Integer objId)
Gets the last execution. |
java.lang.Double |
getMediumExecTime(java.lang.Integer objId)
Gets the medium exec time. |
java.util.List |
getMostPopular(it.eng.spago.security.IEngUserProfile profile,
int limit)
Gets the most popular. |
java.util.List |
getMyRecentlyUsed(it.eng.spago.security.IEngUserProfile profile,
int limit)
Gets the my recently used. |
java.lang.Integer |
insertAudit(BIObject obj,
SubObject subObj,
it.eng.spago.security.IEngUserProfile profile,
java.lang.String role,
java.lang.String modality)
Inserts a record on the audit log. |
void |
insertAudit(SbiAudit aSbiAudit)
Insert audit. |
SbiAudit |
loadAudit(java.lang.Integer id)
Load audit. |
void |
modifyAudit(SbiAudit aSbiAudit)
Modify audit. |
void |
updateAudit(java.lang.Integer auditId,
java.lang.Long startTime,
java.lang.Long endTime,
java.lang.String executionState,
java.lang.String errorMessage,
java.lang.String errorCode)
Update audit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODULE_NAME
public static final java.lang.String AUDIT_ID
public static final java.lang.String EXECUTION_START
public static final java.lang.String EXECUTION_END
public static final java.lang.String EXECUTION_STATE
public static final java.lang.String ERROR_MESSAGE
public static final java.lang.String ERROR_CODE
Method Detail |
---|
public static AuditManager getInstance()
public SbiAudit loadAudit(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void insertAudit(SbiAudit aSbiAudit) throws it.eng.spago.error.EMFUserError
aSbiAudit
- the a sbi audit
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void modifyAudit(SbiAudit aSbiAudit) throws it.eng.spago.error.EMFUserError
aSbiAudit
- the a sbi audit
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.lang.Integer insertAudit(BIObject obj, SubObject subObj, it.eng.spago.security.IEngUserProfile profile, java.lang.String role, java.lang.String modality)
obj
- The BIObject being executedprofile
- The user profilerole
- The execution rolemodality
- The execution modalitysubObj
- the sub obj
public void updateAudit(java.lang.Integer auditId, java.lang.Long startTime, java.lang.Long endTime, java.lang.String executionState, java.lang.String errorMessage, java.lang.String errorCode)
auditId
- the audit idstartTime
- the start timeendTime
- the end timeexecutionState
- the execution stateerrorMessage
- the error messageerrorCode
- the error codepublic java.util.List getMostPopular(it.eng.spago.security.IEngUserProfile profile, int limit)
profile
- the profilelimit
- the limit
public java.util.List getMyRecentlyUsed(it.eng.spago.security.IEngUserProfile profile, int limit)
profile
- the profilelimit
- the limit
public SbiAudit getLastExecution(java.lang.Integer objId)
objId
- the obj id
public java.lang.Double getMediumExecTime(java.lang.Integer objId)
objId
- the obj id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |