public abstract class InProcessManagersFactoryImpl extends InProcessManagersFactory implements FdkSessionListener
CONFIG_SERVER_VERSION, CONFIG_WS_URL
Constructor and Description |
---|
InProcessManagersFactoryImpl(FdkCredential credential,
Map config)
Constructs an InProcessManagersFactoryImpl.
|
InProcessManagersFactoryImpl(FdkSessionImpl session)
Package protected constructor used by FdkSessionImpl in some special
cases.
|
Modifier and Type | Method and Description |
---|---|
void |
beginRequest(String tag)
Marks the begining of a request that will result in successive calls to
various managers and their methods.
|
void |
disconnectCallback(FdkSession session)
Called right before a session is about to be disconnected.
|
void |
endRequest()
Marks the end of a request.
|
FdkSession |
getFdkSession()
Returns the FdkSession created by this instance.
|
Item |
getUser(AttributeRequest[] attributes)
Returns the user as an Item that was authenticated for this instance.
|
boolean |
isInProcess()
Returns true if the instance is running in-process, false if it is
running remoted over Web Services.
|
void |
logout()
The counterpart of the
login() methods. |
getExtendedFileContentManager, getExtendedLockManager, getMailManager
getArchiveManager, getAuditManager, getCategoryManager, getCommonManager, getContainerManager, getContentManager, getDomainManager, getFileContentManager, getFileManager, getGroupManager, getLifecycleManager, getLockManager, getRelationManager, getRequestManager, getSearchManager, getSecurityManager, getSessionManager, getSortManager, getSystemConfigurationManager, getTrashManager, getUserManager, getVersionManager, getWorkflowManager, getWorkspaceManager, login, login, login, login
public InProcessManagersFactoryImpl(FdkCredential credential, Map config) throws FdkException
The signature is required to be found via reflection.
credential
- The credentialconfig
- The configuration.FdkException
- if operation failspublic InProcessManagersFactoryImpl(FdkSessionImpl session) throws FdkException
FdkException
public FdkSession getFdkSession()
getFdkSession
in class InProcessManagersFactory
public boolean isInProcess()
isInProcess
in class ManagersFactory
public void beginRequest(String tag) throws FdkException
endRequest()
must
be called so that the resources are properly disposed of.
Note that after the instance is obtained by a login()
call,
one must not call this method, the request can be considered already in
progress and the resources are ready to use.
This method does not support multiple successive calls without a call to
endRequest()
in between or an exception will be raised.
beginRequest
in class ManagersFactory
tag
- A tag that an application must use to identify itself and
that can be used for statistics purposes.
Must not be null
.FdkException
public void endRequest() throws FdkException
beginRequest()
.endRequest
in class ManagersFactory
FdkException
public void logout() throws FdkException
login()
methods.
Logs out any underlying session and disposes the resources allocated by this instance.
Clients must call this method when the instance is no longer needed (i.e. when the user session needs to be terminated).
logout
in class ManagersFactory
FdkException
public void disconnectCallback(FdkSession session)
disconnectCallback
in interface FdkSessionListener
session
- The session being disconnected.public Item getUser(AttributeRequest[] attributes) throws FdkException
getUser
in class ManagersFactory
attributes
- Optional attributes to return. Can be null
.FdkException
Copyright © 2023. All rights reserved.