Class OAuditingHook
java.lang.Object
com.orientechnologies.orient.core.hook.ORecordHookAbstract
com.orientechnologies.security.auditing.OAuditingHook
- All Implemented Interfaces:
ODatabaseListener,ORecordHook
Hook to audit database access.
- Author:
- Luca Garulli
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.hook.ORecordHook
ORecordHook.DISTRIBUTED_EXECUTION_MODE, ORecordHook.HOOK_POSITION, ORecordHook.RESULT, ORecordHook.SCOPE, ORecordHook.TYPE -
Constructor Summary
ConstructorsConstructorDescriptionOAuditingHook(ODocument iConfiguration) OAuditingHook(ODocument iConfiguration, OSecuritySystem system) OAuditingHook(OSecuritySystem server) OAuditingHook(String iConfiguration) OAuditingHook(String iConfiguration, OSecuritySystem system) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlog(OAuditingOperation operation, ORecord iRecord) voidlog(OAuditingOperation operation, String dbName, OSecurityUser user, String message) protected voidlogClass(OAuditingOperation operation, OClass cls) protected voidlogClass(OAuditingOperation operation, String note) protected voidlogCommand(String command) voidonAfterTxCommit(ODatabase iDatabase) voidonAfterTxRollback(ODatabase iDatabase) voidonCreateClass(OClass iClass) voidonDropClass(OClass iClass) voidonRecordAfterCreate(ORecord iRecord) It's called just after the iRecord is created.voidonRecordAfterDelete(ORecord iRecord) It's called just after the iRecord is deleted.voidonRecordAfterRead(ORecord iRecord) It's called just after the iRecord is read.voidonRecordAfterUpdate(ORecord iRecord) It's called just after the iRecord is updated.voidshutdown(boolean waitForAllLogs) Methods inherited from class com.orientechnologies.orient.core.hook.ORecordHookAbstract
onRecordAfterReplicaAdd, onRecordAfterReplicaDelete, onRecordAfterReplicaUpdate, onRecordBeforeCreate, onRecordBeforeDelete, onRecordBeforeRead, onRecordBeforeReplicaAdd, onRecordBeforeReplicaDelete, onRecordBeforeReplicaUpdate, onRecordBeforeUpdate, onRecordCreateFailed, onRecordCreateReplicated, onRecordDeleteFailed, onRecordDeleteReplicated, onRecordFinalizeCreation, onRecordFinalizeDeletion, onRecordFinalizeUpdate, onRecordReadFailed, onRecordReadReplicated, onRecordReplicaAddFailed, onRecordReplicaDeleteFailed, onRecordReplicaUpdateFailed, onRecordUpdateFailed, onRecordUpdateReplicated, onTrigger, onUnregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.db.ODatabaseListener
onBeforeTxBegin, onBeforeTxCommit, onBeforeTxRollback, onClose, onCommandEnd, onCommandStart, onCorruptionRepairDatabase, onCreate, onCreateClass, onCreateView, onDelete, onDropClass, onDropView, onOpenMethods inherited from interface com.orientechnologies.orient.core.hook.ORecordHook
getScopes
-
Constructor Details
-
OAuditingHook
-
OAuditingHook
-
OAuditingHook
-
OAuditingHook
-
OAuditingHook
-
-
Method Details
-
onAfterTxRollback
- Specified by:
onAfterTxRollbackin interfaceODatabaseListener
-
onAfterTxCommit
- Specified by:
onAfterTxCommitin interfaceODatabaseListener
-
getConfiguration
-
onRecordAfterCreate
Description copied from class:ORecordHookAbstractIt's called just after the iRecord is created.- Overrides:
onRecordAfterCreatein classORecordHookAbstract- Parameters:
iRecord- The iRecord just created
-
onRecordAfterRead
Description copied from class:ORecordHookAbstractIt's called just after the iRecord is read.- Overrides:
onRecordAfterReadin classORecordHookAbstract- Parameters:
iRecord- The iRecord just read
-
onRecordAfterUpdate
Description copied from class:ORecordHookAbstractIt's called just after the iRecord is updated.- Overrides:
onRecordAfterUpdatein classORecordHookAbstract- Parameters:
iRecord- The iRecord just updated
-
onRecordAfterDelete
Description copied from class:ORecordHookAbstractIt's called just after the iRecord is deleted.- Overrides:
onRecordAfterDeletein classORecordHookAbstract- Parameters:
iRecord- The iRecord just deleted
-
getDistributedExecutionMode
- Specified by:
getDistributedExecutionModein interfaceORecordHook
-
logCommand
-
log
-
shutdown
public void shutdown(boolean waitForAllLogs) -
logClass
-
logClass
-
onCreateClass
-
onDropClass
-
log
-