32#ifndef API_MIP_UPE_EXECUTION_STATE_H_
33#define API_MIP_UPE_EXECUTION_STATE_H_
57 inline std::string
Sender() {
return "Sender"; }
130 return std::vector<std::pair<std::string, std::string>>();
140 const std::vector<std::string>& names,
141 const std::vector<std::string>& namePrefixes)
const = 0;
186 const std::vector<std::shared_ptr<ClassificationRequest>>& )
const {
202 return std::map<std::string, std::string>();
A file containing the Action base class and the ActionType enumerator.
ActionType
Different action types.
Definition action.h:46
Interface for all the state needed to execute the engine.
Definition execution_state.h:70
virtual std::shared_ptr< ClassificationResults > GetClassificationResults(const std::vector< std::shared_ptr< ClassificationRequest > > &) const
Return a map of classification results.
Definition execution_state.h:185
virtual std::shared_ptr< Label > GetNewLabel() const =0
Gets the sensitivity label ID that should be applied on the document.
virtual std::vector< std::pair< std::string, std::string > > GetNewLabelExtendedProperties() const
Return new label's extended properties.
Definition execution_state.h:129
virtual std::pair< bool, std::string > IsDowngradeJustified() const =0
Implementation should pass if justification to downgrade an existing label was given.
virtual std::string GetApplicationScenarioId() const
Return an identifier which correlates application events with the corresponding audit or protection s...
Definition execution_state.h:95
virtual std::shared_ptr< ProtectionDescriptor > GetProtectionDescriptor() const =0
Get the Protection Descriptor.
virtual MetadataVersion GetContentMetadataVersion() const
Gets the highest metadata version supported by the application for the tenant.
Definition execution_state.h:164
virtual std::string GetContentFormat() const =0
Gets the content format.
virtual ActionType GetSupportedActions() const =0
Gets a masked enum describing all the supported action types.
virtual DataState GetDataState() const
Gets the state of the content while the application is interacting with it.
Definition execution_state.h:104
virtual AssignmentMethod GetNewLabelAssignmentMethod() const =0
Get the new label's assignment method.
virtual std::vector< MetadataEntry > GetContentMetadata(const std::vector< std::string > &names, const std::vector< std::string > &namePrefixes) const =0
Get the meta-data items from the content.
virtual std::string GetContentIdentifier() const =0
Gets the content description that describes the document. example for a file: [path\filename] example...
virtual std::map< std::string, std::string > GetAuditMetadata() const
Return a map of application specific audit key-value pairs.
Definition execution_state.h:201
This file contains the ClassificationRequest class.
This file contains the ClassificationResult class.
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...
Definition common_types.h:75
DataState
Defines what state of the data is the application acting upon.
Definition common_types.h:94
This file contains the Label class.
This file contains the MetadataEntry class.
Defines ProtectionDescriptor interface.