共用方式為


類別 FileEngine

這個類別提供所有引擎函式的介面。

摘要

成員 Description
public const 設定& Get 設定() const 傳回引擎設定。
public const std::vector<std::shared_ptr<SensitivityTypesRulePackage>>& ListSensitivityTypes() const 列出與原則引擎相關聯的敏感度類型。
public const std::shared_ptr<Label> GetDefaultSensitivityLabel() const 取得預設敏感度標籤。
public std::shared_ptr<Label> GetLabelById(const std::string& id) const 根據提供的標識碼取得標籤。
public const std::vector<std::shared_ptr<Label>> ListSensitivityLabels() 傳回敏感度標籤的清單。
public const std::string& GetMoreInfoUrl() const 提供 URL 以查閱原則/標籤的詳細資訊。
public const std::string& GetPolicyFileId() const 取得原則檔案標識碼。
public const std::string& GetSensitivityFileId() const 取得敏感度檔案標識碼。
public bool IsLabelingRequired() const 檢查原則是否規定文件必須加上標籤。
public std::chrono::time_point<std::chrono::system_clock> GetLastPolicyFetchTime() const 取得上次擷取原則的時間。
public const std::string& GetPolicyDataXml() const 取得原則數據 XML,其描述與此原則相關聯的設定、標籤和規則。
public std::shared_ptr<AsyncControl> CreateFileHandlerAsync(const std::string& inputFilePath, const std::string& actualFilePath, bool isAuditDiscoveryEnabled, const std::shared_ptr<FileHandler::Observer>& fileHandlerObserver, const std::shared_ptr void>& context, const std::shared_ptr<<FileExecutionState& fileExecutionState>, bool isGetSensitivityLabelAuditDiscoveryEnabled) 開始為指定的檔案路徑建立檔案處理程式。
public std::shared_ptr<AsyncControl> CreateFileHandlerAsync(const std::shared_ptr<Stream>& inputStream, const std::string& actualFilePath, bool isAuditDiscoveryEnabled, const std::shared_ptr<FileHandler::Observer>& fileHandlerObserver, const std::shared_ptr<void>& context, const std::shared_ptr<FileExecutionState& fileExecutionState>, bool isGetSensitivityLabelAuditDiscoveryEnabled) 開始為指定的檔案數據流建立檔案處理程式。
public void SendApplicationAuditEvent(const std::string& level, const std::string& eventType, const std::string& eventData) 將應用程式特定事件記錄到稽核管線。
public const std::vector<std::p air<std::string, std::string>>& GetCustom 設定() const 取得自訂設定的清單。
public bool HasClassificationRules() const 取得原則是否具有自動或建議規則。
public bool HasWorkloadConsent(工作負載工作負載) const 檢查使用者是否已同意特定工作負載。。

成員

Get 設定 函式

傳回引擎設定。

ListSensitivityTypes 函式

列出與原則引擎相關聯的敏感度類型。

回:敏感度標籤的清單。 如果 LoadSensitivityTypesEnabled 為 false,則為 empty (

請參閱:FileEngine::設定)。

GetDefaultSensitivityLabel 函式

取得預設敏感度標籤。

回:如果存在,則為默認敏感度標籤,如果沒有設定默認標籤,則為 nullptr。

GetLabelById 函式

根據提供的標識碼取得標籤。

ListSensitivityLabels 函式

傳回敏感度標籤的清單。

GetMoreInfoUrl 函式

提供 URL 以查閱原則/標籤的詳細資訊。

回:字串格式的 URL。

GetPolicyFileId 函式

取得原則檔案標識碼。

回:代表原則檔案標識符的字串

GetSensitivityFileId 函式

取得敏感度檔案標識碼。

回:代表原則檔案標識符的字串

IsLabelingRequired 函式

檢查原則是否規定文件必須加上標籤。

傳回:如果標籤為必要,則為 True,否則為 false。

GetLastPolicyFetchTime 函式

取得上次擷取原則的時間。

回:上次擷取原則的時間

GetPolicyDataXml 函式

取得原則數據 XML,其描述與此原則相關聯的設定、標籤和規則。

回:原則數據 XML。

CreateFileHandlerAsync 函式

開始為指定的檔案路徑建立檔案處理程式。

參數:

  • inputFilePath:要開啟的檔案。 路徑必須包含檔名,如果檔名存在,則擴展名為 。

  • actualFilePath:實際(非暫存)檔案路徑將用於稽核。

  • isAuditDiscoveryEnabled:表示是否啟用稽核探索。

  • fileHandlerObserver:實作 FileHandler::Observer 介面的類別。

  • context:將不透明地傳回給觀察者的客戶端內容。

  • isGetSensitivityLabelAuditDiscoveryEnabled:表示是否針對 getSensitivityLabel 觸發稽核探索。

回:異步控件物件。

CreateFileHandlerAsync 函式

開始為指定的檔案數據流建立檔案處理程式。

參數:

  • inputStream:包含檔案數據的數據流。

  • actualFilePath:檔案的路徑。 路徑必須包含檔名,如果檔名存在,則擴展名為 。 也會使用 來識別稽核中的檔案。

  • isAuditDiscoveryEnabled:表示是否啟用稽核探索。

  • fileHandlerObserver:實作 FileHandler::Observer 介面的類別。

  • context:將不透明地傳回給觀察者的客戶端內容。

  • isGetSensitivityLabelAuditDiscoveryEnabled:表示是否針對 getSensitivityLabel 觸發稽核探索。

回:異步控件物件。

SendApplicationAuditEvent 函式

將應用程式特定事件記錄到稽核管線。

參數:

  • level:記錄層級的描述:Info/Error/Warning

  • eventType:事件類型的描述

  • eventData:與事件相關聯的數據

GetCustom 設定 函式

取得自訂設定的清單。

回:自定義設定的向量

HasClassificationRules 函式

取得原則是否具有自動或建議規則。

回:布爾值,指出原則中是否有任何自動或建議規則

HasWorkloadConsent 函式

檢查使用者是否已同意特定工作負載。。

傳回:指出同意的Bool。