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
 AssetDataManager getAssetDataManager()
          Deprecated. use Session.getManager(java.lang.String) instead
 AssetTypeDefManager getAssetDefManager()
          Deprecated. use Session.getManager(java.lang.String) instead
 java.lang.Object getManager(java.lang.String name)
          Get a manager from the session given the name of Manager.
 RevisionTrackingManager getRevisionTrackingManager()
          Deprecated. use Session.getManager(java.lang.String) instead
 

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.

getAssetDefManager

AssetTypeDefManager getAssetDefManager()
Deprecated. use Session.getManager(java.lang.String) instead


getAssetDataManager

AssetDataManager getAssetDataManager()
Deprecated. use Session.getManager(java.lang.String) instead


getRevisionTrackingManager

RevisionTrackingManager getRevisionTrackingManager()
Deprecated. use Session.getManager(java.lang.String) instead