strus  0.17
aclReaderInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_ACL_READER_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ACL_READER_INTERFACE_HPP_INCLUDED
12 #include "strus/index.hpp"
13 #include <string>
14 #include <vector>
15 
16 namespace strus
17 {
18 
21 {
22 public:
24  virtual ~AclReaderInterface(){}
25 
28  virtual void skipDoc( const Index& docno)=0;
29 
32  virtual std::vector<std::string> getReadAccessList() const=0;
33 };
34 }//namespace
35 #endif
36 
int32_t Index
Number type generally used for locally counted indices.
Definition: index.hpp:29
Numeric types used for local and global indices.
Interface for accessing document attributes from a strus storage.
Definition: aclReaderInterface.hpp:20
virtual std::vector< std::string > getReadAccessList() const =0
Get the names of all users that are attached to this document, allowed to read the document...
virtual ~AclReaderInterface()
Destructor.
Definition: aclReaderInterface.hpp:24
virtual void skipDoc(const Index &docno)=0
Move the ACL reader context to a specific document.