public abstract static class CDOServerUtil.RepositoryReadAccessValidator extends Object implements IRepository.ReadAccessHandler
read-access handler
that grants or denies access to single
revisions
.Constructor and Description |
---|
CDOServerUtil.RepositoryReadAccessValidator() |
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.
|
protected void |
throwException(ISession session,
List<String> violations) |
protected void |
throwException(String message) |
protected abstract String |
validate(ISession session,
CDORevision revision) |
public CDOServerUtil.RepositoryReadAccessValidator()
public void handleRevisionsBeforeSending(ISession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) throws RuntimeException
IRepository.ReadAccessHandler
handleRevisionsBeforeSending
in interface IRepository.ReadAccessHandler
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!protected void throwException(ISession session, List<String> violations) throws RuntimeException
RuntimeException
protected void throwException(String message) throws RuntimeException
RuntimeException
protected abstract String validate(ISession session, CDORevision revision)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.