Search DominoPower's 11,441 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.
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. Roll over 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. Roll over 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.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  7  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Home > Lotus Technologies > Access Control (7 articles)
   Forcing immediate indexes to actually update immediately
   Enabling and disabling the single login setting in Notes 6
   Coding Domino server tasks in C: beyond Windows
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
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> 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 --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


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