public abstract class FdkSessionImpl extends FdkSession
m_CurrentRequestThread, m_Tag| Modifier | Constructor and Description |
|---|---|
protected |
FdkSessionImpl(boolean supportTxns)
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
beginTransaction()
Begins a transaction on this session.
|
void |
commitTransaction(long id)
Commits a transaction started by calling
beginTransaction(). |
void |
disconnect()
Disconnects this user session.
|
Object |
getInternalSession()
Returns the internal session associated with this user session.
|
abstract LibrarySession |
getLibrarySession()
Returns the
LibrarySession associated with this user session. |
ManagersFactory |
getManagersFactory()
Returns the managers factory corresponding to this session.
|
abstract Item |
getUser(AttributeRequest[] attributes)
Returns the user for this session.
|
boolean |
isTransactionInProgress()
Returns true if there are transactions in progess for this session.
|
void |
registerForEvents(FdkSessionListener listener)
Registers a listener for events that may occur on this session.
|
void |
rollbackTransaction(long id)
Rolls back a transaction started by calling
beginTransaction()
. |
protected void |
rollbackTransactionStack()
Rolls back the entire transaction stack.
|
boolean |
unregisterForEvents(FdkSessionListener listener)
Unregisters a previously registered listener.
|
beginRequest, beginRequestCommon, endRequest, getCreationTime, getCurrentSession, getDistinguishedName, getId, getLastAccessTime, getSessionTimeout, getState, getTag, getTrustedApplicationName, getUsername, httpBind, httpUnbind, isConnected, isGuest, isRequestInProgress, isSystem, isTrustedApplication, requestCleanup, setLastAccessTimeUpdate, setSessionTimeout, setState, verifyCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessionIdentifier, getUserIdentifierprotected FdkSessionImpl(boolean supportTxns)
public ManagersFactory getManagersFactory() throws FdkException
getManagersFactory in class FdkSessionFdkExceptionpublic final void registerForEvents(FdkSessionListener listener)
FdkSessionListener interface.registerForEvents in class FdkSessionlistener - The listener to register. It must imlpement the
FdkSessionListener interface.public final boolean unregisterForEvents(FdkSessionListener listener)
false is returned.unregisterForEvents in class FdkSessionlistener - The listener to register. It must imlpement the
FdkSessionListener interface.public Object getInternalSession() throws FdkException
WARNING!
This method should not be called from client code, except for exceptional circumstances where the caller understands the implications of using the underlying internal session directly and opts out of using the framework.
If you need to use this method, please check with the developers of the framework for possible alternate ways of achieving the same result.
getInternalSession in class FdkSessionFdkExceptionpublic abstract LibrarySession getLibrarySession() throws FdkException
LibrarySession associated with this user session.
WARNING!
This method should not be called from client code, except for exceptional
circumstances where the caller understands the implications of using the
LibrarySession directly and opts out of using the framework.
If you need to use this method, please check with the developers of the framework for possible alternate ways of achieving the same result.
FdkExceptionpublic abstract Item getUser(AttributeRequest[] attributes) throws FdkException
attributes - Optional attributes to be returned.FdkExceptionpublic final void disconnect()
throws FdkException
FdkExceptionpublic long beginTransaction()
throws FdkException
commitTransaction() or it can be rolled back by
calling rollbackTransaction() on this session.
This method returns a transaction ID required to later reference this specific transaction.
Transactions can be nested but they need to be committed or rolled back in the proper order, most recent transaction first (stack model).
FdkExceptionpublic void commitTransaction(long id)
throws FdkException
beginTransaction().id - The ID of the transaction (returned by
beginTransaction()).FdkExceptionpublic void rollbackTransaction(long id)
throws FdkException
beginTransaction()
.
If the ID of the transaction is less than or equal to 0, then the entire transaction stack will be rolled back at once.
id - The ID of the transaction (returned by
beginTransaction()). If the ID is less than or
equal to 0, then the entire transaction stack will be rolled
back at once.FdkExceptionpublic boolean isTransactionInProgress()
protected void rollbackTransactionStack()
Copyright © 2025. All rights reserved.