|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a communication channel between the owning/initiating object that creates a session and the target domain (tree, server, or any other object). It provides those methods that are common to all Sessions. All objects returned by the SessionManager are of type Session.
SessionManager
Field Summary | |
static java.lang.String |
DOMAIN_NAME_ATTR_ID
Attribute ID describing the domain name of a Session. |
static java.lang.String |
INITIAL_SESSION_TYPE
Attribute value returned for SESSION_TYPE_ATTR_ID in initial Sessions. |
static java.lang.String |
IS_REAL_ATTR_ID
Attribute ID describing the "realness" of a Session. |
static java.lang.String |
MANAGER_SESSION_TYPE
Attribute value returned for SESSION_TYPE_ATTR_ID in SessionManager Sessions. |
static java.lang.String |
PROVIDER_NAME_ATTR_ID
Attribute ID describing the provider of a Session. |
static java.lang.String |
SESSION_MANAGER_TYPE
Deprecated. Use MANAGER_SESSION_TYPE Attribute value returned for SESSION_TYPE_ATTR_ID for SessionManager Sessions. (SESSION_MANAGER_TYPE = "SESSION_MANAGER") |
static java.lang.String |
SESSION_STATE_ATTR_ID
Attribute ID describing the state of a Session. |
static java.lang.String |
SESSION_TYPE_ATTR_ID
Attribute ID describing the type of a Session. |
static java.lang.String |
UID_ATTR_ID
Attribute ID describing the unique ID of a Session. |
Fields inherited from class com.novell.service.session.Authenticatable |
IS_AUTHENTICATED_ATTR_ID,
USER_NAME_ATTR_ID |
Method Summary | |
void |
close()
Closes and invalidates this session and its children, removing all stored credentials. |
Session |
findSession(java.lang.String domainName)
Returns the first session found with a domain name matching the passed-in domaine parameter value. |
Session |
findSessionTop(java.lang.String domainName)
Returns the first session found with a matching domain name, starting at the session manager. |
SessionAttrs |
getAttributes()
Returns a selected default subset of all attributes for this session. |
SessionAttrs |
getAttributes(java.lang.String[] attrIds)
Returns the attributes for this session listed in the attrIds[] parameter. |
SessionEnumerator |
getChildren()
Returns an enumeration of child sessions of this session. |
java.lang.String |
getDomainName()
Returns the domain name of this session. |
SessionEnv |
getEffectiveEnvironment()
Returns the environment affecting this session. |
SessionEnv |
getEnvironment()
Returns the environment for this session. |
Session |
getParent()
Returns this session's parent session, or NULL if its parent Session doesn't exist. |
SessionService |
getService(java.lang.String serviceKey)
Returns a service extension for this session. |
Session |
getSession(java.lang.String domainName)
Adds a child session to the parent based on the session from which this operation is called. |
Session |
getSession(java.lang.String domainName,
SessionEnv environment)
Adds a child session to the parent based on the session from which this operation is called. |
Session |
getSessionTop(java.lang.String domainName)
Creates a session with no consideration of the session from which this operation was called. |
Session |
getSessionTop(java.lang.String domainName,
SessionEnv environment)
Creates a session with no consideration of the session from which this operation was called. |
java.rmi.server.UID |
getUID()
Return the unique ID for this session. |
boolean |
hasChildren()
Determines if this session has children. |
boolean |
hasParent()
Determines if this session has a parent. |
void |
invalidate()
Remove the passed-in Session from its children, if possible without actually closing the Session. |
boolean |
isValid()
Determines if this session is in a valid state. |
SessionEnumerator |
search(SessionAttrs matchingSessionAttrSet)
Searches for sessions with matching attributes. |
SessionEnv |
setEnvironment(SessionEnv environment)
Sets/replaces the environment for this session and returns the old environment. |
void |
validateLinks()
Validate the children of this session. |
Methods inherited from interface com.novell.service.session.Authenticatable |
authenticate,
authenticate,
createIdentity,
getName,
isAuthenticated,
unauthenticate |
Field Detail |
public static final java.lang.String PROVIDER_NAME_ATTR_ID
(PROVIDER_NAME_ATTR_ID = "SESSION_PROVIDER")
SessionAttr
,
getAttributes()
public static final java.lang.String SESSION_STATE_ATTR_ID
(SESSION_STATE_ATTR_ID = "SESSION_STATE")
SessionAttr
,
getAttributes()
public static final java.lang.String DOMAIN_NAME_ATTR_ID
(DOMAIN_NAME_ATTR_ID = "DOMAIN_NAME")
SessionAttr
,
getAttributes()
public static final java.lang.String SESSION_TYPE_ATTR_ID
(SESSION_TYPE_ATTR_ID = "SESSION_TYPE")
SessionAttr
,
getAttributes()
,
MANAGER_SESSION_TYPE
,
INITIAL_SESSION_TYPE
public static final java.lang.String IS_REAL_ATTR_ID
(IS_REAL_ATTR_ID = "IS_REAL")
SessionAttr
,
getAttributes()
public static final java.lang.String UID_ATTR_ID
(UID_ATTR_ID = "UID")
SessionAttr
,
getAttributes()
public static final java.lang.String SESSION_MANAGER_TYPE
Attribute value returned for SESSION_TYPE_ATTR_ID for SessionManager Sessions.
(SESSION_MANAGER_TYPE = "SESSION_MANAGER")
SessionAttr
,
getAttributes()
public static final java.lang.String MANAGER_SESSION_TYPE
(MANAGER_SESSION_TYPE = "SESSION_MANAGER")
SessionAttr
,
getAttributes()
,
SESSION_TYPE_ATTR_ID
public static final java.lang.String INITIAL_SESSION_TYPE
(INITIAL_SESSION_TYPE = "INITIAL_SESSION")
SessionAttr
,
getAttributes()
,
SESSION_TYPE_ATTR_ID
Method Detail |
public void close() throws SessionException, java.rmi.RemoteException
public Session getSession(java.lang.String domainName) throws SessionException, java.rmi.RemoteException
domainName
- The domain name of the session to add. The
domain name depends on the provider.getSession(java.lang.String SessionEnv)
,
getSessionTop(java.lang.String)
,
Xplat.LOOKUP_DOMAIN
,
Xplat.DOMAIN_ADDRESS
public Session getSession(java.lang.String domainName, SessionEnv environment) throws SessionException, java.rmi.RemoteException
domainName
- The domain name of the session to add. The
domain name depends on the provider.environment
- The environment passed-in to control the
the creation behavior of this session.getSession(java.lang.String)
,
getSessionTop(java.lang.String)
,
SessionEnv
public Session getSessionTop(java.lang.String domainName) throws SessionException, java.rmi.RemoteException
domainName
- The domain name of the session to add.getSession(java.lang.String)
public Session getSessionTop(java.lang.String domainName, SessionEnv environment) throws SessionException, java.rmi.RemoteException
domainName
- The domain name of the session to add.environment
- The environment passed to control the creation
behavior of this session.getSession(java.lang.String)
,
SessionEnv
public SessionAttrs getAttributes() throws SessionException, java.rmi.RemoteException
getAttributes(java.lang.String[])
,
Xplat.FORCE_OPERATIONAL_ATTRIBUTES
public SessionAttrs getAttributes(java.lang.String[] attrIds) throws SessionException, java.rmi.RemoteException
attrIds
- An array of session attribute IDs.getAttributes()
,
Authenticatable
,
Bindery
,
NDS
,
Xplat
public SessionEnv getEnvironment() throws SessionException, java.rmi.RemoteException
getEffectiveEnvironment()
,
setEnvironment(com.novell.service.session.SessionEnv)
,
SessionEnv
public SessionEnv getEffectiveEnvironment() throws SessionException, java.rmi.RemoteException
The effective environment includes the environment of all parent sessions above this session, in addition to this session's environment. SessionEnv entries in this session override duplicates in upper sessions.
getEnvironment()
,
SessionEnv
public SessionEnv setEnvironment(SessionEnv environment) throws SessionException, java.rmi.RemoteException
environment
- The environment passed-in to control the
behavior ofthis Session.getEnvironment()
,
SessionEnv
public SessionEnumerator search(SessionAttrs matchingSessionAttrSet) throws SessionException, java.rmi.RemoteException
Interesting sessions are typically those sessions other than initial sessions and the session manager (i.e. those sessions that can be added or closed and those that have IS_REAL_ATTR_ID = TRUE).
matchingSessionAttrSet
- Attributes to match. An empty
SessionAttrs will return all Sessions.public java.lang.String getDomainName() throws SessionException, java.rmi.RemoteException
public SessionEnumerator getChildren() throws SessionException, java.rmi.RemoteException
public Session getParent() throws java.rmi.RemoteException
public void invalidate() throws SessionException, java.rmi.RemoteException
Note: Because a user of the session may still have a reference to it, they may still attempt to call a method on that Session. Upon execution of invalidate(), the session's state is changed to invalid and most subsequent method calls on that session will throw InvalidSessionException.
childSession
- The child Session to invalidate.public void validateLinks() throws SessionException, java.rmi.RemoteException
A session implementation may sit on top of an existing client that has other entry points besides through a single JVM. This operation allows a user of the session to make sure data in the session is up-to-date.
public SessionService getService(java.lang.String serviceKey) throws SessionException, java.rmi.RemoteException
serviceKey
- The key defined by the provider for accessing a
particular service.public java.rmi.server.UID getUID() throws SessionException, java.rmi.RemoteException
public boolean hasParent() throws java.rmi.RemoteException
public boolean hasChildren() throws java.rmi.RemoteException
public Session findSession(java.lang.String domainName) throws SessionException, java.rmi.RemoteException
public Session findSessionTop(java.lang.String domainName) throws SessionException, java.rmi.RemoteException
public boolean isValid() throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |