FileNet Content Services
Java Connector v3.0

com.filenet.Panagon
Interface Session

All Superinterfaces:
java.io.Serializable, Session

public interface Session
extends Session

A Session object contains information, such as configuration options and credentials, needed to execute an operation on the Content Services server. Session is a thread-safe class.

To interact with the Content Services server, your application program must first instantiate a Session object. You can use the following methods:

For the best performance, a multithreaded application should create one Session object per thread. A single Session object shared by multiple threads would limit the Session object to making only a single JNI call at a time.

The following code fragment creates a new Session object for the "MyTestApp" application:

 Session sess = ObjectFactory.getSession("com.example.apps.MyTestApp",
                null, "tester", null, null);
 

The ObjectFactory interface has methods for creating some object references (such as EntireNetwork and ObjectStore) that require a Session object as an argument. After those objects are created, you can call methods on them to create other new objects, and those new objects implicitly reference the same Session object. For example, ObjectStore objects that are instantiated via EntireNetwork inherits the reference to the Session object. You can call methods on the ObjectStore object to instantiate several different object types, and all of these types implicitly reference the same Session object. You can call methods on the ObjectStore object to instantiate several different object types, and each of those types has a reference to the ObjectStore object that created it.

This derived interface defines a single method. For additional methods, see the com.filenet.wcm.api.Session base interface.

See Also:
CS Java Connector Developer's Guide

Field Summary
 
Fields inherited from interface com.filenet.wcm.api.Session
APPID, AUTHENTICATION_HEADER_NAME, CLEAR, DATETIME, DEFAULT, LOCALE, PASSWORD, SYMMETRIC, USERID
 
Method Summary
 void changeGroup(java.lang.String groupName)
          Sets the group for the logged-on user.
 
Methods inherited from interface com.filenet.wcm.api.Session
equals, executeBatch, fromToken, fromToken, getBatchItemCount, getCredentialsProtectionScheme, getProxyHost, getProxyPort, getRemoteServerDownloadUrl, getRemoteServerUploadUrl, getRemoteServerUrl, getToken, getToken, hashCode, isInBatch, resumeBatch, setBatchItemDiscardResults, setBatchItemLabel, setConfiguration, setLocale, setPassword, setProxyHost, setProxyPort, setRemoteServerDownloadUrl, setRemoteServerUploadUrl, setRemoteServerUrl, setTransportHeaders, setUserid, startBatch, suspendBatch, verify
 

Method Detail

changeGroup

public void changeGroup(java.lang.String groupName)
Sets the group for the logged-on user. The specified group determimes the user's access rights to the library resources. If this option is not set, the default users group is used.

Parameters:
groupName - Specifies the group for the logged-on user.

FileNet Content Services
Java Connector v3.0