Add wrapper in CynaraAdmin for Cynara listing policies.
[platform/core/security/security-manager.git] / src / common / include / cynara.h
index b74a4ec..7713f42 100644 (file)
@@ -135,6 +135,22 @@ public:
      */
     void UserInit(uid_t uid, security_manager_user_type userType);
 
+    /**
+     * List Cynara policies that match selected criteria in given bucket.
+     *
+     * @param bucketName name of the bucket to search policies in
+     * @param appId string with id of app to match in search
+     * @param user user string to match in search
+     * @param privilege privilege string to match in search
+     * @param policies empty vector for results of policies filtering.
+     *
+     */
+    void ListPolicies(const std::string &bucketName,
+        const std::string &appId,
+        const std::string &user,
+        const std::string &privilege,
+        std::vector<CynaraAdminPolicy> &policies);
+
 private:
     CynaraAdmin();
     struct cynara_admin *m_CynaraAdmin;