Package org.eclipse.emf.spi.cdo
Interface InternalCDOSession
- All Superinterfaces:
CDOCommonSession
,CDORevisionUnchunker
,CDOSession
,CDOTransactionContainer
,CDOTransactionOpener
,CDOUpdatable
,CDOViewContainer
,CDOViewOpener
,org.eclipse.net4j.util.collection.Closeable
,IAdaptable
,org.eclipse.net4j.util.container.IContainer<CDOView>
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.event.INotifier
,InternalCDOPackageRegistry.PackageLoader
,InternalCDOPackageRegistry.PackageProcessor
,InternalCDORevisionManager.RevisionLocker
,org.eclipse.net4j.util.options.IOptionsContainer
,org.eclipse.net4j.util.security.IPasswordCredentialsProvider.Provider
,org.eclipse.net4j.util.properties.IPropertiesContainer
,org.eclipse.net4j.util.security.IUserAware
public interface InternalCDOSession
extends CDOSession, InternalCDOPackageRegistry.PackageProcessor, InternalCDOPackageRegistry.PackageLoader, InternalCDORevisionManager.RevisionLocker, CDORevisionUnchunker, org.eclipse.net4j.util.lifecycle.ILifecycle, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
If the meaning of this type isn't clear, there really should be more of a description here...
- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A token that is maintained during local commits of transactions.static final class
A data structure that holds all input values ofInternalCDOSession#invalidate()
.static final class
A data structure that holds all input and output values ofInternalCDOSession.getMergeData()
.Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.session.CDOSession
CDOSession.ExceptionHandler, CDOSession.Options
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends Object>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable
NO_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.As of 4.2 not used anymore.void
createRevisionAvailabilityInfo
(CDOBranchPoint branchPoint) Deprecated.As of 4.2 not used anymore.void
endLocalCommit
(Object token) Deprecated.As of 4.2 useIPasswordCredentialsProvider.Provider.getCredentialsProvider()
Returns the CDObranch manager
that manages thebranches
of the repository of this session.Returns the CDOcommit info manager
of this session.getMergeData
(CDOBranchPoint target, CDOBranchPoint source, CDOBranchPoint sourceBase, boolean computeChangeSets) getMergeData
(CDOBranchPoint target, CDOBranchPoint source, CDOBranchPoint targetBase, CDOBranchPoint sourceBase, boolean computeChangeSets) Returns the CDOremote session manager
that keeps track of the other remote sessions served by the repository of this local session.Returns the CDOrevision manager
that manages therevisions
of the repository of this session.getViews()
Returns an array of all openviews
andtransactions
of this session.void
Deprecated.As of 4.3 no longer supported.void
handleCommitNotification
(CDOCommitInfo commitInfo) Deprecated.As of 4.2 usehandleCommitNotification(CDOCommitInfo, boolean)
.void
handleCommitNotification
(CDOCommitInfo commitInfo, boolean clearResourcePathCache) Deprecated.As of 4.3 usehandleCommitNotification(CommitNotificationInfo)
.void
void
handleLockNotification
(CDOLockChangeInfo lockChangeInfo, InternalCDOView sender) Deprecated.void
handleLockNotification
(CDOLockChangeInfo lockChangeInfo, InternalCDOView sender, boolean async) void
handleRepositoryStateChanged
(CDOCommonRepository.State oldState, CDOCommonRepository.State newState) void
handleRepositoryTypeChanged
(CDOCommonRepository.Type oldType, CDOCommonRepository.Type newType) void
handleViewClosed
(int viewID) void
invalidate
(CDOCommitInfo commitInfo, InternalCDOTransaction sender) Deprecated.As of 4.2 useinvalidate(CDOCommitInfo, InternalCDOTransaction, boolean)
.void
invalidate
(CDOCommitInfo commitInfo, InternalCDOTransaction sender, boolean clearResourcePathCache) Deprecated.void
invalidate
(CDOCommitInfo commitInfo, InternalCDOTransaction sender, boolean clearResourcePathCache, byte securityImpact, Map<CDOID, CDOPermission> newPermissions) Deprecated.As of 4.6 useinvalidate(InvalidationData)
.void
invalidate
(InternalCDOSession.InvalidationData invalidationData) boolean
isSticky()
void
processRefreshSessionResult
(CDOSessionProtocol.RefreshSessionResult result, CDOBranch branch, List<InternalCDOView> branchViews, Map<CDOBranch, Map<CDOID, InternalCDORevision>> viewedRevisions) void
resetCredentials
(String userID) Initiates (possibly interactive) reset of credentials for the specified user.void
resolveAllElementProxies
(CDORevision revision) resolveElementProxy
(CDORevision revision, EStructuralFeature feature, int accessIndex, int serverIndex) void
setAuthenticator
(CDOAuthenticator authenticator) Deprecated.As of 4.2 usesetCredentialsProvider(IPasswordCredentialsProvider)
void
setBranchManager
(InternalCDOBranchManager branchManager) void
setCommitInfoManager
(InternalCDOCommitInfoManager commitInfoManager) void
setCommittedSinceLastRefresh
(CDOID id, CDOBranchPoint branchPoint) void
setCredentialsProvider
(org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider) void
setExceptionHandler
(CDOSession.ExceptionHandler exceptionHandler) void
setFetchRuleManager
(CDOFetchRuleManager fetchRuleManager) void
setIDGenerator
(CDOIDGenerator idGenerator) void
setLastUpdateTime
(long lastUpdateTime) void
setLoginPeek
(boolean loginPeek) void
setMainBranchLocal
(boolean mainBranchLocal) void
setPackageRegistry
(InternalCDOPackageRegistry packageRegistry) void
setRemoteSessionManager
(InternalCDORemoteSessionManager remoteSessionManager) void
setRepositoryInfo
(CDORepositoryInfo repositoryInfo) void
setRevisionManager
(InternalCDORevisionManager revisionManager) void
setSessionID
(int sessionID) void
setSessionProtocol
(CDOSessionProtocol sessionProtocol) void
void
syncExec
(org.eclipse.net4j.util.RunnableWithException runnable) void
viewDetached
(InternalCDOView view) Methods inherited from interface org.eclipse.emf.cdo.common.CDOCommonSession
authorizeOperations, getOpeningTime, getSessionID, getView
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.CDORevisionUnchunker
ensureChunks
Methods inherited from interface org.eclipse.emf.cdo.session.CDOSession
changeCredentials, changeServerPassword, compareRevisions, getExceptionHandler, getFetchRuleManager, getIDGenerator, getRepositoryInfo, newBlob, newBlob, newClob, newClob, options, refresh, refresh, waitForUpdate, waitForUpdate
Methods inherited from interface org.eclipse.emf.cdo.transaction.CDOTransactionContainer
getTransaction, getTransactions, getTransactions, openTransaction, openTransaction, openTransaction, openTransaction, openTransaction, openTransaction
Methods inherited from interface org.eclipse.emf.cdo.transaction.CDOTransactionOpener
openTransaction, openTransaction
Methods inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable
getLastUpdateTime, runAfterUpdate
Methods inherited from interface org.eclipse.emf.cdo.view.CDOViewContainer
getView, getViews, openView, openView, openView, openView, openView, openView, openView, openView
Methods inherited from interface org.eclipse.emf.cdo.view.CDOViewOpener
openView, openView
Methods inherited from interface org.eclipse.net4j.util.collection.Closeable
close, isClosed
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
getExecutorService
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Methods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageLoader
loadPackages
Methods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageProcessor
processPackage
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLocker
acquireAtomicRequestLock, releaseAtomicRequestLock
Methods inherited from interface org.eclipse.net4j.util.security.IPasswordCredentialsProvider.Provider
getCredentialsProvider
Methods inherited from interface org.eclipse.net4j.util.properties.IPropertiesContainer
properties
Methods inherited from interface org.eclipse.net4j.util.security.IUserAware
getUserID
-
Method Details
-
getViews
InternalCDOView[] getViews()Description copied from interface:CDOViewContainer
Returns an array of all openviews
andtransactions
of this session.- Specified by:
getViews
in interfaceCDOCommonSession
- Specified by:
getViews
in interfaceCDOViewContainer
- Since:
- 4.12
- See Also:
-
getSessionProtocol
CDOSessionProtocol getSessionProtocol() -
setSessionProtocol
- Since:
- 3.0
-
getLockStateCache
CDOLockStateCache getLockStateCache()- Since:
- 4.15
-
getAuthenticator
Deprecated.As of 4.2 useIPasswordCredentialsProvider.Provider.getCredentialsProvider()
- Since:
- 4.0
-
setAuthenticator
Deprecated.As of 4.2 usesetCredentialsProvider(IPasswordCredentialsProvider)
- Since:
- 4.0
-
setCredentialsProvider
void setCredentialsProvider(org.eclipse.net4j.util.security.IPasswordCredentialsProvider credentialsProvider) - Since:
- 4.2
-
getPackageRegistry
InternalCDOPackageRegistry getPackageRegistry()Description copied from interface:CDOSession
Returns the EMFpackage registry
that is used by allobjects
of allviews
of this session.This registry is managed by the
package unit manager
of this session. Allpackages
that are already persisted in the repository of this session are automatically registered with this registry. New packages can be locally registered with this registry and are committed to the repository through atransaction
, if needed.- Specified by:
getPackageRegistry
in interfaceCDOSession
-
setPackageRegistry
- Since:
- 4.0
-
getBranchManager
InternalCDOBranchManager getBranchManager()Description copied from interface:CDOSession
Returns the CDObranch manager
that manages thebranches
of the repository of this session.- Specified by:
getBranchManager
in interfaceCDOCommonSession
- Specified by:
getBranchManager
in interfaceCDOSession
- Since:
- 3.0
-
setBranchManager
- Since:
- 4.0
-
getRevisionManager
InternalCDORevisionManager getRevisionManager()Description copied from interface:CDOSession
Returns the CDOrevision manager
that manages therevisions
of the repository of this session.- Specified by:
getRevisionManager
in interfaceCDOCommonSession
- Specified by:
getRevisionManager
in interfaceCDOSession
- Since:
- 3.0
-
setRevisionManager
- Since:
- 4.0
-
getCommitInfoManager
InternalCDOCommitInfoManager getCommitInfoManager()Description copied from interface:CDOSession
Returns the CDOcommit info manager
of this session.- Specified by:
getCommitInfoManager
in interfaceCDOCommonSession
- Specified by:
getCommitInfoManager
in interfaceCDOSession
- Since:
- 3.0
-
setCommitInfoManager
- Since:
- 4.0
-
getRemoteSessionManager
InternalCDORemoteSessionManager getRemoteSessionManager()Description copied from interface:CDOSession
Returns the CDOremote session manager
that keeps track of the other remote sessions served by the repository of this local session.- Specified by:
getRemoteSessionManager
in interfaceCDOSession
- Since:
- 3.0
-
setRemoteSessionManager
- Since:
- 3.0
-
getLobStore
CDOLobStore getLobStore()- Since:
- 4.0
-
setExceptionHandler
-
setIDGenerator
- Since:
- 4.1
-
setFetchRuleManager
- Since:
- 3.0
-
setRepositoryInfo
- Since:
- 3.0
-
setSessionID
void setSessionID(int sessionID) - Since:
- 3.0
-
setUserID
-
setLastUpdateTime
void setLastUpdateTime(long lastUpdateTime) - Since:
- 3.0
-
resetCredentials
Initiates (possibly interactive) reset of credentials for the specified user. This is an optional operation of the session and only available for administrators.- Parameters:
userID
- the ID of the user for which to reset credentials- Throws:
UnsupportedOperationException
- if the session implementation does not permit resetting user credentials- Since:
- 4.3
- See Also:
-
IPasswordCredentialsProvider.Provider.getCredentialsProvider()
-
viewDetached
-
resolveElementProxy
Object resolveElementProxy(CDORevision revision, EStructuralFeature feature, int accessIndex, int serverIndex) - Since:
- 3.0
-
resolveAllElementProxies
- Since:
- 4.0
-
handleRepositoryTypeChanged
void handleRepositoryTypeChanged(CDOCommonRepository.Type oldType, CDOCommonRepository.Type newType) - Since:
- 3.0
-
handleRepositoryStateChanged
void handleRepositoryStateChanged(CDOCommonRepository.State oldState, CDOCommonRepository.State newState) - Since:
- 3.0
-
handleBranchNotification
Deprecated.As of 4.3 no longer supported.- Since:
- 3.0
-
handleCommitNotification
Deprecated.As of 4.2 usehandleCommitNotification(CDOCommitInfo, boolean)
.- Since:
- 3.0
-
handleCommitNotification
Deprecated.As of 4.3 usehandleCommitNotification(CommitNotificationInfo)
.- Since:
- 4.2
-
handleCommitNotification
- Since:
- 4.3
-
handleLockNotification
Deprecated.- Since:
- 4.1
-
handleLockNotification
void handleLockNotification(CDOLockChangeInfo lockChangeInfo, InternalCDOView sender, boolean async) - Since:
- 4.12
-
handleViewClosed
void handleViewClosed(int viewID) - Since:
- 4.15
-
syncExec
- Throws:
Exception
- Since:
- 4.22
-
startLocalCommit
Object startLocalCommit()- Since:
- 4.3
-
endLocalCommit
- Since:
- 4.3
-
invalidate
Deprecated.As of 4.2 useinvalidate(CDOCommitInfo, InternalCDOTransaction, boolean)
.- Since:
- 3.0
-
invalidate
@Deprecated void invalidate(CDOCommitInfo commitInfo, InternalCDOTransaction sender, boolean clearResourcePathCache) Deprecated.- Since:
- 4.2
-
invalidate
@Deprecated void invalidate(CDOCommitInfo commitInfo, InternalCDOTransaction sender, boolean clearResourcePathCache, byte securityImpact, Map<CDOID, CDOPermission> newPermissions) Deprecated.As of 4.6 useinvalidate(InvalidationData)
.- Since:
- 4.3
-
invalidate
- Since:
- 4.6
-
processRefreshSessionResult
void processRefreshSessionResult(CDOSessionProtocol.RefreshSessionResult result, CDOBranch branch, List<InternalCDOView> branchViews, Map<CDOBranch, Map<CDOID, InternalCDORevision>> viewedRevisions) - Since:
- 3.0
-
isSticky
boolean isSticky()- Since:
- 4.0
-
getCommittedSinceLastRefresh
- Since:
- 4.0
-
setCommittedSinceLastRefresh
- Since:
- 4.0
-
clearCommittedSinceLastRefresh
void clearCommittedSinceLastRefresh()- Since:
- 4.0
-
setLoginPeek
void setLoginPeek(boolean loginPeek) - Since:
- 4.23
-
setMainBranchLocal
void setMainBranchLocal(boolean mainBranchLocal) - Since:
- 4.0
-
createRevisionAvailabilityInfo
Deprecated.As of 4.2 not used anymore.- Since:
- 4.0
-
cacheRevisions
Deprecated.As of 4.2 not used anymore.- Since:
- 4.0
-
getMergeData
InternalCDOSession.MergeData getMergeData(CDOBranchPoint target, CDOBranchPoint source, CDOBranchPoint sourceBase, boolean computeChangeSets) - Since:
- 4.2
-
getMergeData
InternalCDOSession.MergeData getMergeData(CDOBranchPoint target, CDOBranchPoint source, CDOBranchPoint targetBase, CDOBranchPoint sourceBase, boolean computeChangeSets) - Since:
- 4.6
-
updatePermissions
Map<CDORevision,CDOPermission> updatePermissions()- Since:
- 4.22
-