如何使用DQL在Documentum中创建新的ACL [英] how to create a new ACL in Documentum with DQL

查看:147
本文介绍了如何使用DQL在Documentum中创建新的ACL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个连接到Documentum数据存储的Java项目,我需要使用DQL创建一个ACL。关于如何执行此操作的任何想法?我在EMC论坛的研究中发现了以下内容,但我真的不知道如何使用它?

I am doing a Java project connected to Documentum data storage and I need to create a ACL using DQL . Any idea on how can I do that ? I've found the following in my researches in EMC forums but I dont really understand how to use it ?

create,c,dm_acl  
set,c,l,object_name  
your_acl_name  
set,c,l,owner_name  
dm_dbo  
grant,c,l,dm_world,1      // Granting Permission  
revoke,c,l,dm_world,execute_proc,change_permit  // Revoking permission  
grant,c,l,your_admin,7,execute_proc,change_permit  // granting permission with extended permissions  
save,c,l 


推荐答案

您可以使用DQL创建dm_acl对象,如下所示:

You can create dm_acl object using DQL like this:

创建dm_acl对象设置object_name = 'your_acl_name',SET owner_name ='dm_dbo'

CREATE dm_acl OBJECT SET object_name='your_acl_name', SET owner_name='dm_dbo'

,但是您将无法使用DQL授予,撤消权限。

but you will not be able to grant, revoke permissions using DQL.

如果从Java连接到Content Server,并且可以运行DQL查询,为什么不简单地使用DFC API创建ACL?我猜您可以访问IDfSession?

If you are connected to Content Server from Java and you can run DQL queries why don't you simply use DFC API to create an ACL? I guess you have access to IDfSession?

例如

IDfACL acl = (IDfACL)session.newObject("dm_acl");
acl.setObjectName(name);
acl.setDescription(description);
acl.save();

然后您可以轻松地授予,撤销权限:

And then you can easily grant,revoke:

IDfPermit permit = new DfPermit();

permit.setAccessorName("some group");
permit.setPermitType(IDfPermit.DF_ACCESS_PERMIT);
permit.setPermitValue(IDfACL.DF_PERMIT_READ_STR);
acl.grantPermit(permit);
acl.save();

这篇关于如何使用DQL在Documentum中创建新的ACL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆