Skip navigation links


com.fatwire.system
Interface Session


public interface Session

A session is a token that encapsulates connectivity to a single Content Server instance.

It is the only supported mechanism to obtain manager instances that interact with Content Server's business objects.

Session is created with user's credentials, therefore, business objects obtained with a given have access privileges and restrictions for that user.

It is not advisable to cache Session instance in memory and use it across threads. A new Session instance must be obtained at the beginning of a program's thread and discarded after use.


Method Summary
 java.lang.Object getManager(java.lang.String name)
          Get a manager from the session given the name of Manager.

 

Method Detail

getManager

java.lang.Object getManager(java.lang.String name)
Get a manager from the session given the name of Manager.
Parameters:
name - the name of the manager to return, as it was registered in the session
Returns:
the manager requested, never null
Throws:
java.lang.IllegalArgumentException - if the requested manager does not exist.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.