Hello friends,
I need this DFC example code:
- create ACL
- add user "XPTO" with WRITE permission
- add user "dm_world" with NONE permission
- add user "dm_owner" with DELETE permission
Any help?
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
Try this:
// get a handle to session called dfSession
idfacl = (IDfACL)dfSession.newObject("dm_acl");
idfacl.setObjectName("<whatever you want to call your acl");
idfacl.grant("XPTO", IDfACL.DF_PERMIT_WRITE, null);
idfacl.grant("dm_world", IDfACL.DF_PERMIT_NONE, idfacl.getXPermitNames("dm_world"));
idfacl.grant("dm_owner", IDfACL.DF_PERMIT_DELETE, idfacl.getXPermitNames("dm_owner"));
idfacl.save();
(details for these methods can be found in the DFC JavaDocs)
Terence
Thank u
how to cretate workflow in dfc?