Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
labeling_options.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) Microsoft Corporation.
4 * All rights reserved.
5 *
6 * This code is licensed under the MIT License.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files(the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions :
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27
28#ifndef API_MIP_FILE_LABELING_OPTIONS_H_
29#define API_MIP_FILE_LABELING_OPTIONS_H_
30
31#include <string>
32#include <vector>
33
34#include "mip/common_types.h"
35#include "mip/mip_namespace.h"
36
37MIP_NAMESPACE_BEGIN
38
39/**
40 * @brief Interface for configuring labeling options for the SetLabel/DeleteLabel methods
41 */
42class
44public:
49
53
54 bool IsDowngradeJustified() const {
56 }
57
58 const std::string& GetJustificationMessage() const {
60 }
61
62 const std::vector<std::pair<std::string, std::string>>& GetExtendedProperties() const {
64 }
65
66 void SetDowngradeJustification(bool isDowngradeJustified, const std::string& justificationMessage) {
67 mIsDowngradeJustified = isDowngradeJustified;
68 mJustificationMessage = justificationMessage;
69 }
70
71 void SetExtendedProperties(const std::vector<std::pair<std::string, std::string>>& extendedProperties) {
72 mExtendedProperties = extendedProperties;
73 }
74
75private:
79 std::vector<std::pair<std::string, std::string>> mExtendedProperties;
80};
81
82MIP_NAMESPACE_END
83
84#endif // API_MIP_FILE_LABELING_OPTIONS_H_
Interface for configuring labeling options for the SetLabel/DeleteLabel methods.
bool IsDowngradeJustified() const
const std::vector< std::pair< std::string, std::string > > & GetExtendedProperties() const
std::vector< std::pair< std::string, std::string > > mExtendedProperties
const std::string & GetJustificationMessage() const
void SetDowngradeJustification(bool isDowngradeJustified, const std::string &justificationMessage)
void SetExtendedProperties(const std::vector< std::pair< std::string, std::string > > &extendedProperties)
AssignmentMethod mAssignmentMethod
std::string mJustificationMessage
AssignmentMethod GetAssignmentMethod() const
LabelingOptions(AssignmentMethod method)
A file Containing the common types used by the upe, file and protection modules.
AssignmentMethod
The assignment method of the label on the document. Whether the Assignment of the label was done auto...
MIP namespace macros.