Programmatically (using DFC code) How to Check either owner has document delete permission or not ?
Hello Expert ,
I have created below ACL called "World Write" that allow all users have write access to the document, the owner have delete access.
ACL code
" **create,c,dm_acl
set,c,l,object_name World Write
set,c,l,owner_name dm_dbo
set,c,l,description All Users have Write Access
grant,c,l,dm_world,6
grant,c,l,dm_owner,7
save,c,l **"
In above code "dm_owner,7" indicate the owner has delete permission.
Now Programmatically (Using DFC code ) another developer want to check either owner have document delete permission or not ?
so how to check ?
Comments
-
Once the ACL is assigned to a sysobject, you can check the actual permissions on the computed attribute _permit, e.g.
fetch,c,
get,c,l,_permitYou can also check the permissions for another user:
get,c,l,_permit,With DFC, use IDfSysObject.getPermit or getPermitEx.
1 -
Use IDfSysObject.getPermitEx(String accessorName) method
Returns an integer number that corresponds to the access permission level that the specified user or group has for the object.
Suggest you download the DFC javadoc and development guide. You can them in the DFC product page
https://knowledge.opentext.com/knowledge/llisapi.dll/open/KCProduct?id=984DFC-7.2_JavaDocs (3 MB)
https://knowledge.opentext.com/knowledge/llisapi.dll/Open/68720450https://knowledge.opentext.com/knowledge/llisapi.dll/Overview/72193761
Documentum Foundation Classes 16.4 Development GuideBrian Dinneen
ECD Documentum Designated Support Engineer1
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management