refactoring: move addItem() declarations 23/199123/7
authorAdrian Szyndela <adrian.s@samsung.com>
Mon, 4 Feb 2019 11:31:30 +0000 (12:31 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Mon, 11 Feb 2019 11:08:47 +0000 (12:08 +0100)
This is a move towards making single public and single private
section in NaivePolicyDb.

Change-Id: Ib300da409a4442b1578f3a48ae888c1982de24fa

src/internal/naive_policy_db.hpp

index ef06bd3..862985b 100755 (executable)
@@ -108,28 +108,6 @@ namespace ldp_xml_parser
                                           const PolicyTypeValue policy_type_value,
                                           const PolicyAccess*& policy) const;
 
-               /** Adds item to ownership policy
-                * \param[in] policy_type Policy type
-                * \param[in] policy_type_value Policy type value
-                * \param[in] item Item to add
-                */
-               void addItem(const PolicyType policy_type,
-                                        const PolicyTypeValue policy_type_value,
-                                        ItemOwn* const item);
-
-               /** Adds item to send/receive policy
-                * \param[in] policy_type Policy type
-                * \param[in] policy_type_value Policy type value
-                * \param[in] item Item to add
-                */
-               void addItem(const PolicyType policy_type,
-                                        const PolicyTypeValue policy_type_value,
-                                        ItemSendReceive* const item);
-
-               void addItem(const PolicyType policy_type,
-                                        const PolicyTypeValue policy_type_value,
-                                        ItemAccess* const item);
-
        private:
                typedef std::vector<gid_t> VGid;
 
@@ -195,6 +173,33 @@ namespace ldp_xml_parser
                const VGid *getGroups(uid_t uid, gid_t gid, const ItemType type) const;
 
                void initializeGroups(uid_t uid, gid_t gid);
+
+               /** Adds item to ownership policy
+                * \param[in] policy_type Policy type
+                * \param[in] policy_type_value Policy type value
+                * \param[in] item Item to add
+                */
+               void addItem(const PolicyType policy_type,
+                                        const PolicyTypeValue policy_type_value,
+                                        ItemOwn* const item);
+
+               /** Adds item to send/receive policy
+                * \param[in] policy_type Policy type
+                * \param[in] policy_type_value Policy type value
+                * \param[in] item Item to add
+                */
+               void addItem(const PolicyType policy_type,
+                                        const PolicyTypeValue policy_type_value,
+                                        ItemSendReceive* const item);
+
+               /** Adds item to access policy
+                * \param[in] policy_type Policy type
+                * \param[in] policy_type_value Policy type value
+                * \param[in] item Item to add
+                */
+               void addItem(const PolicyType policy_type,
+                                        const PolicyTypeValue policy_type_value,
+                                        ItemAccess* const item);
        };
 }
 #endif