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.
Access list management system (continued)

Into the woods (things you need to customize)
There are some specific things that you'll need to customize in the database where you want to include this functionality. In addition to some of the variables that you'll have to set (which I've commented on in the code and have placed "-- MODIFY…" messages above), there are certain ways you need to set up your system in order for this Access List Management System to work as advertised.

Set a group naming standard
People with different levels of access to your database should be placed in separate groups. For example, have an editor group for editors, an author group for authors, and a readers group for readers. Furthermore, set up some kind of naming convention. This way, you can easily calculate or lookup the name of your group based on the database title or some other standard. You could also put the names of the groups who have the different levels of access on a database profile form and look them up as your agent runs.

Customize the SetGlobalVariables subs
The values in this sub in each agent need to be customized based on the locations of your key databases and variable values.

Change the references to lookup your people information
Our intranet has a customized database that maintains information about our employees. You'll need to change the field names in the "HTMLReport" sub to reference whatever internal person information database you want to reference. Don't forget to change the database reference as well. In our specific case, if there was no entry for somebody in our person information database, I looked for the person document in the Domino server directory. If I did not find either type of document I printed a "No information about John Doe is available" message.

Set up an HTML reference database
In order to make it easier for me and my agent to create HTML pages on the fly, I created a Function called GetHTML() and an HTML Library database (included in the sample download) that I use to store and retrieve code for such things as headers and footers. The GetHTML() function is in the ACL Agent Script Library and will require you to modify the path for the HTML Library based on where you place that database on your server. Or you can just remove those functions and put in your own header and footer code directly into the agent.

Get and grant the proper level of access
First of all, the signer of this agent (whether it be you or the server) has to have access to modify the group documents in the Domino directory. Next, the way the agent is set up, it will check the roles of the person who is trying to use the agent for the existence of a role called "Managing Editor." If the user does not have this role, they will receive an error message stating that they do not have the rights to modify the ACL for the database in question. See the security issues section for more details.

Slaying the giant (dealing with security concerns)
As always, whenever you are playing with the access list for databases, you have to be very mindful of security concerns. When I was first working on the database, my goal was to make it work just like I wanted it to. Once that was done, I immediately focused my attention on the security issues such an agent raised.


« 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
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 --

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