Highlighted
chakradhar1
1 Copper

dfc program to create acl

Jump to solution

hi, can any one tell me how to create acl via DFC code, and basic syntax of the code

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
8 Krypton

Re: dfc program to create acl

Jump to solution

Hi,

This is the code to create ACL in API

create,c,dm_acl

set,c,l,object_name

xxxxxxx

set,c,l,owner_name

dm_dbo

grant,c,l,dm_world,3

grant,c,l,dm_owner,6

save,c,l

Through DFC u can do like this

IDfPersistentObject prs=(IDfPersistentObject)session.newObject("dm_acl");

prs.apiSet("set","object_name","xxxxxxx");

prs.save();

0 Kudos
4 Replies
8 Krypton

Re: dfc program to create acl

Jump to solution

Hi,

This is the code to create ACL in API

create,c,dm_acl

set,c,l,object_name

xxxxxxx

set,c,l,owner_name

dm_dbo

grant,c,l,dm_world,3

grant,c,l,dm_owner,6

save,c,l

Through DFC u can do like this

IDfPersistentObject prs=(IDfPersistentObject)session.newObject("dm_acl");

prs.apiSet("set","object_name","xxxxxxx");

prs.save();

0 Kudos
8 Krypton

Re: dfc program to create acl

Jump to solution

Hi - did this answer your question? If so, could you please mark the question answered...if it didn't please ask follow up questions! thx -Gina

0 Kudos
VKR3
1 Nickel

Re: dfc program to create acl

Jump to solution

Why do we use 'l' in the API's? I know it refers to the last session but want to know more details about it. Can someone explain?

Basically what is the difference between using 'c' vs 'l' or why do we have to use both?

Thanks

0 Kudos
RamSoundhar
1 Copper

Re: dfc program to create acl

Jump to solution

Hi VKR,

generally 'l' refers lastly created/retrieved object, whether 'c' refers to current session. For example

create,c,dm_acl

set,c,l,object_name // In this line object name will be assigned to created object

xxxxxxxxx

Similar way

retrieve,c,dm_acl

set,c,l,object_name // In this line object name will be assigned to retrieved object

xxxxxxxxx


Hope i answered your question. Please do follow up if still it is nor clear


Regards

SoundhaR