public static interface IRepository.ReadAccessHandler extends IRepository.Handler
Modifier and Type | Method and Description |
---|---|
void |
handleRevisionsBeforeSending(ISession session,
CDORevision[] revisions,
List<CDORevision> additionalRevisions)
Provides a way to handle revisions that are to be sent to the client.
|
void handleRevisionsBeforeSending(ISession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) throws RuntimeException
session
- The session that is going to send the revisions.revisions
- The revisions that are requested by the client. If the client must not see any of these revisions an
unchecked exception must be thrown.additionalRevisions
- The additional revisions that are to be sent to the client because internal optimizers believe that they
will be needed soon. If the client must not see any of these revisions they should be removed from the
list.RuntimeException
- to indicate that none of the revisions must be sent to the client. This exception will be visible at
the client side!Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html