Entry: implement setting 'Resolved' property

When an error is marked resolved, delete error associations, if any.

When an error is marked un-resolved, re-create error associations, if
there were any.

Change-Id: I49acd2b6f01810e3b19e3fddbc716eb539fc20c0
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/elog_entry.hpp b/elog_entry.hpp
index 8208e7f..e23ba76 100644
--- a/elog_entry.hpp
+++ b/elog_entry.hpp
@@ -68,6 +68,21 @@
             this->emit_object_added();
         };
 
+        /** @brief Set resolution status of the error.
+         *  @param[in] value - boolean indicating resolution
+         *  status (true = resolved)
+         *  @returns value of 'Resolved' property
+         */
+        bool resolved(bool value) override
+        {
+            value ?
+                associations({}) :
+                associations(assocs);
+
+            return sdbusplus::xyz::openbmc_project::
+                   Logging::server::Entry::resolved(value);
+        }
+
     private:
         /** @brief This entry's associations */
         AssociationList assocs = {};