• 大小: 16.44MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-16
  • 语言: C/C++
  • 标签: Lotus  C++  API  Toolkit  for  

资源简介

Lotus C++ API Toolkit for Notes/Domino 8.0 for Windows English C99N6EN.zip (16 MB)

资源截图

代码片段和文件信息

//===========================================================================
//
//      Module: ACLLOG.CPP
//
//      Description:
//              Sample C++ API program that creates an access control entry 
//              list log file.
//
//      Syntax:         ACLLOG   [server]
//
//              Where dbname = file path name for the database to add the ACL
//              information. If you do not supply this parameter you will be  
//              prompted for arguments at run time.
//
//===========================================================================

#ifndef ACLLOG_HPP
#include “acllog.hpp“
#endif

// Parameter Strings
IOParameter             CommandBuf;
IOParameter             PromptString1;
IOParameter             ParamString1;
IOParameter             PromptString2;
IOParameter             ParamString2;

//---------------------------------------------------------------------------
//
//      MAIN
//
//---------------------------------------------------------------------------
int main(int argc char *argv[])
{
int ProgramStatus = 0;
LNNotesSession  Session;
LNSTATUS        Stat;

LNSetThrowAllErrors(TRUE);

LNDatabase ACLDb;
    ACLLog Log;

// Begin TRY block. 
// Throw all errors encountered during command execution.
try
{
LNString                ACLDbtitle;
LNDocument              Doc;
LNString                DatabasePath;
LNString                ServerName;

// Initialize the Notes session.
Session.Init(argc argv);

// Parse the argument list.      
ProcessArguments( argc argv &DatabasePath &ServerName);

LNString                AclLogFile = “acllog.nsf“;
LNString                AclLogServer = ““;

// Get the specified database.
Session.GetDatabase(DatabasePath &ACLDb ServerName);

// Open the log database.
Stat = Log.OpenAclDB( &Session AclLogFile AclLogServer );
if (Stat)
throw Stat;

LNACL                   Acl;
LNACLEntryArray Entries;
LNACLEntry              Entry;
LNACLRoleArray EntryRoles;
LNINT                   EntryCountEntryRoleCount; 
LNINT                   Index1 Index2;

ACLDb.Open();
ACLDbtitle = ACLDb.Gettitle();

// Get the database‘s ACL.
Stat = ACLDb.GetACL(&Acl);
Stat = Acl.GetEntries(&Entries);
EntryCount = Entries.GetCount();

for (Index1 = 0; Index1 < EntryCount; Index1 ++)
{
// Create a New log document to log all of the ACL entry list
// data to. Log the db data to the top of the new log.
Stat = Log.CreateLogEntry( ServerName DatabasePath ACLDbtitle );
if (Stat)
throw Stat;

// Then output all the ACL entry info in the ACL.
Entry = Entries[Index1];
Stat = Log.AddACLEntry( Entry );
if (Stat)
throw Stat;

cout << “Entry Name: “ << Entry.GetName() << endl;

// Output all the roles for each ACL entry.
Entry.GetRoles(&EntryRoles);

EntryRoleCount = EntryRo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2007-09-30 04:02  notescpp\
     目录           0  2007-09-30 04:02  notescpp\include\
     文件        2062  2007-09-30 03:57  notescpp\include\lnrepsta.hpp
     文件         660  2007-09-30 03:57  notescpp\include\lnrsclnk.hpp
     文件       16757  2007-09-30 03:57  notescpp\include\lnrt.hpp
     文件       14343  2007-09-30 03:57  notescpp\include\lnrtcont.hpp
     文件        3809  2007-09-30 03:57  notescpp\include\lnrtcrsr.hpp
     文件        3836  2007-09-30 03:57  notescpp\include\lnrtelem.hpp
     文件        3241  2007-09-30 03:57  notescpp\include\lnrthots.hpp
     文件        2523  2007-09-30 03:57  notescpp\include\lnrtjava.hpp
     文件        6846  2007-09-30 03:57  notescpp\include\lnrtlink.hpp
     文件        4237  2007-09-30 03:57  notescpp\include\lnrtobj.hpp
     文件        2086  2007-09-30 03:57  notescpp\include\lnrtobjb.hpp
     文件        3350  2007-09-30 03:57  notescpp\include\lnrtoleo.hpp
     文件        2554  2007-09-30 03:57  notescpp\include\lnrtsbfm.hpp
     文件       16685  2007-09-30 03:57  notescpp\include\lnrttabl.hpp
     文件        3938  2007-09-30 03:57  notescpp\include\lnrttype.hpp
     文件       20260  2007-09-30 03:57  notescpp\include\lnsactio.hpp
     文件        3347  2007-09-30 03:57  notescpp\include\lnsaddin.hpp
     文件        3296  2007-09-30 03:57  notescpp\include\lnsbform.hpp
     文件        2199  2007-09-30 03:57  notescpp\include\lnscript.hpp
     文件        2149  2007-09-30 03:57  notescpp\include\lnscrlb.hpp
     文件       12601  2007-09-30 03:57  notescpp\include\lnsearch.hpp
     文件        3902  2007-09-30 03:57  notescpp\include\lnsectio.hpp
     文件       17959  2007-09-30 03:57  notescpp\include\lnsessio.hpp
     文件        3034  2007-09-30 03:57  notescpp\include\lnsfield.hpp
     文件        1048  2007-09-30 03:57  notescpp\include\lnstoele.hpp
     文件       11925  2007-09-30 03:57  notescpp\include\lnstring.hpp
     文件        2989  2007-09-30 03:57  notescpp\include\lntext.hpp
     文件        1622  2007-09-30 03:57  notescpp\include\lntxtpup.hpp
     文件        2303  2007-09-30 03:57  notescpp\include\lnurllnk.hpp
............此处省略593个文件信息

评论

共有 条评论