getUserPolicySettings (NotesSession - Java)

Gets a policy document.

Note: This method is new with Release 6.5.

Defined in

NotesSession

Syntax

public Document getUserPolicySettings(String server, String name, int type)
    throws NotesException
public Document getUserPolicySettings(String server, String name, int type, String explicitpolicy)
    throws NotesException

Parameters

String server

The name of the server containing the policy. An empty string means the local computer.

String name

The name of the effective user of the policy. The name must be fully qualified.

int type

The type of policy.

  • Session.POLICYSETTINGS_ARCHIVE (2)
  • Session.POLICYSETTINGS_DESKTOP (4)
  • Session.POLICYSETTINGS_REGISTRATION (0)
  • Session.POLICYSETTINGS_SECURITY (3)
  • Session.POLICYSETTINGS_SETUP (1)
String explicitpolicy

The policy namespace, with slash (/) prefix, that contains the settings. If this parameter is specified, the second parameter is not used.

Return value


Document

A read-only document that represents the effective or explicit policy. Returns null if the specified policy is not available.

Usage

See "Policy Documents" in Domino® Administrator Help.

Example