33#ifndef API_MIP_UPE_POLICY_HANDLER_H_
34#define API_MIP_UPE_POLICY_HANDLER_H_
94 const std::vector<MetadataEntry>& metadata,
95 const std::shared_ptr<MipContext>& mipContext);
112 const std::vector<MetadataEntry>& metadata,
113 const std::shared_ptr<MipContext>& mipContext,
114 const std::shared_ptr<void>& loggerContext);
A file containing the Action base class and the ActionType enumerator.
Interface for all the state needed to execute the engine.
This class provides an interface for all policy handler functions on a file.
static MIP_API bool __CDECL IsLabeled(const std::vector< MetadataEntry > &metadata, const std::shared_ptr< MipContext > &mipContext, const std::shared_ptr< void > &loggerContext)
Checks whether metadata contains label artifacts.
static MIP_API bool __CDECL IsLabeled(const std::vector< MetadataEntry > &metadata, const std::shared_ptr< MipContext > &mipContext)
Checks whether metadata contains label artifacts.
virtual void NotifyCommittedActions(const ExecutionState &state)=0
Called once the computed actions have been applied, and the data committed to disk.
virtual std::shared_ptr< ContentLabel > GetSensitivityLabel(const ExecutionState &state)=0
Get the sensitivity label from existing content.
virtual std::vector< std::shared_ptr< Action > > ComputeActions(const ExecutionState &state)=0
Executes the rules in the handler based on the provided state and returns the list of actions to be e...
A file Containing the common types used by the upe, file and protection modules.
A file Containing the ContentLabel class.
This file contains the ExecutionState class.
This file contains the Label class.
This file contains the MetadataEntry class.
File containing definition of MipContext.