public class OSecurityTrackerHook extends ODocumentHookAbstract implements ORecordHook.Scoped
ORecordHook.DISTRIBUTED_EXECUTION_MODE, ORecordHook.HOOK_POSITION, ORecordHook.RESULT, ORecordHook.SCOPE, ORecordHook.Scoped, ORecordHook.TYPEdatabase| Constructor and Description |
|---|
OSecurityTrackerHook(OSecurity security,
ODatabaseDocument database) |
| Modifier and Type | Method and Description |
|---|---|
ORecordHook.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode() |
ORecordHook.SCOPE[] |
getScopes()
Returns the array of scopes this hook interested in.
|
void |
onRecordAfterCreate(ODocument doc)
It's called just after the document is created.
|
void |
onRecordAfterDelete(ODocument doc)
It's called just after the document is deleted.
|
void |
onRecordAfterUpdate(ODocument doc)
It's called just after the document is updated.
|
void |
onRecordCreateReplicated(ODocument doc)
It's called just after the document creation was replicated on another node.
|
void |
onRecordDeleteReplicated(ODocument doc)
It's called just after the document deletion was replicated.
|
void |
onRecordUpdateReplicated(ODocument doc)
It's called just after the document updated was replicated.
|
filterBySchemaClass, getExcludeClasses, getIncludeClasses, onRecordAfterRead, onRecordBeforeCreate, onRecordBeforeDelete, onRecordBeforeRead, onRecordBeforeUpdate, onRecordCreateFailed, onRecordDeleteFailed, onRecordFinalizeCreation, onRecordFinalizeDeletion, onRecordFinalizeUpdate, onRecordReadFailed, onRecordReadReplicated, onRecordUpdateFailed, onTrigger, onUnregister, setExcludeClasses, setIncludeClassesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonTrigger, onUnregisterpublic OSecurityTrackerHook(OSecurity security, ODatabaseDocument database)
public ORecordHook.SCOPE[] getScopes()
ORecordHook.ScopedReturns the array of scopes this hook interested in. By default, all available scopes are returned, implement/override this method to limit the scopes this hook may participate to lower the number of useless invocations of this hook.
Limiting the hook to proper scopes may give huge performance boost, especially if the hook
ORecordHook.onTrigger(TYPE, ORecord) dispatcher implementation is heavy. In extreme cases, you may override the ORecordHook.onTrigger(TYPE, ORecord) to act directly on event ORecordHook.TYPE and exit early, scopes are just a more handy
alternative to this.
getScopes in interface ORecordHook.ScopedORecordHook.SCOPEpublic ORecordHook.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
getDistributedExecutionMode in interface ORecordHookpublic void onRecordAfterCreate(ODocument doc)
ODocumentHookAbstractonRecordAfterCreate in class ODocumentHookAbstractdoc - The document is going to be createdpublic void onRecordAfterUpdate(ODocument doc)
ODocumentHookAbstractonRecordAfterUpdate in class ODocumentHookAbstractdoc - The document just updatedpublic void onRecordAfterDelete(ODocument doc)
ODocumentHookAbstractonRecordAfterDelete in class ODocumentHookAbstractdoc - The document just deletedpublic void onRecordCreateReplicated(ODocument doc)
ODocumentHookAbstractonRecordCreateReplicated in class ODocumentHookAbstractdoc - The document just createdpublic void onRecordUpdateReplicated(ODocument doc)
ODocumentHookAbstractonRecordUpdateReplicated in class ODocumentHookAbstractdoc - The document is going to be updatedpublic void onRecordDeleteReplicated(ODocument doc)
ODocumentHookAbstractonRecordDeleteReplicated in class ODocumentHookAbstractdoc - The document is going to be deletedCopyright © 2009–2025 OrientDB. All rights reserved.