Package org.eclipse.emf.cdo.server
Klasse CDOServerUtil.RepositoryReadAccessValidator
java.lang.Object
org.eclipse.emf.cdo.server.CDOServerUtil.RepositoryReadAccessValidator
- Alle implementierten Schnittstellen:
IRepository.Handler,IRepository.ReadAccessHandler
- Umschließende Klasse:
CDOServerUtil
public abstract static class CDOServerUtil.RepositoryReadAccessValidator
extends Object
implements IRepository.ReadAccessHandler
An abstract
read-access handler that grants or denies access to single
revisions.- Seit:
- 2.0
- Autor:
- Eike Stepper
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidhandleRevisionsBeforeSending(ISession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) Provides a way to handle revisions that are to be sent to the client.protected voidthrowException(String message) protected voidthrowException(ISession session, List<String> violations) protected abstract Stringvalidate(ISession session, CDORevision revision)
-
Konstruktordetails
-
RepositoryReadAccessValidator
public RepositoryReadAccessValidator()
-
-
Methodendetails
-
handleRevisionsBeforeSending
public void handleRevisionsBeforeSending(ISession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) throws RuntimeException Beschreibung aus Schnittstelle kopiert:IRepository.ReadAccessHandlerProvides a way to handle revisions that are to be sent to the client.- Angegeben von:
handleRevisionsBeforeSendingin SchnittstelleIRepository.ReadAccessHandler- Parameter:
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.- Löst aus:
RuntimeException- to indicate that none of the revisions must be sent to the client. This exception will be visible at the client side!
-
throwException
- Löst aus:
RuntimeException
-
throwException
- Löst aus:
RuntimeException
-
validate
-