|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
getSession(java.lang.String)
on the ObjectFactory
class. This overloaded method returns a new
Session
object.getSession()
on the
BaseObject
interface. This method returns the Session
object that was used when this BaseObject
object was
instantiated. 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.
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 |
public void changeGroup(java.lang.String groupName)
groupName
- Specifies the group for the logged-on user.
|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |