Locks a document.
Note This method is new with Release 6.5.
public boolean lock()
throws NotesException
public boolean lock(String name)
throws NotesException
public boolean lock(String name, boolean provisionalok)
throws NotesException
public boolean lock(java.util.Vector names)
throws NotesException
public boolean lock(java.util.Vector names, boolean provisionalok)
throws NotesException
String name
java.util.Vector names
The names of the lock holders. Each lock holder must be a user or group. Defaults to one lock holder: the effective user. The empty string ("") is not permitted.
boolean provisionalok
boolean
IsDocumentLockingEnabled in Database must be true or this method throws an exception.
This method:
The following actions occur depending on the current lock status:
If the document is modified by another user before the lock can be placed, this method throws an exception.
Lock method in LotusScript NotesDocument class
@DocLock function in formula language
See examples