Function EN Version 4.50

@WriteACL

ACL Database NotesAdmin NotesSystem

Syntax

@WriteACL(DBHANDLE;HACL);

Description

This @Function writes an in-memory copy of the ACL to the database specified by the DBHANDLE DBHANDLE.
When the VSPECHACL handle is no longer required, it must be released using @ReleaseACL.
This @Function does not release the VSPECHACL handle HACL.

As its return value, the @Function returns @ERROR if an error occurs; otherwise, it returns TRUE.

Example: @ReadACL(DBHANDLE);

DBHANDLE:=@OpenDB("TEST\\TESTDB1.NSF");
HACL:=@ReadACL(DBHANDLE);
RET:=@WriteACL(DBHANDLE;HACL);
HACL:=@ReleaseACL(HACL);
DBHANDLE:=@CloseDB(DBHANDLE);

A database is opened and an in-memory copy of its ACL is created and stored in HACL.
The same ACL referenced by the HACL HACL handle is then written back to the database.
Finally, the VSPECHACL handle is released and the database is closed.

Note : This text was machine-translated and may contain inaccuracies.