LOTUSSCRIPT/COM/OLE CLASSES
Examples: GetEntry method
1. This script gets the entry for Kendra Bauer, from the ACL of progwork.NSF.
Dim db As New NotesDatabase( "snapper", "progwork.nsf" )
Dim acl As NotesACL
Dim entry As NotesACLEntry
Set acl = db.ACL
Set entry = acl.GetEntry( "Kendra Bauer" )
2. This script gets the entry for the "Unknown" group in the current database. It modifies the ACL so that Unknown cannot delete documents in the database.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim acl As NotesACL
Dim entry As NotesACLEntry
Set db = session.CurrentDatabase
Set acl = db.ACL
Set entry = acl.GetEntry( "Unknown" )
If Not ( entry Is Nothing ) Then
entry.CanDeleteDocuments = False
Call acl.Save
End If
See Also
GetEntry method
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary