Session (Java)

Is the root of the Domino® Objects containment hierarchy, providing access to the other Domino® objects, and represents the Domino® environment of the current program.

Syntax

public class Session extends Base
    throws NotesException

Containment

Contained by: AgentBase, NotesFactory

Contains: AgentContext, Database, DateRange, DateTime, DbDirectory, International, Log, Name, Newsletter, NotesProperty, PropertyBroker,Registration, RichTextParagraphStyle, RichTextStyle, Stream

Properties

AddressBooks through getAddressBooks

AgentContext through getAgentContext

CommonUserName through getCommonUserName

EffectiveUserName through getEffectiveUserName

HttpURL through getHttpURL

International through getInternational

IsConvertMIME through isConvertMIME and setConvertMIME

IsOnServer through isOnServer

IsTrustedSession through isTrustedSession

IsValid through isValid

NotesVersion through getNotesVersion

OrgDirectoryPath through getOrgDirectoryPath

Platform through getPlatform

ServerName through getServerName

UserGroupNameList through getUserGroupNameList

UserName through getUserName

UserNameList through getUserNameList

UserNameObject through getUserNameObject

Methods

ApplicationShouldQuit

createAdministrationProcess

createColorObject

createDateRange

createDateTime

createDxlExporter

createDxlImporter

createLog

createName

createNewsletter

createRegistration

createRichTextParagraphStyle

createRichTextStyle

createStream

evaluate

freeResourceSearch

freeTimeSearch

getCalendar

getDatabase

getDbDirectory

getDirectory

getEnvironmentString

getEnvironmentValue

getPropertyBroker

getSessionToken

getURL

getURLDatabase

getUserPolicySettings

hashPassword

recycle

resetUserPassword

resolve

sendConsoleCommand

setEnvironmentVar

toString

verifyPassword

Creation and access

For stand-alone applications, use one of the NotesFactory.createSession methods.

For agents and applets, use AgentBase.getSession().

To access the current session from a Database object, use the AgentBase in Database.

Usage

For a local session, the Session object represents the machine on which the code is running. A reference to the current server such as a null server parameter means the local Notes/Domino environment. You can access servers connected to the local environment by specifying their names.

For a remote (IIOP) session, the Session object represents the Domino® server handling the remote requests. A reference to the current server such as a null server parameter means that Domino® server. You cannot access other servers.

Example