sign (Database - Java)

Signs elements in a database with the signature of the current user.

Note: This method is new with Release 6.5.

Defined in

Database

Syntax

public void sign()
   throws NotesException
public void sign(int documenttype)
   throws NotesException
public void sign(int documenttype, boolean existingsigsonly)
   throws NotesException
public void sign(int documenttype, boolean existingsigsonly, String namestr)
   throws NotesException
public void sign(int documenttype, boolean existingsigsonly, String namestr, boolean namestrisnoteid)
   throws NotesException

Parameters

int documenttype

One of the following constants.

  • Database.DBSIGN_DOC_ACL (64) signs the ACL
  • Database.DBSIGN_DOC_AGENT (512) signs all agents
  • Database.DBSIGN_DOC_ALL (32767) signs all elements
  • Database.DBSIGN_DOC_DATA (1) signs all data documents' active content (hotspots)
  • Database.DBSIGN_DOC_FORM (4) signs all forms
  • Database.DBSIGN_DOC_HELP (256) signs the "About Database" and "Using Database" documents
  • Database.DBSIGN_DOC_ICON (16) signs the icon
  • Database.DBSIGN_DOC_REPLFORMULA (2048) signs the replication formula
  • Database.DBSIGN_DOC_SHAREDFIELD (1024) signs all shared fields
  • Database.DBSIGN_DOC_VIEW (8) signs all views
boolean existingsigsonly)
  • true to sign only elements with existing signatures
  • false (default) to sign all elements
String namestr

Programmatic name or note ID of a single design element.

boolean namestrisnoteid
  • true if parameter 3 represents a note ID.
  • false (default) if parameter 3 represents a programmatic name.

Usage

This method signs all design elements of the specified type if you specify parameter 1 and do not specify parameter 3.

If you specify parameter 3, this method signs one design element. You can also specify parameter 1 to positively define the design element. If more than one design element has the same name and parameter 1 is not specified, this method signs the first design element with the specified name.

This method executes only on a workstation.