RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
roles.h
1 /*
2  * ======================================================================
3  * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
4  * Licensed under the MIT License.
5  * See LICENSE.md in the project root for license information.
6  * ======================================================================
7 */
8 
9 #ifndef _RMS_LIB_ROLES_H_
10 #define _RMS_LIB_ROLES_H_
11 
12 #include <string>
13 #include "ModernAPIExport.h"
14 
15 namespace rmscore {
16 namespace modernapi {
20 class DLL_PUBLIC_RMS Roles {
21 public:
22 
26  static const std::string Viewer()
27  {
28  return "VIEWER";
29  }
30 
34  static const std::string Reviewer()
35  {
36  return "REVIEWER";
37  }
38 
42  static const std::string Author()
43  {
44  return "AUTHOR";
45  }
46 
50  static const std::string CoOwner()
51  {
52  return "COOWNER";
53  }
54 };
55 } // namespace modernapi
56 } // namespace rmscore
57 
58 #endif // _RMS_LIB_ROLES_H_
static const std::string Viewer()
User will only be able to view the document.
Definition: roles.h:26
Definition: AuthenticationCallbackImpl.h:16
Provides implementation for obtaining roles for protecting documents.
Definition: roles.h:20
static const std::string Reviewer()
User will be able to view and edit the document.
Definition: roles.h:34
static const std::string CoOwner()
User will have all permissions; view, edit, copy and print.
Definition: roles.h:50
static const std::string Author()
User will be able to view, edit, copy, and print the document.
Definition: roles.h:42