ACL's in Documentum using DFC

how can we add user or group to ACL and then providing particular permission to that user or group using DFC.
before adding user or group to ACL we have to check whether the user exists in the ACL if not we have added using DFC.

Comments

  • 1) download dfc javadocs. It has all the methods available to use and a lot of them have examples. Also, since your question is newbie question, I suggest you read Documentum Fundamentals guide as well.
    2) if you want to ONLY assign user/group permit to one document, you can use IDfSysObject.grant(). if you want to re-use this ACL across multiple documents and folders, create system ACL and then assign the ACL to this document using IDfSysObject.setACLName() and setACLDomain()
    3) To check if user/group is in ACL, look at the IDfACL.getAccessorName(). Keep in mind, you will have to check if user belongs to a group separately. Easier way to check if user has permissions on document is to use IDfSysObject.hasPermission().