Search DominoPower's 11,433 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Managing database ACLs from a browser (continued)

As is the DelACLRole agent:

Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim doc As notesdocument
Dim acl As NotesACL
Dim acle As NotesACLEntry
Set db = session.CurrentDatabase
Set doc = session.DocumentContext
Set acl = db.ACL

REM get the value of the role to delete
nRole = doc.GetItemValue("newRole")(0)

Call acl.deleterole(nRole)
Call acl.Save

REM Redirect user's browser
wpath = doc.getitemvalue("dbpath")(0)
Print "["+wpath+"ACL?Open]"
End Sub

The "DelACLUsr" agent is used to remove users from the ACL. It's very similar to the previous two agents. Its code follows:

Sub Initialize

Dim session As New notessession
Dim db As notesdatabase
Dim doc As notesdocument
Dim acl As NotesACL
Dim acle As NotesACLEntry
Set db = session.CurrentDatabase
Set doc = session.DocumentContext
Set acl = db.ACL

REM get the name of the user that was selected to be deleted
dUsr = doc.GetItemValue("Users")(0)
REM get the ACL entry corresponding to that user
Set acle = acl.GetEntry(dUsr)
Call acle.Remove()
Call acl.Save

REM redirect users browser
wpath = doc.getitemvalue("dbpath")(0)
Print "["+wpath+"ACL?Open]"
End Sub

The "Inetlvl" agent sets the maximum Internet access level for the database ACL based on the value selected on the ACL form. The code for this agent is:

Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim doc As notesdocument
Dim acl As NotesACL
Dim acle As NotesACLEntry
Set db = session.CurrentDatabase
Set doc = session.DocumentContext
Set acl = db.ACL

REM get the maximum internet access value from the form
lvl = doc.GetItemValue("mxInet")(0)
REM set the value on the ACL
acl.InternetLevel=lvl
Call acl.Save
End Sub

Save all the agents and open the ACL form in your browser. If you've set the maximum Internet access for the database to Manager, then you should be able to manage all the ACL entries from the form.

This system can be used in any Web-accessible Domino application and is an excellent way of providing your Web users with added control over your applications.

Daniel Koffler is a Contributing Editor to DominoPower. Daniel is a R6 CLP and works as an IT consultant for major organizations in North America and Europe, specializing in network design, security analysis and knowledge management, he is also the author of several OpenSource projects. Daniel can be reached at dkoffler@users.sourceforge.net.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6
Other articles you might like
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
How not to crash in LotusScript
IBM Lotus to Google Apps Migration Remorse
Webcast Series: Mobile Collaboration with Lotus Software
Domino Login Control for Mobile Apps
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login