Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
Access list management system (continued)

ACLCurrentAccessListAgent
This agent is the heart of the system. It dynamically generates a Web page with a list of the members for each of the three different access lists for a database: editors, authors and readers. You can see what this list looks like in Figure A. It then provides a link to more information about that person in whatever person information database you have and gives you a little "x" you can press to delete that person from the access list. To add a person, you simply type in the name of the person in the appropriate field near the top of the group list and click the button next to it. This triggers a JavaScript function that creates a URL that calls the ACLAddPersonAgent and passes it the proper parameters.

FIGURE A

The ACLCurrentAccessListAgent will dynamically generate an HTML page with links to add and delete people. Click picture for a larger image.

ACLAddPersonAgent
This agent adds a person to the appropriate database access group based on the level of access you want to give them. It then re-sorts the list of members in the group document by last name, so when the access list creation agent next retrieves the member array it will print them out in alphabetical order.

ACLDeletePersonAgent
This agent deletes a person from the access list. Users click on the "x" on the same line as somebody's name. This "x" is actually a URL link that calls the ACLDeletePersonAgent and passes it the necessary parameters. It does this by going through the existing member array of a group document and creating a new member array minus the deleted person. It then replaces the old member list with this new member array and generates an HTML page for the user indicating success, as shown in Figure B.

FIGURE B

The ACLDeletePersonAgent gives the user a success message and links them back to the ACLCurrentAccessListAgent. Click picture for a larger image.

Climbing the beanstalk (examining the system more closely)
This system contains a large amount of code, too much in fact, to print all of it here. Instead, I will focus on each agent and give a brief description of all of the functions they have and what they do. My goal here is to provide an aid to understanding the system so that you can take the sample code from my Web site (at http://dan.velasco.com) and customize it for use on your own databases.

ACLCurrentAccessListAgent
The first step in modifying the access list of a database using this system is to call the ACLCurrentAccessListAgent. This will create an access list page with buttons to delete people and fields to type in new members. With buttons, you can click to grant them access. Here is a rundown of this agent.

Declarations
There are a lot of global variables used in this agent. Be sure to look at this sub to see all of them.

Options
The code for the Options section is simple:

Option Public
'-Use script library to get essential function code
Use "ACL Agent Script Library"

Initialize
The Initialize Sub is the core part of the agent. It calls all of the essential subs that help to build the current access list Web page.




[ Prev | Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

2-Minute Tutorials
How do I...

  • integrate MS Office or OpenOffice with Notes?
  • create cross-tab reports and charts?
  • print serial letters and mailing labels?
  • create PDFs in Lotus Notes?


Check out the 2-minute tutorials here.
-- Advertisement --

INSTALL, UPGRADE NOTES CLIENTS WITHOUT VISITING EACH DESKTOP
Use InstallPump to automate your Notes R8 migration. InstallPump enables you to rollout Notes throughout the enterprise without visiting each desktop.

  • 100% fully automated Notes upgrades/installs.
  • Modify the Replicator Page, Address Book, and Desktop... and much more.

See for yourself. Full evaluation copy available at installpump.com.

Download your FREE evaluation copy of InstallPump today.

Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login