Back-End LotusScript Competencies

Posted on
Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone

Questions derived from the 737 – IBM Lotus Notes Domino 7 Using LotusScript in IBM Lotus Domino 7 Applications Self Test Software Practice Test.

 

Objective: Back-End LotusScript Competencies
SubObjective: Accessing Notes databases – Examining and adjusting an access control list

Item Number: 737.3.13.2
Single Answer, Multiple Choice

 

What is a method of the NotesACL class used to retrieve a particular ACL entry, given the name?

 

 

  1. ACL
  2. Level
  3. GetEntry
  4. NotesACL

 

Answer:
C. GetEntry

 

Tutorial:
The NotesACL class represents the access control list (ACL) of a database. To query the ACL, use the GetEntry method and pass along the name of the user or group whose access level you want to obtain.

 

The following code example gets the entry for the group “Collectors”. Once the code verifies that the entry exists it sets the “Can Create Shared Folders” attribute in the ACL to “selected.”

 

Dim s As New NotesSession
Dim db As NotesDatabase
Set db = s.CurrentDatabase
Dim acl As NotesACL
Set acl = db.ACL
Dim aclent As NotesACLEntry
Set aclent = acl.GetEntry(“Collectors”)
If Not (aclent Is Nothing) Then
aclent.CanCreateSharedFolder = True
Call acl.Save
End If

 

Reference:
1. Domino Designer 7 Help – search on: Examining and adjusting an access control list

2. Programming Guide Volume 2 – LotusScript/COM/OLE Classes – Chapters 1 and 2 http://doc.notes.net/uafiles.nsf/docs/DESIGNER70/$File/prog2.pdf

Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment: