public class OrienteerUserHook
extends com.orientechnologies.orient.core.hook.ODocumentHookAbstract
com.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE, com.orientechnologies.orient.core.hook.ORecordHook.HOOK_POSITION, com.orientechnologies.orient.core.hook.ORecordHook.RESULT, com.orientechnologies.orient.core.hook.ORecordHook.SCOPE, com.orientechnologies.orient.core.hook.ORecordHook.Scoped, com.orientechnologies.orient.core.hook.ORecordHook.TYPE| Constructor and Description |
|---|
OrienteerUserHook(com.orientechnologies.orient.core.db.document.ODatabaseDocument database) |
| Modifier and Type | Method and Description |
|---|---|
com.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode() |
com.orientechnologies.orient.core.hook.ORecordHook.RESULT |
onRecordBeforeCreate(com.orientechnologies.orient.core.record.impl.ODocument doc)
Update document
OUser before create document. |
filterBySchemaClass, getExcludeClasses, getIncludeClasses, onRecordAfterCreate, onRecordAfterDelete, onRecordAfterRead, onRecordAfterUpdate, onRecordBeforeDelete, onRecordBeforeRead, onRecordBeforeUpdate, onRecordCreateFailed, onRecordCreateReplicated, onRecordDeleteFailed, onRecordDeleteReplicated, onRecordFinalizeCreation, onRecordFinalizeDeletion, onRecordFinalizeUpdate, onRecordReadFailed, onRecordReadReplicated, onRecordUpdateFailed, onRecordUpdateReplicated, onTrigger, onUnregister, setExcludeClasses, setIncludeClassespublic OrienteerUserHook(com.orientechnologies.orient.core.db.document.ODatabaseDocument database)
public com.orientechnologies.orient.core.hook.ORecordHook.RESULT onRecordBeforeCreate(com.orientechnologies.orient.core.record.impl.ODocument doc)
OUser before create document.
Fill field OrienteerUser.PROP_ID using UUID.randomUUID()
If field PerspectivesModule.PROP_PERSPECTIVE in user document is empty, so will be used default perspective for
orienteer users by calling OUsersDbUtils.getDefaultOrienteerUserPerspective().
If filed "roles" is empty or null, so it will be fill by role OrienteerUsersModule.ORIENTEER_USER_ROLE
Allows user read and update herselfonRecordBeforeCreate in class com.orientechnologies.orient.core.hook.ODocumentHookAbstractdoc - ODocument user documentORecordHook.RESULT returns super.onRecordBeforeCreate(doc)public com.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
Copyright © 2019. All rights reserved.