public interface AuthorizationManager
Modifier and Type | Method and Description |
---|---|
java.util.Collection<AuthorizationResponse> |
authorizeDocids(java.util.Collection<java.lang.String> docids,
AuthenticationIdentity identity)
Gets authorization from the repository for a set of documents by ID.
|
java.util.Collection<AuthorizationResponse> authorizeDocids(java.util.Collection<java.lang.String> docids, AuthenticationIdentity identity) throws RepositoryException
docids
- The document set represented as a Collection
of
Strings: the docid for each document. The Connector Manager will
ensure that no docid is repeated in this collection. The docid
strings which the connector manager will pass in should have come
from the search appliance, from documents that this connector
submitted for indexing via traversal. Thus the docids should have
started as SpiConstants.PROPNAME_DOCID
properties that
were part of an DocumentList
returned from a
TraversalManager.startTraversal
or
TraversalManager.resumeTraversal
call.identity
- The user's identity, as an
AuthenticationIdentity
Collection
of AuthorizationResponse
objects.
The collection of responses need not be in the same order as the
collection of docids. The returned collection of responses may
contain only those docids for which the user has positive access.
[In other words, negative repsonses are optional.]RepositoryException