类 ExecutionState

执行引擎所需的所有状态的接口。 客户端应仅调用方法以获取所需的状态。 因此,为了提高效率,客户端可能想要实现此接口,以便动态计算相应的状态,而不是提前计算。

总结

成员 说明
public std::shared_ptr<Label> GetNewLabel() const 获取应应用于文档的敏感度标签 ID。
public std::string GetContentIdentifier() const 获取描述文档的内容说明。 文件示例:[path\filename] 电子邮件示例:[Subject:Sender]。
public virtual std::string GetApplicationScenarioId() const 返回一个标识符,该标识符将应用程序事件与相应的审核或保护服务 REST 请求相关联。
public virtual DataState GetDataState() const 获取应用程序与其交互时的内容的状态。
public std::pair<bool, std::string> IsDowngradeJustified() const 如果提供了降级现有标签的理由,则实现应传递。
public AssignmentMethod GetNewLabelAssignmentMethod() const 获取新标签的赋值方法。
public virtual std::vector<std::pair<std::string, std::string>> GetNewLabelExtendedProperties() const 返回新标签的扩展属性。
public std::vector<MetadataEntry> GetContentMetadata(const std::vector<std::string>& names, const std::vector<std::string>& namePrefixes) const 从内容获取元数据项。
public std::shared_ptr<ProtectionDescriptor> GetProtectionDescriptor() const 获取保护描述符。
public std::string GetContentFormat() const 获取内容格式。
public virtual MetadataVersion GetContentMetadataVersion() const 获取租户应用程序支持的最高元数据版本。
public ActionType GetSupportedActions() const 获取描述所有受支持的操作类型的掩码枚举。
public virtual std::shared_ptr<ClassificationResults> GetClassificationResults(const std::vector<std::shared_ptr<ClassificationRequest>> &) const 返回分类结果的映射。
public virtual std::map<std::string, std::string> GetAuditMetadata() const 返回应用程序特定的审核键值对的映射。

成员

GetNewLabel 函数

获取应应用于文档的敏感度标签 ID。

返回:要应用于内容的敏感度标签 ID(如果存在,则为空以删除标签)。

GetContentIdentifier 函数

获取描述文档的内容说明。 文件示例:[path\filename] 电子邮件示例:[Subject:Sender]。

返回结果:应用于内容的内容说明。 此值通过审核作为内容的可读说明使用

GetApplicationScenarioId 函数

返回一个标识符,该标识符将应用程序事件与相应的审核或保护服务 REST 请求相关联。

返回:标识符(通常指定为 GUID)

GetDataState 函数

获取应用程序与其交互时的内容的状态。

返回:内容数据的状态

IsDowngradeJustified 函数

如果提供了降级现有标签的理由,则实现应传递。

返回:如果降级为 justifiedalong,则返回 True,其理由 messageelse false

另请参阅:mip::JustifyAction

GetNewLabelAssignmentMethod 函数

获取新标签的赋值方法。

返回:赋值方法 STANDARD、PRIVILEGED、AUTO。

请参阅:mip::AssignmentMethod

GetNewLabelExtendedProperties 函数

返回新标签的扩展属性。

返回:应用于内容的扩展属性。

GetContentMetadata 函数

从内容获取元数据项。

返回:应用于内容的元数据。 每个元数据项都是一对名称和值。

GetProtectionDescriptor 函数

获取保护描述符。

返回:保护描述符

GetContentFormat 函数

获取内容格式。

返回结果:内容格式

GetContentMetadataVersion 函数

获取租户应用程序支持的最高元数据版本。

返回结果:内容元数据版本。 如果为 0,则表示未对元数据进行版本控制。 如果文件格式支持多个版本的元数据,这将允许 MIP 了解所有元数据,并在每个版本的基础上报告细粒度元数据变更。

GetSupportedActions 函数

获取描述所有受支持的操作类型的掩码枚举。

返回:一个掩码枚举,描述所有受支持的操作类型。 必须支持 ActionType::Justify。 当策略和标签更改需要理由时,将始终返回理由操作。

GetClassificationResults 函数

返回分类结果的映射。

参数:

  • classificationIds:分类 ID 列表。

返回结果:分类结果列表。 如果未执行分类周期,则返回 nullptr。

GetAuditMetadata 函数

返回应用程序特定的审核键值对的映射。

返回结果:应用程序特定的审核元数据注册键值对列表;Sender:发件人的电子邮件 ID;Recipients:表示电子邮件的 JSON 收件人数组;LastModifiedBy:上次修改内容的用户的电子邮件 ID;LastModifiedDate:上次修改内容的日期