@Override protected Object eval(CDOSession session) { return session.getRepositoryInfo().isSupportingAudits(); } });
@Override protected Object eval(CDOSession session) { return session.getRepositoryInfo().isSupportingAudits(); } });
public boolean isSticky() { return !options().isPassiveUpdateEnabled() && getRepositoryInfo().isSupportingAudits(); }
public boolean isSticky() { return !options().isPassiveUpdateEnabled() && getRepositoryInfo().isSupportingAudits(); }
protected InternalCDOSession openRemoteSession() { CDOSessionConfiguration configuration = remoteSessionConfigurationFactory.createSessionConfiguration(); InternalCDOSession session = (InternalCDOSession)configuration.openSession(); CDORepositoryInfo repositoryInfo = session.getRepositoryInfo(); if (!repositoryInfo.isSupportingAudits()) { session.close(); throw new IllegalStateException("Remote repository does not support auditing"); } IDGenerationLocation remoteLocation = repositoryInfo.getIDGenerationLocation(); if (!remoteLocation.equals(idGenerationLocation)) { session.close(); throw new IllegalStateException("Remote repository uses different ID generation location: " + remoteLocation); } return session; }
private static CDORevision getRevisionByVersion(CDOObject object, CDOBranch branch, int version, CDORevision revision) { if (revision.getVersion() != version) { CDOSession session = object.cdoView().getSession(); if (!session.getRepositoryInfo().isSupportingAudits()) { throw new IllegalStateException(Messages.getString("CDOUtil.0")); //$NON-NLS-1$ } revision = session.getRevisionManager().getRevisionByVersion(object.cdoID(), branch.getVersion(version), 0, true); } return revision; }
private static CDORevision getRevisionByVersion(CDOObject object, CDOBranch branch, int version, CDORevision revision) { if (revision.getVersion() != version) { CDOSession session = object.cdoView().getSession(); if (!session.getRepositoryInfo().isSupportingAudits()) { throw new IllegalStateException(Messages.getString("CDOUtil.0")); //$NON-NLS-1$ } revision = session.getRevisionManager().getRevisionByVersion(object.cdoID(), branch.getVersion(version), 0, true); } return revision; }
boolean auditing = repositoryInfo.isSupportingAudits(); boolean branching = repositoryInfo.isSupportingBranches(); boolean ensuringReferentialIntegrity = repositoryInfo.isEnsuringReferentialIntegrity();
@Override protected void doActivate() throws Exception { super.doActivate(); EmbeddedClientSessionProtocol protocol = new EmbeddedClientSessionProtocol(this); setSessionProtocol(protocol); protocol.activate(); protocol.openSession(options().isPassiveUpdateEnabled()); setLastUpdateTime(repository.getLastCommitTimeStamp()); setRepositoryInfo(new RepositoryInfo(this)); InternalCDORevisionManager revisionManager = (InternalCDORevisionManager)CDORevisionUtil.createRevisionManager(); setRevisionManager(revisionManager); revisionManager.setSupportingAudits(getRepositoryInfo().isSupportingAudits()); revisionManager.setSupportingBranches(getRepositoryInfo().isSupportingBranches()); revisionManager.setCache(CDORevisionCache.NOOP); revisionManager.setRevisionLoader(getSessionProtocol()); revisionManager.setRevisionLocker(this); revisionManager.activate(); }
revisionManager.setSupportingAudits(repository.isSupportingAudits()); revisionManager.setSupportingBranches(repository.isSupportingBranches()); revisionManager.setRevisionLoader(sessionProtocol);