制作扩展 V 和 OUser 的自定义 User [英] Making custom User that extends V and OUser
问题描述
我需要创建一个允许记录级安全性和顶点属性的 User 类,但是 OUser
已经扩展了 OIdentity
.
I need to create a User class that allows for both record-level security as well as vertex properties, but OUser
already extends OIdentity
.
我还想知道是否有办法摆脱自动生成的 admin
用户,因为我可以使用 root
连接到我的数据库似乎是多余的orientdb-server-config.xml
中定义的用户,我不需要该用户(至少现在不需要).
I'm also wondering if there's a way to get rid of the automatically generated admin
user, as it seems redundant that I can connect to my database using the root
user defined in the orientdb-server-config.xml
, and I don't need that user (at least right now).
推荐答案
你可以让OIdentity扩展V:
You can let OIdentity to extend V:
alter class OIdentity superclass V
所以现在 OUser 和 ORole 是顶点.
So now OUser and ORole are Vertices.
关于admin",如果你总是使用服务器的 root 用户(那是上帝),你也可以删除它
About "admin" you could also drop it if you always use the server's root user (That is God)
这篇关于制作扩展 V 和 OUser 的自定义 User的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!